From e5d6f2321a74adbd854b732dbf3838a19d9e343a Mon Sep 17 00:00:00 2001 From: David Yoder Date: Thu, 17 Mar 2022 17:02:40 -0400 Subject: [PATCH] minor updates --- Create-LocalUser.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"