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

 

 

 

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

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

Facebook photo

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

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.