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