Add a dedicated function for disabling boot message
This commit is contained in:
parent
eb6ad4780e
commit
ec7fc8dd6e
2 changed files with 9 additions and 1 deletions
|
@ -450,7 +450,7 @@ $null = New-Module {
|
||||||
|
|
||||||
[string[]] $users = Get-Users;
|
[string[]] $users = Get-Users;
|
||||||
$currentUser = Get-CurrentUser;
|
$currentUser = Get-CurrentUser;
|
||||||
Set-BootMessage;
|
Disable-BootMessage;
|
||||||
|
|
||||||
if ($currentUser -lt $users.Count) {
|
if ($currentUser -lt $users.Count) {
|
||||||
$user = Get-LocalUser $users[$currentUser];
|
$user = Get-LocalUser $users[$currentUser];
|
||||||
|
|
|
@ -45,4 +45,12 @@ $null = New-Module {
|
||||||
-Value ($options[$key]);
|
-Value ($options[$key]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
<#
|
||||||
|
.SYNOPSIS
|
||||||
|
Disables the boot message.
|
||||||
|
#>
|
||||||
|
function Disable-BootMessage {
|
||||||
|
Set-BootMessage;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue