From 1f4ec9932dc9a7e9fe32e09ad5f818b84515207e Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sat, 21 Sep 2024 17:19:30 +0200 Subject: [PATCH] Remove unused code --- scripts/Windows/Scripts/Registry.ps1 | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/scripts/Windows/Scripts/Registry.ps1 b/scripts/Windows/Scripts/Registry.ps1 index 60c22380..2ce9b9e6 100644 --- a/scripts/Windows/Scripts/Registry.ps1 +++ b/scripts/Windows/Scripts/Registry.ps1 @@ -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"; - } }