
运行效果:

详细代码请见:
https://github.com/wwuhn/overall/blob/master/servicesBat
部分代码:
:3
echo.
@echo off
::以下命令必须使用服务名(不是描述名),=前面没空格,后面需要空格
sc config CscService start= disabled
sc config HomeGroupListener start= disabled
sc config HomeGroupProvider start= disabled
sc config Browser start= disabled
sc config LanmanWorkstation start= disabled
sc config Power start= disabled
sc config TabletInputService start= disabled
sc config BITS start= disabled
sc config WMPNetworkSvc start= disabled
sc config DPS start= disabled
sc config TrkWks start= disabled
sc config WerSvc start= disabled
sc config ShellHWDetection start= disabled
sc config WSearch start= disabled
sc config wuauserv start= disabled
sc config Dnscache start= disabled
sc config Spooler start= demand
sc config WPDBusEnum start= disabled
sc config StiSvc start= disabled
sc config LanmanServer start= disabled
:: 如果要设置为自动,则参数为:auto
pause
goto menu
-End-
相关文章
网友评论(共有 0 条评论)