Created
September 18, 2025 13:31
-
-
Save shrihari1999/ecbdb21d0fbd196642661d44ab2c7f53 to your computer and use it in GitHub Desktop.
Stop windows update
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
| @echo off | |
| :loop | |
| sc query wuauserv | findstr /I /C:"STOPPED" > NUL | |
| if not %errorlevel%==0 ( | |
| net stop wuauserv | |
| ) | |
| TIMEOUT /T 5 /NOBREAK > NUL | |
| goto loop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment