Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. $key = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU"
  2.  
  3. if(-not(Test-Path $key)) {
  4. New-Item $key -Force
  5. }
  6.  
  7. New-ItemProperty -Path $key -Name "NoAutoRebootWithLoggedOnUsers" -PropertyType DWORD -Value 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement