minor updates

This commit is contained in:
2022-03-17 17:02:40 -04:00
parent 73cd6337f6
commit e5d6f2321a
+2 -2
View File
@@ -35,9 +35,9 @@ If ( IsAdmin )
Catch { LogErr $_.Exception.Message ; Exit }
}
}
Else { LogMsg "The local user account ""${Username}"" cannot be created on a domain controller" }
Else { LogMsg "Cannot create or modify local accounts on a domain controller" }
}
Else { LogMsg "Cannot create a local administrator account without administrative privileges" }
Else { LogMsg "Cannot create or modify a local account without administrative privileges" }
## TODO: Hide account from logon screen
#Get-ChildItem "HKLM:SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList"