Disable boot message only as admin
This commit is contained in:
parent
505ee2ad34
commit
7a99482bc8
|
@ -451,7 +451,10 @@ $null = New-Module {
|
|||
|
||||
[string[]] $users = Get-Users;
|
||||
$currentUser = Get-CurrentUser;
|
||||
|
||||
if (Test-Admin) {
|
||||
Disable-BootMessage;
|
||||
}
|
||||
|
||||
if ($currentUser -lt $users.Count) {
|
||||
$user = Get-LocalUser $users[$currentUser];
|
||||
|
|
Loading…
Reference in a new issue