Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Echo off
- echo.&echo.&echo =====Disable services=====
- echo.
- for %%x in (
- "Mcx2Svc"
- "NetTcpPortSharing"
- "RemoteRegistry"
- "SharedAccess"
- "fax"
- "TabletInputService"
- "RemoteAccess"
- "UxSms"
- "Bdesvc"
- "EFS"
- "wsearch"
- "ehsched"
- "ehRecvr"
- ) do For /f "tokens=1-3 delims=: " %%S in (
- 'sc query %%x ^|findstr /i "STATE" 2^>^&1 '
- ) Do (
- echo Changing services to disabled: %%x %%S %%T %%U
- Echo sc config %%x start= disabled
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement