Win7服务优化方案(个人、网吧均适用)

服务优化方案

经过1年的沉淀,Win7服务的优化方案已经足够完善了,下面这套方案适合几乎所有场景使用,办公、家庭、网吧系统都可以使用(家庭或个人可能还要适当调整,比如打印类似的服务,网吧一定是足够使用了)。如果没有问题,ISO9000系列系统后期的版本也将始终参考该优化方案进行优化。

服务名称 显示名称 设置状态 备注
AxInstSV ActiveX Installer (AxInstSV) Disable  
SensrSvc Adaptive Brightness Disable  
AeLookupSvc Application Experience Manual  
AppIDSvc Application Identity Manual  
Appinfo Application Information Manual  
ALG Application Layer Gateway Service Disable  
AppMgmt Application Management Disable  
aspnet_state ASP.NET State Service Disable  
BITS Background Intelligent Transfer Service Manual  
BFE Base Filtering Engine Automatic 安全
BDESVC BitLocker Drive Encryption Service Disable  
wbengine Block Level Backup Engine Service Disable  
PeerDistSvc BranchCache Disable  
CertPropSvc Certificate Propagation Disable  
KeyIso CNG Key Isolation Manual 无线依赖
EventSystem COM+ Event System Automatic  
COMSysApp COM+ System Application Manual  
Browser Computer Browser Manual  
VaultSvc Credential Manager Manual 凭据管理
CryptSvc Cryptographic Services Automatic  
DcomLaunch DCOM Server Process Launcher Automatic  
UxSms Desktop Window Manager Session Manager Automatic 主题
Dhcp DHCP Client Automatic  
DPS Diagnostic Policy Service Disable  
WdiServiceHost Diagnostic Service Host Disable  
WdiSystemHost Diagnostic System Host Disable  
defragsvc Disk Defragmenter Manual  
TrkWks Distributed Link Tracking Client Disable  
MSDTC Distributed Transaction Coordinator Manual  
Dnscache DNS Client Automatic DNS缓存
EFS Encrypting File System (EFS) Disable  
EapHost Extensible Authentication Protocol Manual 无线依赖
fdPHost Function Discovery Provider Host Disable  
FDResPub Function Discovery Resource Publication Disable  
gpsvc Group Policy Client Automatic  
hkmsvc Health Key and Certificate Management Disable  
HomeGroupListener HomeGroup Listener Disable  
HomeGroupProvider HomeGroup Provider Disable  
hidserv Human Interface Device Access Automatic  
IKEEXT IKE and AuthIP IPsec Keying Modules Automatic  
UI0Detect Interactive Services Detection Disable  
SharedAccess Internet Connection Sharing (ICS) Disable  
iphlpsvc IP Helper Disable  
PolicyAgent IPsec Policy Agent Automatic IPSEC
KtmRm KtmRm for Distributed Transaction Coordinator Manual  
lltdsvc Link-Layer Topology Discovery Mapper Disable  
clr_optimization_v2.0.50727_64 Microsoft .NET Framework NGEN v2.0.50727_X64 Manual  
clr_optimization_v2.0.50727_32 Microsoft .NET Framework NGEN v2.0.50727_X86 Manual  
clr_optimization_v4.0.30319_64 Microsoft .NET Framework NGEN v4.0.30319_X64 Manual  
clr_optimization_v4.0.30319_32 Microsoft .NET Framework NGEN v4.0.30319_X86 Manual  
MSiSCSI Microsoft iSCSI Initiator Service Automatic  
swprv Microsoft Software Shadow Copy Provider Manual  
MMCSS Multimedia Class Scheduler Disable  
NetMsmqActivator Net.Msmq Listener Adapter Disable  
NetPipeActivator Net.Pipe Listener Adapter Disable  
NetTcpActivator Net.Tcp Listener Adapter Disable  
NetTcpPortSharing Net.Tcp Port Sharing Service Disable  
Netlogon Netlogon Disable  
napagent Network Access Protection Agent Disable  
Netman Network Connections Manual  
netprofm Network List Service Manual  
NlaSvc Network Location Awareness Automatic  
nsi Network Store Interface Service Automatic  
CscService Offline Files Disable  
WPCSvc Parental Controls Disable  
PNRPsvc Peer Name Resolution Protocol Disable  
p2psvc Peer Networking Grouping Disable  
p2pimsvc Peer Networking Identity Manager Disable  
PerfHost Performance Counter DLL Host Manual  
pla Performance Logs & Alerts Manual  
PlugPlay Plug and Play Automatic  
IPBusEnum PnP-X IP Bus Enumerator Disable  
PNRPAutoReg PNRP Machine Name Publication Service Disable  
WPDBusEnum Portable Device Enumerator Service Disable  
Power Power Automatic  
Spooler Print Spooler Disable 打印
wercplsupport Problem Reports and Solutions Control Panel Support Disable  
PcaSvc Program Compatibility Assistant Service Disable  
ProtectedStorage Protected Storage Manual  
QWAVE Quality Windows Audio Video Experience Disable  
RasAuto Remote Access Auto Connection Manager Manual VPN依赖
RasMan Remote Access Connection Manager Automatic VPN依赖
SessionEnv Remote Desktop Configuration Disable  
TermService Remote Desktop Services Manual 远程桌面
UmRdpService Remote Desktop Services UserMode Port Redirector Disable  
RpcSs Remote Procedure Call (RPC) Automatic  
RpcLocator Remote Procedure Call (RPC) Locator Disable  
RemoteRegistry Remote Registry Disable  
RemoteAccess Routing and Remote Access Disable  
RpcEptMapper RPC Endpoint Mapper Automatic  
seclogon Secondary Logon Manual  
SstpSvc Secure Socket Tunneling Protocol Service Manual  
SamSs Security Accounts Manager Automatic  
wscsvc Security Center Disable 操作中心
LanmanServer Server Disable 共享
ShellHWDetection Shell Hardware Detection Automatic 自动播放
SCardSvr Smart Card Disable  
SCPolicySvc Smart Card Removal Policy Disable  
SNMPTRAP SNMP Trap Disable  
sppsvc Software Protection Automatic  
sppuinotify SPP Notification Service Manual  
SSDPSRV SSDP Discovery Manual  
StorSvc Storage Service Manual  
SysMain Superfetch Automatic  
SENS System Event Notification Service Automatic  
TabletInputService Tablet PC Input Service Disable  
Schedule Task Scheduler Automatic 计划任务
lmhosts TCP/IP NetBIOS Helper Automatic  
TapiSrv Telephony Manual VPN依赖
Themes Themes Automatic 主题
THREADORDER Thread Ordering Server Manual  
TBS TPM Base Services Disable  
upnphost UPnP Device Host Manual  
ProfSvc User Profile Service Automatic  
vds Virtual Disk Manual  
VSS Volume Shadow Copy Manual  
WebClient WebClient Disable  
AudioSrv Windows Audio Automatic  
AudioEndpointBuilder Windows Audio Endpoint Builder Automatic  
SDRSVC Windows Backup Disable 系统备份
WbioSrvc Windows Biometric Service Disable  
idsvc Windows CardSpace Manual  
WcsPlugInService Windows Color System Disable  
wcncsvc Windows Connect Now – Config Registrar Disable  
wudfsvc Windows Driver Foundation – User-mode Driver Framework Manual  
WerSvc Windows Error Reporting Service Disable  
Wecsvc Windows Event Collector Manual  
eventlog Windows Event Log Automatic  
MpsSvc Windows Firewall Disable 防火墙
FontCache Windows Font Cache Service Manual  
stisvc Windows Image Acquisition (WIA) Manual  
msiserver Windows Installer Manual  
Winmgmt Windows Management Instrumentation Automatic  
WMPNetworkSvc Windows Media Player Network Sharing Service Manual  
TrustedInstaller Windows Modules Installer Manual  
FontCache3.0.0.0 Windows Presentation Foundation Font Cache 3.0.0.0 Manual  
WinRM Windows Remote Management (WS-Management) Disable  
WSearch Windows Search Disable 搜索索引
W32Time Windows Time Disable  
wuauserv Windows Update Manual 自动更新
WinHttpAutoProxySvc WinHTTP Web Proxy Auto-Discovery Service Disable  
dot3svc Wired AutoConfig Disable  
Wlansvc WLAN AutoConfig Automatic 无线
wmiApSrv WMI Performance Adapter Manual  
LanmanWorkstation Workstation Manual  
WwanSvc WWAN AutoConfig Disable  
Windows Defender Service Windows Defender Service Disable 防护

设置脚本

@echo off
echo. 按任意键开始优化服务...
pause >nul

set name=AudioEndpointBuilder,AudioSrv,BFE,CryptSvc,DcomLaunch,Dhcp,Dnscache,eventlog,EventSystem,gpsvc,hidserv,IKEEXT,lmhosts,MSiSCSI,NlaSvc,nsi,PlugPlay,PolicyAgent,Power,ProfSvc,RasMan,RpcEptMapper,RpcSs,SamSs,Schedule,SENS,ShellHWDetection,sppsvc,SysMain,Themes,UxSms,Winmgmt,Wlansvc
echo Set services Automatic start:
echo ---------------------------------------------
echo #bakup before set auto: >> win7srv.bak.txt
for  %%a in (%name%) do (
echo %%a:
sc qc %%a >> win7srv.bak.txt
sc config %%a start= Auto
)
echo .

set name=ALG,AppMgmt,aspnet_state,AxInstSV,BDESVC,CertPropSvc,CscService,dot3svc,DPS,EFS,fdPHost,FDResPub,hkmsvc,HomeGroupListener,HomeGroupProvider,IPBusEnum,iphlpsvc,LanmanServer,lltdsvc,MMCSS,MpsSvc,napagent,Netlogon,NetMsmqActivator,NetPipeActivator,NetTcpActivator,NetTcpPortSharing,p2pimsvc,p2psvc,PcaSvc,PeerDistSvc,PNRPAutoReg,PNRPsvc,QWAVE,RemoteAccess,RemoteRegistry,RpcLocator,SCardSvr,SCPolicySvc,SDRSVC,SensrSvc,SessionEnv,SharedAccess,SNMPTRAP,Spooler,TabletInputService,TBS,TrkWks,UI0Detect,UmRdpService,W32Time,wbengine,WbioSrvc,wcncsvc,WcsPlugInService,WdiServiceHost,WdiSystemHost,WebClient,wercplsupport,WerSvc,Windows Defender Service,WinHttpAutoProxySvc,WinRM,WPCSvc,WPDBusEnum,wscsvc,WSearch,WwanSvc
echo #bakup before set disabled: >> win7srv.bak.txt
echo Disable services:
echo ---------------------------------------------
for  %%a in (%name%) do (
echo %%a:
sc qc %%a >> win7srv.bak.txt
sc config %%a start= Disabled
)
echo .
echo Stop services:
echo ---------------------------------------------
for  %%a in (%name%) do (
echo %%a:
sc stop %%a
)

set name=AeLookupSvc,AppIDSvc,Appinfo,BITS,Browser,clr_optimization_v2.0.50727_32,clr_optimization_v2.0.50727_64,clr_optimization_v4.0.30319_32,clr_optimization_v4.0.30319_64,COMSysApp,defragsvc,EapHost,FontCache,FontCache3.0.0.0,idsvc,KeyIso,KtmRm,LanmanWorkstation,MSDTC,msiserver,Netman,netprofm,PerfHost,pla,ProtectedStorage,RasAuto,seclogon,sppuinotify,SSDPSRV,SstpSvc,stisvc,StorSvc,swprv,TapiSrv,TermService,THREADORDER,TrustedInstaller,upnphost,VaultSvc,vds,VSS,Wecsvc,wmiApSrv,WMPNetworkSvc,wuauserv,wudfsvc

echo Set services Manual start:
echo ---------------------------------------------
echo #bakup before set demand: >> win7srv.bak.txt
for  %%a in (%name%) do (
echo %%a:
sc qc %%a >> win7srv.bak.txt
sc config %%a start= demand
)
echo .
echo Stop services:
echo ---------------------------------------------
for  %%a in (%name%) do (
echo %%a:
sc stop %%a
)
@pause