Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. @Echo off
  2. echo.&echo.&echo =====Disable services=====
  3. echo.
  4. for %%x in (
  5. "Mcx2Svc"
  6. "NetTcpPortSharing"
  7. "RemoteRegistry"
  8. "SharedAccess"
  9. "fax"
  10. "TabletInputService"
  11. "RemoteAccess"
  12. "UxSms"
  13. "Bdesvc"
  14. "EFS"
  15. "wsearch"
  16. "ehsched"
  17. "ehRecvr"
  18. ) do For /f "tokens=1-3 delims=: " %%S in (
  19. 'sc query %%x ^|findstr /i "STATE" 2^>^&1 '
  20. ) Do (
  21. echo Changing services to disabled: %%x %%S %%T %%U
  22. Echo sc config %%x start= disabled
  23. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement