这几天遇到了一个问题,新买的笔记本在公司老是上不去网,ping网关,时通时不通,丢包率大约在1%~5%左右,然后我怀疑是网卡驱动或是系统的问题,都重装了,问题仍然没有解决,然后我把笔记本拿回家去,家里是电信的宽带,自动获取IP和DNS那种,在家ping了一晚上网关,没丢一个包,ping回环127.0.0.1也不丢包,肯定不是本的问题我猜。
公司的上网方式是静态路由,绑定MAC,我怀疑是公司的无线路由器有问题,但其他同事的本无线有线都没问题啊,纠结。。。然后我就用win7自带的网络诊断功能诊断了一下,反馈的问题是这样“您的计算机配置似乎是正确的,但该设备或资源(DNS 服务器)没有响应”和“Windows 无法与设备或资源(DNS 服务器)通信。尝试访问的计算机或服务可能临时不可用。”,在网上搜,好多方法都没成功,最后,有人说有可能是打补丁打的,可以恢复win7默认服务试试,无奈之下,只能先试试了,意料之外,不丢包了,现在把恢复win7的默认服务的批处理共享下。
@echo off
title 【Win7默认服务启动】
color 3f
echo 〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓
echo 【使用说明】
echo 本BAT适用于所有windows7系统,由于错误关闭某些服务的恢复。
echo 【免责声明】本服务方案适用于普通家庭用户研究使用,如需关闭某项服务请手动设置,使用此方案前退出所有安全类软件,以免影响打开服务出错,如果您同意就点击键盘任意键,不同意直接关不不会对系统有任何改动。
echo.
echo *****************************************************************************
echo 〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓
@echo 开始进行系统服务恢复……
@pause
sc config AeLookupSvc start= DEMAND
sc config ALG start= DEMAND
sc config AppIDSvc start= DEMAND
sc config Appinfo start= DEMAND
sc config AppMgmt start= DEMAND
sc config AudioEndpointBuilder start= AUTO
sc config Audiosrv start= AUTO
sc config AxInstSV start= DEMAND
sc config BDESVC start= DEMAND
sc config BFE start= AUTO
sc config BITS start= AUTO
sc config Browser start= DEMAND
sc config bthserv start= DEMAND
sc config CertPropSvc start= DEMAND
sc config clr_optimization_v2.0.50727_32 start= AUTO
sc config COMSysApp start= DEMAND
sc config CryptSvc start= AUTO
sc config CscService start= AUTO
sc config DcomLaunch start= AUTO
sc config defragsvc start= DEMAND
sc config Dhcp start= AUTO
sc config Dnscache start= AUTO
sc config dot3svc start= DEMAND
sc config DPS start= AUTO
sc config EapHost start= DEMAND
sc config EFS start= DEMAND
sc config ehRecvr start= DEMAND
sc config ehSched start= DEMAND
sc config eventlog start= AUTO
sc config EventSystem start= AUTO
sc config Fax start= DEMAND
sc config fdPHost start= DEMAND
sc config FDResPub start= AUTO
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 HomeGroupListener start= DEMAND
sc config HomeGroupProvider start= DEMAND
sc config idsvc start= DEMAND
sc config IKEEXT start= DEMAND
sc config IPBusEnum start= DEMAND
sc config iphlpsvc start= AUTO
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= AUTO
sc config Mcx2Svc start= DISABLED
sc config MMCSS start= AUTO
sc config MpsSvc start= AUTO
sc config MSDTC start= DEMAND
sc config MSiSCSI start= DEMAND
sc config msiserver start= DEMAND
sc config napagent start= DEMAND
sc config Netlogon start= DEMAND
sc config Netman start= DEMAND
sc config netprofm start= DEMAND
sc config NetTcpPortSharing start= DISABLED
sc config NlaSvc start= AUTO
sc config nsi start= AUTO
sc config p2pimsvc start= DEMAND
sc config p2psvc start= DEMAND
sc config PcaSvc start= DEMAND
sc config PeerDistSvc start= DEMAND
sc config pla start= DEMAND
sc config PlugPlay start= AUTO
sc config PNRPAutoReg start= DEMAND
sc config PNRPsvc start= DEMAND
sc config PolicyAgent start= DEMAND
sc config Power start= AUTO
sc config ProfSvc start= AUTO
sc config ProtectedStorage start= DEMAND
sc config QWAVE start= DEMAND
sc config RasAuto start= DEMAND
sc config RasMan start= DEMAND
sc config RemoteAccess start= DISABLED
sc config RemoteRegistry start= DEMAND
sc config RpcEptMapper start= AUTO
sc config RpcLocator start= DEMAND
sc config RpcSs start= AUTO
sc config SamSs start= AUTO
sc config SCardSvr start= DEMAND
sc config Schedule start= AUTO
sc config SCPolicySvc start= DEMAND
sc config SDRSVC start= DEMAND
sc config seclogon start= DEMAND
sc config SENS start= AUTO
sc config SensrSvc start= DEMAND
sc config SessionEnv start= DEMAND
sc config SharedAccess start= DISABLED
sc config ShellHWDetection start= AUTO
sc config SNMPTRAP start= DEMAND
sc config Spooler start= AUTO
sc config sppsvc start= AUTO
sc config sppuinotify start= DEMAND
sc config SSDPSRV start= DEMAND
sc config SstpSvc start= DEMAND
sc config StiSvc start= DEMAND
sc config swprv start= DEMAND
sc config SysMain start= AUTO
sc config TabletInputService start= DEMAND
sc config TapiSrv start= DEMAND
sc config TBS start= DEMAND
sc config TermService start= DEMAND
sc config Themes start= AUTO
sc config THREADORDER start= DEMAND
sc config TrkWks start= AUTO
sc config TrustedInstaller start= DEMAND
sc config UI0Detect start= DEMAND
sc config UmRdpService start= DEMAND
sc config upnphost start= DEMAND
sc config UxSms start= AUTO
sc config VaultSvc start= DEMAND
sc config vds start= DEMAND
sc config VSS start= DEMAND
sc config W32Time start= DEMAND
sc config wbengine start= DEMAND
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= DEMAND
sc config Wecsvc start= DEMAND
sc config wercplsupport start= DEMAND
sc config WerSvc start= DEMAND
sc config WinDefend start= AUTO
sc config WinHttpAutoProxySvc start= DEMAND
sc config Winmgmt start= AUTO
sc config WinRM start= DEMAND
sc config Wlansvc start= DEMAND
sc config wmiApSrv start= DEMAND
sc config WMPNetworkSvc start= DEMAND
sc config WPCSvc start= DEMAND
sc config WPDBusEnum start= DEMAND
sc config wscsvc start= AUTO
sc config WSearch start= AUTO
sc config wuauserv start= AUTO
sc config wudfsvc start= DEMAND
sc config WwanSvc start= DEMAND
以上内容保存复制保存为批处理,就是后缀为bat的文件运行即可。