get-wmiobject returns object not found

If you run get-wmiobject and it returns an error that says Object not found. Here’s how to fix it:

 

For Server 2003:
rundll32 wbemupgd, RepairWMISetup

For Server 2008:
winmgmt /verifyrepository

If this doesn’t work, try renaming or deleting the repository:

First, you need to stop the WIN Management service
net stop winmgmt

Then, rename the existing WMI repository directory
%windir%\System32\Wbem\Repository

Finally, Start the WMI service.
net start winmgmt

 

Beyond that you can try re-registering all of the DLLs and executables in the Wbem directory.

 

Screenshot below:

WMI

 

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s