Solved

WMI missing many classes on a Windows 2008 R2 Server

Posted on 2013-06-28
8
1,764 Views
Last Modified: 2014-01-08
I found out I am missing many WMI classes, specifically needed Win32_OperatingSystem from root\cimv2.  I have many other classes that are missing on the specific server.  I was wondering what is the best way to re-register these classes, non-intrusive way, if possible.
0
Comment
Question by:mystikal1000
8 Comments
 
LVL 78

Expert Comment

by:David Johnson, CD, MVP
ID: 39286181
0
 
LVL 1

Author Comment

by:mystikal1000
ID: 39289728
I did that already.
0
 
LVL 15

Expert Comment

by:ZabagaR
ID: 39293269
Did you try this command to rebuild WMI? (It will ask for the 2008 R2 DVD)

rundll32.exe setupapi,InstallHinfSection WBEM 132 %windir%\inf\wbemoc.inf
0
 
LVL 1

Accepted Solution

by:
mystikal1000 earned 0 total points
ID: 39297756
I ran this to fix the issue in the WBEM directory.

FOR /f %s in ('dir /b /s *.dll') do regsvr32 /s %s
Net stop /y winmgmt
FOR /f %s in ('dir /b *.mof *.mfl') do mofcomp %s
Net start winmgmt
1
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
LVL 15

Expert Comment

by:ZabagaR
ID: 39297873
Okay, thanks. I've seen that set of commands ran too!
0
 
LVL 19

Expert Comment

by:compdigit44
ID: 39298019
0
 
LVL 1

Author Closing Comment

by:mystikal1000
ID: 39306625
I fixed the issue with this command.
0
 

Expert Comment

by:dorlovitz
ID: 39766053
Mystikal1000 I can not get that comand to run.
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Account lockouts 22 68
How to do advance search in Windows 2008? 11 37
Robocopy Skipped Directory 12 42
Need script to search multiple files in one drive 13 30
In this article, we will see the basic design consideration while designing a Multi-tenant web application in a simple manner. Though, many frameworks are available in the market to develop a multi - tenant application, but do they provide data, cod…
This script can help you clean up your user profile database by comparing profiles to Active Directory users in a particular OU, and removing the profiles that don't match.
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

947 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now