科技行者

行者学院 转型私董会 科技行者专题报道 网红大战科技行者

知识库

知识库 安全导航

至顶网安全频道Windows Vista本地服务恢复

Windows Vista本地服务恢复

  • 扫一扫
    分享文章到微信

  • 扫一扫
    关注官方公众号
    至顶头条

更改服务配置之前,请关闭所有正在运行的应用程序,以增强稳定性。这些设置是针对个人用户,且没有特殊需要的用户设计的。如果你的电脑的一些特别的设备需要某一服务,请进入服务自行设置。

作者:zdnet安全频道 来源:论坛整理 2008年6月25日

关键字: 系统安全 Vista vista安全

  • 评论
  • 分享微博
  • 分享邮件

1.更改服务配置之前,请关闭所有正在运行的应用程序,以增强稳定性。
2.这些设置是针对个人用户,且没有特殊需要的用户设计的。
3.如果你的电脑的一些特别的设备需要某一服务,请进入服务自行设置。
4.支持XP\Vista,如有错误请记录后及时反馈.谢谢..

可对系统进行如下配置:

1  安全配置(推荐);
2  网络共享配置(局域网用户);
3  游戏配置;
4  发烧型配置;
5  恢复WINDOWS默认配置;

截图“图一”如下:

截图“图二”如下:

源代码如下:

@echo off
:start
cls
color F0
title 服务优化
echo.
echo                        
echo          ---------------------------------------------------------
echo.
echo           
echo             
echo.
echo              1  安全配置(推荐);
echo              2  网络共享配置(局域网用户);
echo              3  游戏配置;
echo              4  发烧型配置;
echo              5  恢复WINDOWS默认配置;
echo              Q  退出
echo.
echo          ---------------------------------------------------------
echo           
echo.
set /p choice=                    请作出选择:
if /i "%choice%"=="1" goto safe
if /i "%choice%"=="2" goto work
if /i "%choice%"=="3" goto game
if /i "%choice%"=="4" goto hot
if /i "%choice%"=="5" goto restore
if /i "%choice%"=="Q" goto end
goto start

:safe
cls
echo.
echo.
echo        正在配置安全型配置......
sc config Alerter start= disabled>nul
sc config ALG start= demand>nul
sc config AppMgmt start= demand>nul
sc config wuauserv start= disabled>nul
sc config BITS start= disabled>nul
sc config ClipSrv start= disabled>nul
sc config EventSystem start= demand>nul
sc config COMSysApp start= demand>nul
sc config Browser start= disabled>nul
sc config CryptSvc start= auto>nul
sc config DcomLaunch start= auto>nul
sc config Dhcp start= auto>nul
sc config TrkWks start= demand>nul
sc config MSDTC start= demand>nul
sc config Dnscache start= auto>nul
sc config ERSvc start= disabled>nul
sc config Eventlog start= auto>nul
sc config FastUserSwitchingCompatibility start= demand>nul
sc config FAX start= disabled>nul
sc config helpsvc start= disabled>nul
sc config HidServ start= disabled>nul
sc config HTTPFilter start= demand>nul
sc config ImapiService start= demand>nul
sc config CiSvc start= disabled>nul
sc config SharedAccess start= auto>nul
sc config PolicyAgent start= demand>nul
sc config dmserver start= auto>nul
sc config dmadmin start= demand>nul
sc config Messenger start= disabled>nul
sc config SwPrv start= demand>nul
sc config Netlogon start= disabled>nul
sc config mnmsrvc start= disabled>nul
sc config Netman start= demand>nul
sc config NetDDE start= disabled>nul
sc config NetDEEdsdm start= disabled>nul
sc config Nla start= demand>nul
sc config NtLmSsp start= demand>nul
sc config SysmonLog start= disabled>nul
sc config PlugPlay start= auto>nul
sc config WmdmPmSN start= disabled>nul
sc config Spooler start= demand>nul
sc config ProtectedStorage start= auto>nul
sc config RSVP start= disabled>nul
sc config RasAuto start= demand>nul
sc config RasMan start= demand>nul
sc config RDSessMgr start= disabled>nul
sc config RpcSs start= auto>nul
sc config RpcLocator start= demand>nul
sc config RemoteRegistry start=disabled>nul
sc config NtmsSvc start= demand>nul
sc config RemoteAccess start= disabled>nul
sc config seclogon start= demand>nul
sc config SamSs start= auto>nul
sc config lanmanserver start= disabled>nul
sc config ShellHWDetection start= auto>nul
sc config SCardSvr start= disabled>nul
sc config SCardDrv start= disabled>nul
sc config SSDPSRV start= disabled>nul
sc config stisvc start= demand>nul
sc config SENS start= auto>nul
sc config srservice start= disabled>nul
sc config Schedule start= disabled>nul
sc config LmHosts start= disabled>nul
sc config TapiSrv start= demand>nul
sc config TlntSvr start= disabled>nul
sc config TermService start= demand>nul
sc config Themes start= auto>nul
sc config UPS start= disabled>nul
sc config upnphost start= demand>nul
sc config uploadmgr start= disabled>nul
sc config VSS start= demand>nul
sc config WebClient start= disabled>nul
sc config AudioSrv start= auto>nul
sc config stisvc start= demand>nul
sc config MSIServer start= demand>nul
sc config winmgmt start=auto>nul
sc config Wmi start= demand>nul
sc config W32Time start=disabled>nul
sc config WZCSVC start= disabled>nul
sc config WudfSvc start= demand>nul
sc config WmiApSrv start= disabled>nul
sc config wscsvc start= disabled>nul
sc config lanmanworkstation start= auto>nul
sc config VMAuthdService start= demand>nul
sc config VMnetDHCP start= demand>nul
sc config "VMware NAT Service" start= demand>nul
sc config "ATI Smart" start= auto>nul
sc config "Ati HotKey Poller" start= disabled>nul
sc config InteractiveLogon start= disabled>nul
sc config "Machine Debug Manager" start= disabled>nul
sc config "Norton Ghost" start= demand>nul
sc config "Norton Unerase Protection" start= disabled>nul
sc config "NVIDIA Driver Helper Service" start= disabled>nul
sc config "WMDM PMSP Service" start= disabled>nul
echo.
echo         服务优化完成,建议重启电脑让这些设置生效!
echo     
echo     
echo     
echo.
echo         任意键返回......
pause>nul
goto start

:work
cls
echo.
echo      正在配置网络共享型配置......vista禁军教头
sc config Alerter start= disabled>nul
sc config ALG start= auto>nul
sc config AppMgmt start= demand>nul
sc config wuauserv start= disabled>nul
sc config BITS start= disabled>nul
sc config ClipSrv start= disabled>nul
sc config EventSystem start= demand>nul
sc config COMSysApp start= demand>nul
sc config Browser start= auto>nul
sc config CryptSvc start= auto>nul
sc config DcomLaunch start= auto>nul
sc config Dhcp start= disabled>nul
sc config TrkWks start= demand>nul
sc config MSDTC start= demand>nul
sc config Dnscache start= auto>nul
sc config ERSvc start= disabled>nul
sc config Eventlog start= auto>nul
sc config FastUserSwitchingCompatibility start= demand>nul
sc config FAX start= disabled>nul
sc config helpsvc start= disabled>nul
sc config HidServ start= disabled>nul
sc config HTTPFilter start= demand>nul
sc config ImapiService start= demand>nul
sc config CiSvc start= disabled>nul
sc config SharedAccess start= auto>nul
sc config PolicyAgent start= disabled>nul
sc config dmserver start= auto>nul
sc config dmadmin start= demand>nul
sc config Messenger start= disabled>nul
sc config SwPrv start= demand>nul
sc config Netlogon start= disabled>nul
sc config mnmsrvc start= disabled>nul
sc config Netman start= auto>nul
sc config NetDDE start= disabled>nul
sc config NetDEEdsdm start= disabled>nul
sc config Nla start= auto>nul
sc config NtLmSsp start= demand>nul
sc config SysmonLog start= disabled>nul
sc config PlugPlay start= auto>nul
sc config WmdmPmSN start= disabled>nul
sc config Spooler start= demand>nul
sc config ProtectedStorage start= auto>nul
sc config RSVP start= disabled>nul
sc config RasAuto start= auto>nul
sc config RasMan start= auto>nul
sc config RDSessMgr start= disabled>nul
sc config RpcSs start= auto>nul
sc config RpcLocator start= demand>nul
sc config RemoteRegistry start=disabled>nul
sc config NtmsSvc start= demand>nul
sc config RemoteAccess start= disabled>nul
sc config seclogon start= disabled>nul
sc config SamSs start= auto>nul
sc config lanmanserver start= auto>nul
sc config ShessHWDetection start= auto>nul
sc config SCardSvr start= disabled>nul
sc config SCardDrv start= disabled>nul
sc config SSDPSRV start= disabled>nul
sc config stisvc start= demand>nul
sc config SENS start= auto>nul
sc config srservice start= disabled>nul
sc config Schedule start= disabled>nul
sc config LmHosts start= disabled>nul
sc config TapiSrv start= auto>nul
sc config TlntSvr start= disabled>nul
sc config TermService start= demand>nul
sc config Themes start= auto>nul
sc config UPS start= disabled>nul
sc config upnphost start= demand>nul
sc config uploadmgr start= disabled>nul
sc config VSS start= demand>nul
sc config WebClient start= disabled>nul
sc config AudioSrv start= auto>nul
sc config stisvc start= demand>nul
sc config MSIServer start= demand>nul
sc config winmgmt start=auto>nul
sc config Wmi start= demand>nul
sc config W32Time start=disabled>nul
sc config WZCSVC start= disabled>nul
sc config WudfSvc start= demand>nul
sc config WmiApSrv start= disabled>nul
sc config wscsvc start= disabled>nul
sc config lanmanworkstation start= auto>nul
sc config VMAuthdService start= demand>nul
sc config VMnetDHCP start= demand>nul
sc config "VMware NAT Service" start= demand>nul
sc config "ATI Smart" start= auto>nul
sc config "Ati HotKey Poller" start= disabled>nul
sc config InteractiveLogon start= disabled>nul
sc config "Machine Debug Manager" start= disabled>nul
sc config "Norton Ghost" start= demand>nul
sc config "Norton Unerase Protection" start= disabled>nul
sc config "NVIDIA Driver Helper Service" start= disabled>nul
sc config "WMDM PMSP Service" start= disabled>nul
echo.
echo         服务优化完成,建议重启电脑让这些设置生效!
echo   
echo    
echo      
echo.
echo         任意键返回......
pause>nul
goto start

:game
cls
echo.
echo      正在配置游戏级配置......
sc config Alerter start= disabled>nul
sc config ALG start= disabled>nul
sc config AppMgmt start= demand>nul
sc config wuauserv start= disabled>nul
sc config BITS start= disabled>nul
sc config ClipSrv start=disabled>nul
sc config EventSystem start= disabled>nul
sc config COMSysApp start= disabled>nul
sc config Browser start= disabled>nul
sc config CryptSvc start= disabled>nul
sc config DcomLaunch start= auto>nul
sc config Dhcp start= auto>nul
sc config TrkWks start= disabled>nul
sc config MSDTC start= disabled>nul
sc config Dnscache start= disabled>nul
sc config ERSvc start= disabled>nul
sc config Eventlog start= auto>nul
sc config FastUserSwitchingCompatibility start= disabled>nul
sc config FAX start= disabled>nul
sc config helpsvc start= disabled>nul
sc config HidServ start= disabled>nul
sc config HTTPFilter start= demand>nul
sc config ImapiService start= disabled>nul
sc config CiSvc start= disabled>nul
sc config SharedAccess start= disabled>nul
sc config PolicyAgent start= disabled>nul
sc config dmserver start= auto>nul
sc config dmadmin start= disabled>nul
sc config Messenger start= disabled>nul
sc config SwPrv start= disabled>nul
sc config Netlogon start= disabled>nul
sc config mnmsrvc start= disabled>nul
sc config Netman start= demand>nul
sc config NetDDE start= disabled>nul
sc config NetDEEdsdm start= disabled>nul
sc config Nla start= disabled>nul
sc config NtLmSsp start= demand>nul
sc config SysmonLog start= disabled>nul
sc config PlugPlay start= auto>nul
sc config WmdmPmSN start= disabled>nul
sc config Spooler start= disabled>nul
sc config ProtectedStorage start= disabled>nul
sc config RSVP start= disabled>nul
sc config RasAuto start= demand>nul
sc config RasMan start= demand>nul
sc config RDSessMgr start= disabled>nul
sc config RpcSs start= auto>nul
sc config RpcLocator start= demand>nul
sc config RemoteRegistry start=disabled>nul
sc config NtmsSvc start= disabled>nul
sc config RemoteAccess start= disabled>nul
sc config seclogon start= disabled>nul
sc config SamSs start= disaabled>nul
sc config lanmanserver start= disabled>nul
sc config ShessHWDetection start= disabled>nul
sc config SCardSvr start= disabled>nul
sc config SCardDrv start= disabled>nul
sc config SSDPSRV start= disabled>nul
sc config stisvc start= demand>nul
sc config SENS start= disabled>nul
sc config srservice start= disabled>nul
sc config Schedule start= disabled>nul
sc config LmHosts start= disabled>nul
sc config TapiSrv start= disabled>nul
sc config TlntSvr start= disabled>nul
sc config TermService start= disabled>nul
sc config Themes start= disabled>nul
sc config UPS start= disabled>nul
sc config upnphost start= demand>nul
sc config uploadmgr start= disabled>nul
sc config VSS start= disabled>nul
sc config WebClient start= disabled>nul
sc config AudioSrv start= auto>nul
sc config stisvc start= disabled>nul
sc config MSIServer start= demand>nul
sc config winmgmt start=auto>nul
sc config Wmi start= demand>nul
sc config W32Time start=disabled>nul
sc config WZCSVC start= disabled>nul
sc config WudfSvc start= demand>nul
sc config WmiApSrv start= disabled>nul
sc config wscsvc start= disabled>nul
sc config lanmanworkstation start= auto>nul
sc config VMAuthdService start= demand>nul
sc config VMnetDHCP start= demand>nul
sc config "VMware NAT Service" start= demand>nul
sc config "ATI Smart" start= auto>nul
sc config "Ati HotKey Poller" start= disabled>nul
sc config InteractiveLogon start= disabled>nul
sc config "Machine Debug Manager" start= disabled>nul
sc config "Norton Ghost" start= demand>nul
sc config "Norton Unerase Protection" start= disabled>nul
sc config "NVIDIA Driver Helper Service" start= disabled>nul
sc config "WMDM PMSP Service" start= disabled>nul
echo.
echo         服务优化完成,建议重启电脑让这些设置生效!
echo      
echo       
echo  
echo.
echo         任意键返回......
pause>nul
goto start

:hot
cls
echo.
echo      正在配置发烧级配置......
sc config Alerter start= disabled>nul
sc config ALG start= disabled>nul
sc config AppMgmt start= demand>nul
sc config wuauserv start= disabled>nul
sc config BITS start= disabled>nul
sc config ClipSrv start=disabled>nul
sc config EventSystem start= disabled>nul
sc config COMSysApp start= disabled>nul
sc config Browser start= disabled>nul
sc config CryptSvc start= disabled>nul
sc config DcomLaunch start= auto>nul
sc config Dhcp start= disabled>nul
sc config TrkWks start= disabled>nul
sc config MSDTC start= disabled>nul
sc config Dnscache start= disabled>nul
sc config ERSvc start= disabled>nul
sc config Eventlog start= auto>nul
sc config FastUserSwitchingCompatibility start= disabled>nul
sc config FAX start= disabled>nul
sc config helpsvc start= disabled>nul
sc config HidServ start= disabled>nul
sc config HTTPFilter start= demand>nul
sc config ImapiService start= disabled>nul
sc config CiSvc start= disabled>nul
sc config SharedAccess start= disabled>nul
sc config PolicyAgent start= disabled>nul
sc config dmserver start= auto>nul
sc config dmadmin start= disabled>nul
sc config Messenger start= disabled>nul
sc config SwPrv start= disabled>nul
sc config Netlogon start= disabled>nul
sc config mnmsrvc start= disabled>nul
sc config Netman start= disabled>nul
sc config NetDDE start= disabled>nul
sc config NetDEEdsdm start= disabled>nul
sc config Nla start= disabled>nul
sc config NtLmSsp start= disabled>nul
sc config SysmonLog start= disabled>nul
sc config PlugPlay start= auto>nul
sc config WmdmPmSN start= disabled>nul
sc config Spooler start= disabled>nul
sc config ProtectedStorage start= disabled>nul
sc config RSVP start= disabled>nul
sc config RasAuto start= disabled>nul
sc config RasMan start= disabled>nul
sc config RDSessMgr start= disabled>nul
sc config RpcSs start= auto>nul
sc config RpcLocator start= disabled>nul
sc config RemoteRegistry start=disabled>nul
sc config NtmsSvc start= disabled>nul
sc config RemoteAccess start= disabled>nul
sc config seclogon start= disabled>nul
sc config SamSs start= disaabled>nul
sc config lanmanserver start= disabled>nul
sc config ShessHWDetection start= disabled>nul
sc config SCardSvr start= disabled>nul
sc config SCardDrv start= disabled>nul
sc config SSDPSRV start= disabled>nul
sc config stisvc start= disabled>nul
sc config SENS start= disabled>nul
sc config srservice start= disabled>nul
sc config Schedule start= disabled>nul
sc config LmHosts start= disabled>nul
sc config TapiSrv start= disabled>nul
sc config TlntSvr start= disabled>nul
sc config TermService start= disabled>nul
sc config Themes start= disabled>nul
sc config UPS start= disabled>nul
sc config upnphost start= demand>nul
sc config uploadmgr start= disabled>nul
sc config VSS start= disabled>nul
sc config WebClient start= disabled>nul
sc config AudioSrv start= auto>nul
sc config stisvc start= disabled>nul
sc config MSIServer start= demand>nul
sc config winmgmt start=auto>nul
sc config Wmi start= disabled>nul
sc config W32Time start=disabled>nul
sc config WZCSVC start= disabled>nul
sc config WudfSvc start= demand>nul
sc config WmiApSrv start= disabled>nul
sc config wscsvc start= disabled>nul
sc config lanmanworkstation start= auto>nul
sc config VMAuthdService start= demand>nul
sc config VMnetDHCP start= demand>nul
sc config "VMware NAT Service" start= demand>nul
sc config "ATI Smart" start= auto>nul
sc config "Ati HotKey Poller" start= disabled>nul
sc config InteractiveLogon start= disabled>nul
sc config "Machine Debug Manager" start= disabled>nul
sc config "Norton Ghost" start= demand>nul
sc config "Norton Unerase Protection" start= disabled>nul
sc config "NVIDIA Driver Helper Service" start= disabled>nul
sc config "WMDM PMSP Service" start= disabled>nul
echo.
echo         服务优化完成,建议重启电脑让这些设置生效!
echo      
echo     
echo  
echo.
echo         任意键返回......
pause>nul
goto start

:restore
cls
echo.
echo.
echo             正在恢复 Vista U版 默认服务……
sc config Alerter start= disabled>nul
sc config ALG start= demand>nul
sc config AppMgmt start= demand>nul
sc config AudioSrv start= auto>nul
sc config BITS start= demand>nul
sc config Browser start= auto>nul
sc config CiSvc start= demand>nul
sc config ClipSrv start= demand>nul
sc config COMSysApp start= demand>nul
sc config CryptSvc start= auto>nul
sc config DcomLaunch start= auto>nul
sc config Dhcp start= auto>nul
sc config dmadmin start= demand>nul
sc config dmserver start= auto>nul
sc config Dnscache start= auto>nul
sc config ERSvc start= auto>nul
sc config Eventlog start= auto>nul
sc config EventSystem start= demand>nul
sc config FastUserSwitchingCompatibility start= demand>nul
sc config helpsvc start= auto>nul
sc config HidServ start= disabled>nul
sc config HTTPFilter start= demand>nul
sc config ImapiService start= demand>nul
sc config lanmanserver start= auto>nul
sc config lanmanworkstation start= auto>nul
sc config LmHosts start= auto>nul
sc config Messenger start= disabled>nul
sc config mnmsrvc start= demand>nul
sc config MSDTC start= demand>nul
sc config MSIServer start= demand>nul
sc config NetDDE start= disabled>nul
sc config NetDDEdsdm start= disabled>nul
sc config Netlogon start= demand>nul
sc config Netman start= demand>nul
sc config Nla start= demand>nul
sc config NtLmSsp start= demand>nul
sc config NtmsSvc start= demand>nul
sc config PlugPlay start= auto>nul
sc config PolicyAgent start= auto>nul
sc config ProtectedStorage start= auto>nul
sc config RasAuto start= demand>nul
sc config RasMan start= demand>nul
sc config RDSessMgr start= demand>nul
sc config RemoteAccess start= disabled>nul
sc config RemoteRegistry start= auto>nul
sc config RpcLocator start= demand>nul
sc config RpcSs start= auto>nul
sc config RSVP start= demand>nul
sc config SamSs start= auto>nul
sc config SCardSvr start= demand>nul
sc config Schedule start= auto>nul
sc config seclogon start= auto>nul
sc config SENS start= auto>nul
sc config SharedAccess start= auto>nul
sc config ShellHWDetection start= auto>nul
sc config Spooler start= auto>nul
sc config srservice start= disabled>nul
sc config SSDPSRV start= demand>nul
sc config stisvc start= demand>nul
sc config SwPrv start= demand>nul
sc config SysmonLog start= demand>nul
sc config TapiSrv start= demand>nul
sc config TermService start= demand>nul
sc config Themes start= auto>nul
sc config TlntSvr start= disabled>nul
sc config TrkWks start= auto>nul
sc config UMWdf start= demand>nul
sc config upnphost start= demand>nul
sc config UPS start= demand>nul
sc config VSS start= demand>nul
sc config W32Time start= auto>nul
sc config WebClient start= auto>nul
sc config winmgmt start= auto>nul
sc config WmdmPmSN start= demand>nul
sc config Wmi start= demand>nul
sc config WmiApSrv start= demand>nul
sc config wscsvc start= auto>nul
sc config wuauserv start= auto>nul
sc config WZCSVC start= auto>nul
sc config xmlprov start= demand>nul
echo.
echo.
echo         服务优化完成,建议重启电脑让这些设置生效!
echo        
echo   
echo  
echo.
echo         任意键返回......
pause>nul
goto start

:end
exit

实用记事本写下,保存为****.bat文件格式为所有文件格式。

    • 评论
    • 分享微博
    • 分享邮件
    邮件订阅

    如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。

    重磅专题
    往期文章
    最新文章