diff --git a/src/scripts/Optimize-Privacy.ps1 b/src/scripts/Optimize-Privacy.ps1 index 7186010b..18a7e330 100644 --- a/src/scripts/Optimize-Privacy.ps1 +++ b/src/scripts/Optimize-Privacy.ps1 @@ -201,7 +201,7 @@ function Optimize-Privacy() { Write-Status -Types "-", $TweakType -Status "Setting Scheduled time to 03h00m..." # [@] (0-23 = The time of day in 24-hour format) - Set-ItemPropertyVerified -Path "$PathToLMPoliciesWindowsUpdate" -Name "ScheduledInstallTime" -Type DWord -Value 3 + Set-ItemPropertyVerified -Path "$PathToLMPoliciesWindowsUpdate" -Name "ScheduledInstallTime" -Type DWord -Value 2 Write-Status -Types $EnableStatus[0].Symbol, $TweakType -Status "$($EnableStatus[0].Status) Automatic Reboot after update..." # [@] (0 = Enable Automatic Reboot after update, 1 = Disable Automatic Reboot after update) diff --git a/src/utils/Individual-Tweaks.psm1 b/src/utils/Individual-Tweaks.psm1 index e016e08a..7f2646fc 100644 --- a/src/utils/Individual-Tweaks.psm1 +++ b/src/utils/Individual-Tweaks.psm1 @@ -46,15 +46,19 @@ function Enable-ActivityHistory() { } function Disable-AutomaticWindowsUpdate() { + # https://learn.microsoft.com/en-us/windows/deployment/update/waas-wu-settings + # 1: Keep my computer up to date is disabled in Automatic Updates + # 2: Notify of download and installation. 3: Automatically download and notify of installation + # 4: Automatically download and schedule installation + # 5: Allow local admin to select the configuration mode. This option isn't available for Windows 10 or later versions + # 7: Notify for install and notify for restart. (Windows Server 2016 and later only) Write-Status -Types "-", "WU" -Status "Disabling Automatic Download and Installation of Windows Updates..." - # [@] (2 = Notify before download, 3 = Automatically download and notify of installation) - # [@] (4 = Automatically download and schedule installation, 5 = Automatic Updates is required and users can configure it) Set-ItemPropertyVerified -Path "$PathToLMPoliciesWindowsUpdate" -Name "AUOptions" -Type DWord -Value 2 } function Enable-AutomaticWindowsUpdate() { Write-Status -Types "*", "WU" -Status "Enabling Automatic Download and Installation of Windows Updates..." - Set-ItemPropertyVerified -Path "$PathToLMPoliciesWindowsUpdate" -Name "AUOptions" -Type DWord -Value 5 + Set-ItemPropertyVerified -Path "$PathToLMPoliciesWindowsUpdate" -Name "AUOptions" -Type DWord -Value 4 } function Disable-BackgroundAppsToogle() {