Remove unused code
This commit is contained in:
parent
5ce37e6e00
commit
1f4ec9932d
|
@ -1,8 +1,6 @@
|
||||||
using namespace Microsoft.Win32;
|
using namespace Microsoft.Win32;
|
||||||
|
|
||||||
$null = New-Module {
|
$null = New-Module {
|
||||||
$wuPolicyPath = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate";
|
|
||||||
|
|
||||||
function Edit-DefaultUserKey {
|
function Edit-DefaultUserKey {
|
||||||
param(
|
param(
|
||||||
[scriptblock] $Action
|
[scriptblock] $Action
|
||||||
|
@ -55,12 +53,4 @@ $null = New-Module {
|
||||||
function Disable-BootMessage {
|
function Disable-BootMessage {
|
||||||
Set-BootMessage;
|
Set-BootMessage;
|
||||||
}
|
}
|
||||||
|
|
||||||
<#
|
|
||||||
.SYNOPSIS
|
|
||||||
Resets the automatic reboot state.
|
|
||||||
#>
|
|
||||||
function Reset-WindowsUpdateAutoRestart {
|
|
||||||
Remove-Item -Recurse "$wuPolicyPath";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue