more fixes

This commit is contained in:
2023-12-05 14:59:17 -05:00
parent 3e8def09d6
commit 8a12219565
+1 -1
View File
@@ -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
}