more fixes
This commit is contained in:
@@ -702,7 +702,7 @@ Function New-LocalAccount {
|
|||||||
[Parameter(Mandatory=$false)][switch]$MakeAdmin=$false,
|
[Parameter(Mandatory=$false)][switch]$MakeAdmin=$false,
|
||||||
[Parameter(Mandatory=$false)][switch]$Hide=$false
|
[Parameter(Mandatory=$false)][switch]$Hide=$false
|
||||||
)
|
)
|
||||||
If ( !IsAdmin ) {
|
If ( -not (IsAdmin) ) {
|
||||||
Write-Output "Cannot create or modify a local account without administrative privileges"
|
Write-Output "Cannot create or modify a local account without administrative privileges"
|
||||||
Return
|
Return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user