WMI 0x80070005 - Access is Denied
I want to connect to a web server (Windows Server 2003 Web Edition) through WMI. But I am not able to run any WMI scripts. I am getting WMI Errors as follows
Number: 0x80070005
Facility: Win32
Description: Access is denied.
I checked the permissions on the WMI control properties and the local admin
group has full access.
Any suggestions?
Re: WMI 0x80070005 - Access is Denied
1) Make sure that the "Windows Management Instrumentation" service is set to automatic and is started on the client.
2) Make sure that DCOM is enabled on the client.
3) Make sure that your user is an Administrator on the computer.
4) If WMI still doesn't work download the WMI Diagnose tools from microsoft.
Re: WMI 0x80070005 - Access is Denied
Rebuild the WMI Repository
If you experience behavior when using WMI, such as application errors or scripts that used to work are no longer working, you may have a corrupted WMI repository. To fix a corrupted WMI repository, use these steps. It works in both Windows XP and Windows Vista.
1. Click Start, Run and type CMD.EXE
Quote:
Note: In Windows Vista, you need to click Start, click All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator.
2. Type this command and press Enter:
3. Now using Windows Explorer, rename the folder %windir%\System32\Wbem\Repository. (here %windir% represents the path to the Windows directory, which is typically C:\Windows)
4. Switch to Command Prompt window, and type the following and press ENTER after each line: