-
WMI: Access is denied. (Exception from HRESULT: 0×80070005)
Posted on February 19th, 2008 5 comments
Print
We have one computer at work that I couldn’t send a Remote Assistance request to and whenever I try to query it using WMI and PowerShell I get the following error message:
Get-WmiObject : Access is denied. (Exception from HRESULT: 0×80070005 (E_ACCESSDENIED))
The problem turned out to be DCOM. For some reason it got disabled.
To change its settings, do the following:
- Go to Start -> Run, type in dcomcnfg.
- Go to Component Services -> Computers.
- Right-click on My Computer and select Properties.
- Go to the Default Properties tab.
- Make sure that Enable Distributed COM on this computer is checked.
- Compare the settings to a computer that is working properly and make the necessary changes. Compare the settings for the COM Security tab as well.
- Reboot the computer and try it again.
Credit goes to this website where I found this solution.
5 responses to “WMI: Access is denied. (Exception from HRESULT: 0×80070005)”

-
I suspected that could cause the access denied problem, thank you for sharing.
-
If the machine is not in a domain, then you need to disable simple file sharing. Otherwise, all remote file sharing connections are forced into using the guest account (including DCOM, which then rejects those remote connections with an Access is denied).
-
Thanks for the solution.
If you are on a domain add the permissons on COM Security “launch an Activatio Permissions”
Leave a reply

eduardite July 15th, 2010 at 14:24