WMI 学习资源
来自微软,像讲故事一样介绍技术问题,我喜欢
http://msdn.microsoft.com/zh-cn/library/ms974579.aspx
WMI is not working properly? This is how we fix it!
Run this in cmd.exe with administrator account: winmgmt /verifyrepository
If WMI repository is not corrupted, it should say "WMI repository is consistant"
If it is corruptd, do this:
- Close all unnecessory applications.
- Unplug all USB devices except the keyboard and mouse
- Run WMIRep.cmd with administrator account
- Reboot the computer
- Run wbemtest and see if it works
- Note: unless wbemtest is working, connecting XBox ontroller back willcorrupte the windows installation and then you ahve to do the full reinstallation.
@echo off
sc config winmgmt start= disabled
net stop winmgmt /y
%systemdrive%
cd %windir%\system32\wbem
for /f %%s in ('dir /b *.dll') do regsvr32 /s %
wmiprvse /regserver
winmgmt /regserver
sc config winmgmt start= auto
net start winmgmt
for /f %s in ('dir /s /b *.mof *.mfl') do mofcomp %s
浙公网安备 33010602011771号