Created
May 1, 2017 11:32
-
-
Save RafalSladek/a9ae21f6ae73effa20f79637aabf2d9d to your computer and use it in GitHub Desktop.
list all services and write them into a services.txt, read file line by line and stop listed services
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
| rem net start > services.txt | |
| for /F "tokens=*" %%A in (services.txt) do ( | |
| ECHO Stopping service %%A.... | |
| net stop "%%A" | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment