Last active
August 10, 2017 23:16
-
-
Save AnthonyMastrean/7422369 to your computer and use it in GitHub Desktop.
Prevent Windows update from forcibly rebooting the computer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$key = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" | |
if(-not(Test-Path $key)) { | |
New-Item $key -Force | |
} | |
New-ItemProperty -Path $key -Name "NoAutoRebootWithLoggedOnUsers" -PropertyType DWORD -Value 1 |
Author
AnthonyMastrean
commented
Nov 11, 2013
- Reference
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment