|
本帖最后由 有阴也有阳 于 2017-12-22 10:52 编辑
我用Advanced SystemCare优化系统,扫描、优化以后总是把关闭了的Windows的自动更新打开,已经去掉了“漏洞”扫描
项的勾选,但还是这样,害得我每次扫描、修复完了以后,都要重新打开控制面板进去再关闭一遍,所以求一个关闭Windows自动
更新的批处理,谢谢!!!
系统是64位Win7专业版。
我在网上找到了一个批量关闭WIN7无用服务的bat,但没有找到那一句是关闭自动更新的。
批量关闭WIN7无用服务的bat:
@echo Restore The Service Start State Saved At 21:24:28.35 2008/11/12 周三
@pause
sc config AeLookupSvc start= DEMAND
sc config ALG start= DISABLED
sc config Appinfo start= DEMAND
sc config AppMgmt start= DEMAND
sc config AudioEndpointBuilder start= AUTO
sc config Audiosrv start= AUTO
sc config BDESVC start= DEMAND
sc config BFE start= DISABLED
sc config BITS start= DISABLED
sc config Browser start= AUTO
sc config bthserv start= DEMAND
sc config CertPropSvc start= DISABLED
sc config clr_optimization_v2.0.50727_32 start= DEMAND
sc config COMSysApp start= DEMAND
sc config CryptSvc start= AUTO
sc config CscService start= DISABLED
sc config DcomLaunch start= AUTO
sc config defragsvc start= DEMAND
sc config Dhcp start= AUTO
sc config Dnscache start= AUTO
sc config dot3svc start= DISABLED
sc config DPS start= DEMAND
sc config EapHost start= DEMAND
sc config EFS start= AUTO
sc config ehRecvr start= DISABLED
sc config ehSched start= DISABLED
sc config ehstart start= DISABLED
sc config EventLog start= AUTO
sc config EventSystem start= AUTO
sc config fdPHost start= DEMAND
sc config FDResPub start= DEMAND
sc config FontCache start= DEMAND
sc config FontCache3.0.0.0 start= DEMAND
sc config gpsvc start= AUTO
sc config hidserv start= DEMAND
sc config hkmsvc start= DEMAND
sc config idsvc start= DEMAND
sc config IKEEXT start= DISABLED
sc config IPBusEnum start= DISABLED
sc config iphlpsvc start= DISABLED
sc config KeyIso start= DEMAND
sc config KtmRm start= DEMAND
sc config LanmanServer start= AUTO
sc config LanmanWorkstation start= AUTO
sc config lltdsvc start= DEMAND
sc config lmhosts start= DEMAND
sc config Mcx2Svc start= DISABLED
sc config MDM start= DISABLED
sc config MMCSS start= DEMAND
sc config MpsSvc start= DISABLED
sc config MSDTC start= DISABLED
sc config MSiSCSI start= DISABLED
sc config msiserver start= DEMAND
sc config napagent start= DEMAND
sc config Netlogon start= DEMAND
sc config Netman start= AUTO
sc config netprofm start= AUTO
sc config NetTcpPortSharing start= DISABLED
sc config NlaSvc start= AUTO
sc config nsi start= AUTO
sc config odserv start= DISABLED
sc config ose start= DISABLED
sc config p2pimsvc start= DISABLED
sc config p2psvc start= DISABLED
sc config PcaSvc start= DISABLED
sc config PeerDistSvc start= DISABLED
sc config pla start= DEMAND
sc config PlugPlay start= AUTO
sc config PngSvc start= DISABLED
sc config PNRPAutoReg start= DISABLED
sc config PNRPsvc start= DISABLED
sc config PolicyAgent start= DEMAND
sc config Power start= AUTO
sc config ProtectedStorage start= DEMAND
sc config QWAVE start= DISABLED
sc config RasAuto start= DEMAND
sc config RasMan start= DEMAND
sc config RemoteAccess start= DISABLED
sc config RemoteRegistry start= DISABLED
sc config RpcEptMapper start= AUTO
sc config RpcLocator start= DEMAND
sc config RpcSs start= AUTO
sc config SamSs start= AUTO
sc config SCardSvr start= DISABLED
sc config Schedule start= AUTO
sc config SCPolicySvc start= DISABLED
sc config SDRSVC start= DISABLED
sc config seclogon start= DISABLED
sc config SENS start= DEMAND
sc config SensorsMTPMonitor start= DEMAND
sc config SensrSvc start= DEMAND
sc config SessionEnv start= DISABLED
sc config SharedAccess start= AUTO
sc config ShellHWDetection start= DEMAND
sc config SNMPTRAP start= DISABLED
sc config Spooler start= DISABLED
sc config sppsvc start= AUTO
sc config sppuinotify start= DEMAND
sc config SSDPSRV start= DISABLED
sc config SstpSvc start= DEMAND
sc config StiSvc start= DISABLED
sc config swprv start= DISABLED
sc config SysMain start= AUTO
sc config TabletInputService start= DISABLED
sc config TapiSrv start= DEMAND
sc config TBS start= DISABLED
sc config TermService start= DISABLED
sc config Themes start= AUTO
sc config THREADORDER start= DISABLED
sc config TrkWks start= DEMAND
sc config TrustedInstaller start= DISABLED
sc config UI0Detect start= DEMAND
sc config UmRdpService start= DISABLED
sc config upnphost start= DISABLED
sc config UxSms start= AUTO
sc config VaultSvc start= DEMAND
sc config vds start= DEMAND
sc config VSS start= DISABLED
sc config W32Time start= DISABLED
sc config wbengine start= DISABLED
sc config WbioSrvc start= DEMAND
sc config wcncsvc start= DEMAND
sc config WcsPlugInService start= DEMAND
sc config WdiServiceHost start= DEMAND
sc config WdiSystemHost start= DEMAND
sc config WebClient start= DISABLED
sc config Wecsvc start= DEMAND
sc config wercplsupport start= DISABLED
sc config WerSvc start= DISABLED
sc config WinDefend start= DISABLED
sc config WinHttpAutoProxySvc start= DEMAND
sc config Winmgmt start= AUTO
sc config WinRM start= DISABLED
sc config Wlansvc start= DISABLED
sc config wmiApSrv start= DEMAND
sc config WMPNetworkSvc start= DISABLED
sc config WPDBusEnum start= DISABLED
sc config wscsvc start= DISABLED
sc config WSearch start= DISABLED
sc config wuauserv start= DISABLED
sc config wudfsvc start= DEMAND
sc config WwanSvc start= DISABLED
已解决:
我的书写有错误,原来的是:
@echo off
sc config wuauserv start=AUTO 没有留空格
pause
sc config wuauserv start=disablsd 没有大写,也没有留空格。
pause
改正过来后的:
@echo off
sc config wuauserv start= AUTO
pause
sc config wuauserv start= DISABLSD
pause
就能正常打开自动更新和关闭自动更新了。
还有这个批处理:
sc config wuauserv start= DISABLED
sc stop wuauserv
经实测也能关闭自动更新。
感谢nttwqz和窄口牛网友的热心帮助!!!谢谢!!!
|
|