`Feat`: disable auto reboot after updating Windows (#30)

- Closes #30
main
Plínio Larrubia 2 years ago committed by Plínio Larrubia
parent eee1c3bc6d
commit a1d79cf823
No known key found for this signature in database
GPG Key ID: 057B0A87CB137C69

@ -224,6 +224,10 @@ function Optimize-Privacy() {
# [@] (0-23 = The time of day in 24-hour format)
Set-ItemProperty -Path "$PathToLMPoliciesWindowsUpdate" -Name "ScheduledInstallTime" -Type DWord -Value 3
Write-Status -Symbol $EnableStatus[0].Symbol -Type $TweakType -Status "$($EnableStatus[0].Status) Automatic Reboot after update..."
# [@] (0 = Enable Automatic Reboot after update, 1 = Disable Automatic Reboot after update)
Set-ItemProperty -Path "$PathToLMPoliciesWindowsUpdate" -Name "NoAutoRebootWithLoggedOnUsers" -Type DWord -Value $One
Write-Status -Symbol $EnableStatus[1].Symbol -Type $TweakType -Status "$($EnableStatus[1].Status) Change Windows Updates to 'Notify to schedule restart'..."
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" -Name "UxOption" -Type DWord -Value $One

Loading…
Cancel
Save