minor updates
This commit is contained in:
@@ -35,9 +35,9 @@ If ( IsAdmin )
|
|||||||
Catch { LogErr $_.Exception.Message ; Exit }
|
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
|
## TODO: Hide account from logon screen
|
||||||
#Get-ChildItem "HKLM:SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList"
|
#Get-ChildItem "HKLM:SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList"
|
||||||
|
|||||||
Reference in New Issue
Block a user