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;
|
[string[]] $users = Get-Users;
|
||||||
$currentUser = Get-CurrentUser;
|
$currentUser = Get-CurrentUser;
|
||||||
Disable-BootMessage;
|
|
||||||
|
if (Test-Admin) {
|
||||||
|
Disable-BootMessage;
|
||||||
|
}
|
||||||
|
|
||||||
if ($currentUser -lt $users.Count) {
|
if ($currentUser -lt $users.Count) {
|
||||||
$user = Get-LocalUser $users[$currentUser];
|
$user = Get-LocalUser $users[$currentUser];
|
||||||
|
|
Loading…
Reference in a new issue