Remove unused code

This commit is contained in:
Manuel Thalmann 2024-09-21 17:19:30 +02:00
parent 5ce37e6e00
commit 1f4ec9932d

View file

@ -1,8 +1,6 @@
using namespace Microsoft.Win32;
$null = New-Module {
$wuPolicyPath = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate";
function Edit-DefaultUserKey {
param(
[scriptblock] $Action
@ -55,12 +53,4 @@ $null = New-Module {
function Disable-BootMessage {
Set-BootMessage;
}
<#
.SYNOPSIS
Resets the automatic reboot state.
#>
function Reset-WindowsUpdateAutoRestart {
Remove-Item -Recurse "$wuPolicyPath";
}
}