extend template
This commit is contained in:
parent
d421cfdf6a
commit
3fab585eec
|
@ -1,15 +1,24 @@
|
||||||
# load ActiveDirectory module
|
# load ActiveDirectory module
|
||||||
Try
|
|
||||||
{
|
|
||||||
Import-Module ActiveDirectory -ErrorAction Stop
|
|
||||||
}
|
|
||||||
Catch
|
|
||||||
{
|
|
||||||
Write-Warning $_
|
|
||||||
Break
|
|
||||||
}
|
|
||||||
|
|
||||||
function Show-Menu
|
function Show-Menu
|
||||||
{
|
{
|
||||||
|
|
||||||
|
begin
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Import-Module ActiveDirectory -ErrorAction Stop
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
Write-Warning $_
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
process
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue