Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- start cmd.exe && goto countdown
- :countdown
- echo Press [1] key to execute early, Press [2] key to abort and close program.
- choice /n /c 12 /d 1 /t 60
- IF ERRORLEVEL ==1 goto run
- IF ERRORLEVEL ==2 exit
- exit
- :run
- reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v AUOptions /t REG_DWORD /d 1 /f
- sc config wuauserv start= disabled
- net stop wuauserv && go to pause
- pause
- IF ERRORLEVEL ==3 go to run
- pause
- :run
- reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v AUOptions /t REG_DWORD /d 0 /f
- sc config wuauserv start= auto
- net start wuauserv
- pause
- exit
- I probably have it wrong but I'm trying. I'm wanting to make it so you first open you go to adminstrative command prompt and has choices. I have this all wrong I'm betting.
- Choice one: disable and force stop all windows services
- Choice two: enable and force start all windows services
- Choice three: exit
- all in a .cmd batch file.
- I think what I have is okay but I don't want to cause an infinite loop and ruin my pc.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement