diff --git a/Tools.ps1 b/Tools.ps1 index a9762ce..cfcbff4 100644 --- a/Tools.ps1 +++ b/Tools.ps1 @@ -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 }