diff --git a/Create-LocalUser.ps1 b/Create-LocalUser.ps1 index 92e9ec4..4bced56 100644 --- a/Create-LocalUser.ps1 +++ b/Create-LocalUser.ps1 @@ -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"