Thoughts from the EPS Windows Server Performance Team
WMI PERMISSIONS & GENERAL ERRORS
Description: WMI can fail for a number of reasons. Some of those can include not having appropriate rights and permissions for access to machines or namespaces, problems with provider registration, corrupted repository, and scripting errors to name a few.
If WMI returns error messages, be aware that they may not indicate problems in the WMI service or in WMI providers. Failures can originate in other parts of the operating system and emerge as errors through WMI. Never delete the WMI repository as a first troubleshooting step because deleting the repository can cause damage to the system or to installed applications.
Scoping the Issue: When dealing with general WMI troubleshooting, the first thing to do is to test the WMI service. The quickest way to do this is via the WMI Control snap-in:
When working on WMI issues, we also need to check the status of DCOM. If you are not terribly familiar with DCOM, our blog post "COM and DCOM for Administrators" is a good place to get familiar with the basics. Our basic testing for DCOM begins with ensuring that DCOM is actually enabled:
Assuming that DCOM is enabled, we also need to check if the Distributed Transaction Coordinator service is started by checking the service status in the Services console snap-in.
Additionally, if you are seeing any "Access Denied" error messges, we need to verify that the DCOM and WMI Service settings are at their default values, and that the Network Service account has been granted impersonation rights. For more information, see the MSDN article WMI Troubleshooting.
Data Gathering: In all instances, collecting either MPS Reports with the General, Internet and Networking, Business Networks and Server Components diagnostics, or a Performance-oriented MSDT manifest must be done. Additional data required may include the following:
Troubleshooting / Resolution: Once you have gathered the data, here are some things to check:
WMIDiag 2.1 is now available!
Supported Operating Systems: Windows 7, Windows Server 2003, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP