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:

  1. Close all unnecessory applications.
  2. Unplug all USB devices except the keyboard and mouse
  3. Run WMIRep.cmd with administrator account
  4. Reboot the computer
  5. Run wbemtest and see if it works
  6. 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

 

 

 

 

posted @ 2012-01-16 15:08  大兵八世  阅读(241)  评论(0)    收藏  举报