Disable boot message only as admin

This commit is contained in:
Manuel Thalmann 2024-08-09 16:02:00 +02:00
parent 505ee2ad34
commit 7a99482bc8

View file

@ -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];