From ea3935e73759ff9e5cb02607e208aaa812fd4106 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Tue, 3 Sep 2024 16:31:12 +0200 Subject: [PATCH] Remove unnecessary policy change --- scripts/Common/Scripts/Operations.ps1 | 4 ---- scripts/Windows/Scripts/Registry.ps1 | 13 ------------- 2 files changed, 17 deletions(-) diff --git a/scripts/Common/Scripts/Operations.ps1 b/scripts/Common/Scripts/Operations.ps1 index 04e70834..a5bf40d5 100644 --- a/scripts/Common/Scripts/Operations.ps1 +++ b/scripts/Common/Scripts/Operations.ps1 @@ -57,10 +57,6 @@ $null = New-Module { $env:CONFIG_MODULE = Resolve-Path $env:CONFIG_MODULE; } - if (Test-Admin) { - Disable-WindowsUpdateAutoRestart; - } - New-Alias -Force "sudo" gsudo; } diff --git a/scripts/Windows/Scripts/Registry.ps1 b/scripts/Windows/Scripts/Registry.ps1 index 6a7e040d..60c22380 100644 --- a/scripts/Windows/Scripts/Registry.ps1 +++ b/scripts/Windows/Scripts/Registry.ps1 @@ -56,19 +56,6 @@ $null = New-Module { Set-BootMessage; } - <# - .SYNOPSIS - Disables automatic reboots by Windows Update. - #> - function Disable-WindowsUpdateAutoRestart { - $path = "$wuPolicyPath\AU"; - $null = New-Item -Force $path -ErrorAction SilentlyContinue; - - Set-ItemProperty $path ` - -Name NoAutoRebootWithLoggedOnUsers ` - -Value 1; - } - <# .SYNOPSIS Resets the automatic reboot state.