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