Disable boot message only as admin
This commit is contained in:
parent
505ee2ad34
commit
7a99482bc8
1 changed files with 4 additions and 1 deletions
|
@ -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