Advertisement
Guest User

Auto-Windows Off/On .cmd Batch file

a guest
Jul 24th, 2017
1,197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. start cmd.exe && goto countdown
  2.  
  3. :countdown
  4. echo Press [1] key to execute early, Press [2] key to abort and close program.
  5. choice /n /c 12 /d 1 /t 60
  6. IF ERRORLEVEL ==1 goto run1
  7. IF ERRORLEVEL ==2 goto run2
  8. IF ERRORLEVEL ==3 exit
  9.  
  10. exit
  11.  
  12. :run1
  13. reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v AUOptions /t REG_DWORD /d 1 /f
  14. sc config wuauserv start= disabled
  15. net stop wuauserv && go to pause
  16. pause
  17. exit
  18.  
  19. :run2
  20. reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v AUOptions /t REG_DWORD /d 0 /f
  21. sc config wuauserv start= auto
  22. net start wuauserv
  23. pause
  24. exit
  25.  
  26. Copy everything above this sentence and paste into a notepad. Than hit save as and type in Windows Auto-Update Batch File Off/ON or whatever name you want with a .cmd at the end of the file. Than where it says .txt in that box, make say all files and save to desktop.
  27.  
  28. Than right click funny-looking file created and run as administrator.
  29.  
  30. You will get two cmds. First one has nothing, close it.
  31.  
  32. Second cmd window will have your choices.
  33. 1 will force stop all windows update auto-services and free your computer of it.
  34. 2 will auto-restart all windows update services with auto-updating.
  35.  
  36. THIS IS FOR WINDOWS 10
  37. ENJOY - By Cosmic Lightning. Also helped by Snake from WEmod.com
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement