如何恢复命令services.msc所有的设置

来源:百度知道 编辑:UC知道 时间:2024/05/24 20:43:53
为了网络安全,当时关了很多个服务,现在想还原services.msc都不知道怎么还原,谢谢!

将以后内容复制到记事本里,然后保存为.bat的批处理文件,然后再运行就可以了

cls
@echo off
echo 即将恢复所有Windows XP 默认服务
@pause
sc config Alerter start= DISABLED
sc config ALG start= DEMAND
sc config AppMgmt start= DEMAND
sc config AudioSrv start= AUTO
sc config BITS start= DEMAND
sc config Browser start= AUTO
sc config CiSvc start= DEMAND
sc config ClipSrv start= DISABLED
sc config COMSysApp start= DEMAND
sc config CryptSvc start= AUTO
sc config DcomLaunch start= AUTO
sc config Dhcp start= AUTO
sc config dmadmin start= DEMAND
sc config dmserver start= AUTO
sc config Dnscache start= AUTO
sc config ERSvc start= AUTO
sc config Eventlog start= AUTO
sc config EventSystem start= DEMAND
sc config FastUserSwitchingCompatibility start= DEMAND
sc config helpsvc start= AUTO
sc config HidServ start= DISABLED
sc con