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;
|
[string[]] $users = Get-Users;
|
||||||
$currentUser = Get-CurrentUser;
|
$currentUser = Get-CurrentUser;
|
||||||
|
|
||||||
|
if (Test-Admin) {
|
||||||
Disable-BootMessage;
|
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