Access Denied
Symptom: Access Denied
"Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))"
Solution: Change DCOM permissions
- Log in to your target machine
- Open dcomcnfg
- Expand Component Service > Computers > My Computer
- Right-click My Computer > Properties
- Select the COM Security tab
- Under Access Permissions > Edit Limits > Add >
your user
Select Local Access and Remote Access
- Under Launch and Activation Permissions go
to Edit Limits > Add > target-machine\your
user
Ensure it has all of the permissions checked under Allow:
Local Launch, Remote Launch, Local
Activation and Remote Activation
- Click OK > OK, and exit Component Services
Solution: Add permissions to the WMI namespace
- Log in to your target machine
- Open wmimgmt.msc
- From the left pane, properties, right-click WMI Control
(local)
- Select the Security tab
- Expand Root > CIMV2 click Security
- Add target-machine\your user
and click OK.
- In the Permissions for... pane, Allow
column, check Remote Enable.