Disable scheduled automatic updates
- Windows onlyThis script improves your privacy on Windows
- Single actionThis page belongs to a script, containing basic changes to achieve a task.
- Impact: High
System Functionality / Data Loss Risk: High
This action improves privacy with high impact when you run the recommended script.
- Batch (batchfile)These changes use Windows system commands to update your settings.
- Administrator rights requiredThis script requires privilege access to do the system changes
- Fully reversible
You can fully restore this action (revert back to the original behavior) using this website.
The restore/revert methods provided here can help you fix issues.
Overview
This script turns off the automatic installation of Windows updates that are set to occur at a specific time. By doing this, you take back control over when your computer updates itself 1 2 3. The default behavior is to install updates at 3 AM 3.
Windows updates can be important for system security, but automatic installation could occur at inconvenient times and may even restart your computer without prior warning. This could interrupt your tasks and may send data about your system to external servers. By disabling the automatic scheduled installation time, you can manually control when updates are installed 3, ensuring that you're aware of any changes to your system.
The script works by removing a specific registry key called ScheduledInstallTime
under
HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU
2 3. This is the system setting that controls the scheduled update time.
- Not Advised
This script should only be used by advanced users.
This script is not recommended for daily use as it breaks important functionality.
Consider creating a system restore point before doing any changes.
- Security Trade-off
This action prioritizes privacy over certain security features. It's not recommended and should only be used by advanced users after understanding its implications.
Increased Privacy
Enhanced privacy through reduced data collection and trackingDecreased Security
Some security features will be disabled or limitedThis script can be reversed, this action allows you to can restore the system security.
Sources
- Configure Automatic Updates in a Non–Active Directory Environment. Microsoft Learn. (2023).
Original: https://learn.microsoft.com/fr-fr/security-updates/windowsupdateservices/18127152
Archived: https://web.archive.org/web/20230813094618/https://learn.microsoft.com/fr-fr/security-updates/windowsupdateservices/18127152 - Manage additional Windows Update settings - Windows Deployment. Microsoft Learn. (2023).
Original: https://learn.microsoft.com/en-us/windows/deployment/update/waas-wu-settings
Archived: https://web.archive.org/web/20230711172555/https://learn.microsoft.com/en-us/windows/deployment/update/waas-wu-settings#configuring-automatic-updates-by-editing-the-registry - Update Policy CSP - Windows Client Management. Microsoft Learn. (2023).
Original: https://learn.microsoft.com/en-us/windows/client-management/mdm/policy-csp-update
Archived: https://web.archive.org/web/20230708165017/https://learn.microsoft.com/en-us/windows/client-management/mdm/policy-csp-update#scheduledinstalltime
Apply Now
Choose one of three ways to apply:
Download script
Download and run the script directly- No app needed
- Offline usage
- Easy-to-apply
- Free
- Open-source
Help
How to apply or restore "Disable scheduled automatic updates" using script
- ≈ 2 min to complete
- Tools: Web Browser
- Difficulty: Simple
- ≈ 5 instructions
- 1
Download
Download the script file by clicking on thebutton above.
Use button above to restore changes. - 2
Keep the file
If warned by your browser, keep the file. - 3
Open
Open the downloaded file. - 4
Exit
Once it's done, press any key to exit the window. - 5
Restart
Restart your computer for all changes to take effect.
Apply with privacy.sexy
Guided, automated application with safety checks- Recommended for most users
- Includes safety checks
- Free
- Open-source
- Popular
- Offline/Online usage
Help
How to apply or restore "Disable scheduled automatic updates" using privacy.sexy
- ≈ 3 min to complete
- Tools: privacy.sexy
- Difficulty: Simple
- ≈ 4 instructions
- 2
Choose script
- Search for the script name: Disable scheduled automatic updates
- Check the script by clicking on the checkbox.
- 3
Run
Click on ▶️ Run button at the bottom of the page.This button only appears on desktop version (recommended). On browser, use 💾 Save button.
- Apply
- Revert
:: Delete the registry value "ScheduledInstallTime" from the key "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU"
PowerShell -ExecutionPolicy Unrestricted -Command "$keyName = 'HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU'; $valueName = 'ScheduledInstallTime'; $hive = $keyName.Split('\')[0]; $path = "^""$($hive):$($keyName.Substring($hive.Length))"^""; Write-Host "^""Removing the registry value '$valueName' from '$path'."^""; if (-Not (Test-Path -LiteralPath $path)) { Write-Host 'Skipping, no action needed, registry key does not exist.'; Exit 0; }; $existingValueNames = (Get-ItemProperty -LiteralPath $path).PSObject.Properties.Name; if (-Not ($existingValueNames -Contains $valueName)) { Write-Host 'Skipping, no action needed, registry value does not exist.'; Exit 0; }; try { if ($valueName -ieq '(default)') { Write-Host 'Removing the default value.'; $(Get-Item -LiteralPath $path).OpenSubKey('', $true).DeleteValue(''); } else { Remove-ItemProperty -LiteralPath $path -Name $valueName -Force -ErrorAction Stop; }; Write-Host 'Successfully removed the registry value.'; } catch { Write-Error "^""Failed to remove the registry value: $($_.Exception.Message)"^""; }"
Ijo6IFJlbW92ZSB0aGUgcmVnaXN0cnkgdmFsdWUgXCJTY2hlZHVsZWRJbnN0YWxsVGltZVwiIGZyb20ga2V5IFwiSEtMTVxcU09GVFdBUkVcXFBvbGljaWVzXFxNaWNyb3NvZnRcXFdpbmRvd3NcXFdpbmRvd3NVcGRhdGVcXEFVXCIgdG8gcmVzdG9yZSBpdHMgb3JpZ2luYWwgc3RhdGUgXG5Qb3dlclNoZWxsIC1FeGVjdXRpb25Qb2xpY3kgVW5yZXN0cmljdGVkIC1Db21tYW5kIFwiJGtleU5hbWUgPSAnSEtMTVxcU09GVFdBUkVcXFBvbGljaWVzXFxNaWNyb3NvZnRcXFdpbmRvd3NcXFdpbmRvd3NVcGRhdGVcXEFVJzsgJHZhbHVlTmFtZSA9ICdTY2hlZHVsZWRJbnN0YWxsVGltZSc7ICRoaXZlID0gJGtleU5hbWUuU3BsaXQoJ1xcJylbMF07ICRwYXRoID0gXCJeXCJcIiQoJGhpdmUpOiQoJGtleU5hbWUuU3Vic3RyaW5nKCRoaXZlLkxlbmd0aCkpXCJeXCJcIjsgV3JpdGUtSG9zdCBcIl5cIlwiUmVtb3ZpbmcgdGhlIHJlZ2lzdHJ5IHZhbHVlICckdmFsdWVOYW1lJyBmcm9tICckcGF0aCcuXCJeXCJcIjsgaWYgKC1Ob3QgKFRlc3QtUGF0aCAtTGl0ZXJhbFBhdGggJHBhdGgpKSB7IFdyaXRlLUhvc3QgJ1NraXBwaW5nLCBubyBhY3Rpb24gbmVlZGVkLCByZWdpc3RyeSBrZXkgZG9lcyBub3QgZXhpc3QuJzsgRXhpdCAwOyB9OyAkZXhpc3RpbmdWYWx1ZU5hbWVzID0gKEdldC1JdGVtUHJvcGVydHkgLUxpdGVyYWxQYXRoICRwYXRoKS5QU09iamVjdC5Qcm9wZXJ0aWVzLk5hbWU7IGlmICgtTm90ICgkZXhpc3RpbmdWYWx1ZU5hbWVzIC1Db250YWlucyAkdmFsdWVOYW1lKSkgeyBXcml0ZS1Ib3N0ICdTa2lwcGluZywgbm8gYWN0aW9uIG5lZWRlZCwgcmVnaXN0cnkgdmFsdWUgZG9lcyBub3QgZXhpc3QuJzsgRXhpdCAwOyB9OyB0cnkgeyBpZiAoJHZhbHVlTmFtZSAtaWVxICcoZGVmYXVsdCknKSB7IFdyaXRlLUhvc3QgJ1JlbW92aW5nIHRoZSBkZWZhdWx0IHZhbHVlLic7ICQoR2V0LUl0ZW0gLUxpdGVyYWxQYXRoICRwYXRoKS5PcGVuU3ViS2V5KCcnLCAkdHJ1ZSkuRGVsZXRlVmFsdWUoJycpOyB9IGVsc2UgeyBSZW1vdmUtSXRlbVByb3BlcnR5IC1MaXRlcmFsUGF0aCAkcGF0aCAtTmFtZSAkdmFsdWVOYW1lIC1Gb3JjZSAtRXJyb3JBY3Rpb24gU3RvcDsgfTsgV3JpdGUtSG9zdCAnU3VjY2Vzc2Z1bGx5IHJlbW92ZWQgdGhlIHJlZ2lzdHJ5IHZhbHVlLic7IH0gY2F0Y2ggeyBXcml0ZS1FcnJvciBcIl5cIlwiRmFpbGVkIHRvIHJlbW92ZSB0aGUgcmVnaXN0cnkgdmFsdWU6ICQoJF8uRXhjZXB0aW9uLk1lc3NhZ2UpXCJeXCJcIjsgfVwiIg==
Help
How to apply or restore "Disable scheduled automatic updates" using commands
- ≈ 2 min to complete
- Tools: Command Prompt
- Difficulty: Medium
- ≈ 3 instructions
- 1
Open Command Prompt
Open Command Prompt as Administrator. - 2
Copy code
Copy the code: - 3
Paste & run
Paste the commands into Command Prompt and press Enter to run.Some changes require a system restart to take effect
Similar Guides
Wider Goal
Guides below includes this guide to achieve a wider goal.See other more general settings that includes this one as one of its actions.
These plans combine multiple privacy settings, including this one, for stronger protection.
- Disable automatic updates
- Privacy over security
Disabling automatic updates is often considered counterintuitive when it comes to securing your system. However, there are substantial arguments to consider this o...
Steps to privacy over security on your Windows machine to enhance data privacy protection. Together with that, this feature walks through the procedure to undo the...
Same Goal
Other guides in Disable automatic updatesSee settings that are in the same category as this guide.
Using other actions in the same category may help you achieve your goal better.
See all 7 guides
About the Creators
These people have authored this documentation and written its scripts:
Reviewed By
This guide has undergone comprehensive auditing and peer review:Expert review by undergroundwires
- Verified technical accuracy and editorial standards
- Assessed system impact and user privacy risks
Public review by large community
- Privacy enthusiasts and professionals peer-reviewed
- Millions of end-users tested across different environments
History
We continually monitor our guides, their impact and all other privacy options. We update our guides when new information becomes available. On every update, we publicly store who made the change, what has been changed, why the change was made and when the change was made.