Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Missing WMI classes

8 views
Skip to first unread message

-DC-

unread,
Jun 2, 2008, 9:02:25 PM6/2/08
to
I have a program that used the WMI root\CIMV2 namespace and
Win32_PerfRawData* classes to query information from WMS running on
Server 2003. Something has happened as I can no longer find any
Win32_PerfRawData classes on my server at all. I'm guessing a patch
changed something by either moving these classes, altering their
security, or deleting them. Does someone know where these went?

Jonathan Liu [MSFT]

unread,
Jun 12, 2008, 3:01:51 PM6/12/08
to
PLease take a look at this KB Article:

http://support.microsoft.com/kb/266416

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
--
"-DC-" <diskc...@mouse-potato.com> wrote in message
news:zP2dnciowp29BdnV...@comcast.com...

Anderson

unread,
Jan 13, 2010, 1:46:47 PM1/13/10
to
It's recomended that you rebuild the repository this ways:

A) Simple rebuilt of WMI repository (Recommended)
This is the short version...
1. stop WMI service
1.5 Make a backup of the Repository subdirectory in in %windir%\system32\wbem
2. rename the Repository subdirectory in %windir%\system32\wbem
3. rebuilt the WMI Repository in:
starting wbemtest.exe
connecting using Root/Default

IMPORTANT
The first connection will take some time since the repository is being rebuilt, but you should connect to a brand new repository afterwards
---
Additional info:
http://www.microsoft.com/technet/scriptcenter/topics/help/wmi.mspx


B) Complete reinstall of WMI
The steps generally include the following:
1. winmgmt /clearadap
2. winmgmt /kill
3. winmgmt /unregserver
4. winmgmt /regserver
5. winmgmt /resyncperf
6. net stop winmgmt
7. del %SystemRoot%/system32/Wbem/Repository/*.* /s
8. net start winmgmt
9. %SystemRoot%/system32/wbem/wbemtest.exe
------

After that, run the command wmiadap /f and the command wmiadap /r. Those will force windows to register or rebuild the performance counters.


From http://www.developmentnow.com/g/33_2008_6_0_0_1060477/Missing-WMI-classes.htm

Posted via DevelopmentNow.com Groups
http://www.developmentnow.com/g/

Byron

unread,
Apr 1, 2010, 11:11:01 AM4/1/10
to
Hi - I had a problem with this as the wbem directory is tied to a Windows service that needs to run. When I initially tried to rename it, it said it was being used by a different process so I used 'Process Explorer' to find the culprit and when I ended the task - it ended up shutting down the server since it needed the service.

Am I missing something? I was unable to do step A or B. In step B - it couldn't delete some of the files in the 'repository' directory.

0 new messages