Advertisement
St1cky

Windows_10_-_Windows_Update_Disabled.bat

Sep 7th, 2019
598
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 2.11 KB | None | 0 0
  1. @Echo off
  2. color 0a
  3.  
  4. DATE /T
  5. Echo. ; ___________________________
  6. Echo. ;   !!! Tweaking Registry !!!
  7. Echo. ; ___________________________
  8. Echo. ; (  RUN AS ADMINISTRATOR! )
  9.  
  10. Echo. ; __________________________________________
  11. Echo. ; Policy Settings - Windows Update - Disable
  12. Echo. ; ------------------------------------------
  13.  
  14. Echo. #Configure Automatic Updates - Disabled
  15. REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v "NoAutoUpdate" /t REG_DWORD /d 00000001 /f
  16.  
  17. Echo. #Do not include drivers with Windows Updates - Enabled
  18. REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "ExcludeWUDriversInQualityUpdate" /t REG_DWORD /d 00000001 /f
  19.  
  20. Echo. #Do not connect to any Windows Update Internet locations - Enabled
  21. REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "DoNotConnectToWindowsUpdateInternetLocations" /t REG_DWORD /d 00000001 /f
  22.  
  23. Echo. #Specify intranet Microsoft update service location - Enabled
  24. REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v "UseWUServer" /t REG_DWORD /d 00000001 /f
  25. REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "UpdateServiceUrlAlternate" /t REG_SZ /d "http://disableupdateserver.com" /f
  26. REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "WUServer" /t REG_SZ /d "http://disableupdateserver.com" /f
  27. REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "WUStatusServer" /t REG_SZ /d "http://disableupdateserver.com" /f
  28.  
  29. Echo. #Automatic Updates immediate installation - Disabled
  30. REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v "AutoInstallMinorUpdates" /t REG_DWORD /d 00000000 /f
  31.  
  32. Echo. #Turn on recommended updates via Automatic Updates - Disabled
  33. REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v "IncludeRecommendedUpdates" /t REG_DWORD /d 00000000 /f
  34.  
  35. Echo.
  36. Echo.                    Windows Update Disabled!
  37. Echo.           Please Restart the System to take Effect!
  38. Echo.
  39. pause.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement