作者:棋玉
问题现象:
1.系统属性显示不可用
2.msinfo32 提示不能访问WMI
修复方案:
注:以下操作可能会对客户环境产生影响,建议客户先进行快照
windows Server 2008R2:
右击cmd,选择以管理员身份运行,运行以下命令行:
sc config winmgmt start= disabled
net stop winmgmt /y
cd %windir%\system32\wbem
rename repository repository.old
for /f %s in ('dir /b *.dll') do regsvr32 /s %s
wmiprvse /regserver
sc config winmgmt start= auto
net start winmgmt
for /f %s in ('dir /b *.mof *.mfl') do mofcomp %s
Windows Server 2012及以后版本
右击cmd,选择以管理员身份运行,运行以下命令行:
sc config winmgmt start= disabled
net stop winmgmt /y
%systemdrive%
cd %windir%\system32\wbem
ren repository repository-backup
for /f %s in ('dir /b *.dll') do regsvr32 /s %s
sc config winmgmt start= Auto
net start winmgmt
dir /b *.mof *.mfl | findstr /v /i uninstall > moflist.txt & for /F %s in (moflist.txt) do mofcomp %s