Trying to start Agent service results in an unknown WMI error – “WMI unauthorized access exception”
Replay.log error:
ERROR 2013-10-09T16:59:03 [4] – Replay.Agent.Service.AgentService ()
Caught exception during service start
Replay.Common.Contracts.WmiApi.WmiException: Unknown WMI error: —> System.UnauthorizedAccessException
WMIDiag results in:
0×80070005 – (WBEM_UNKNOWN) This error code is external to WMI.
=> This error is not a WMI error. It is typically due to: The DCOM security
modifications.
=> Ensure that DCOM security configuration settings are not modified.
This issue is caused by restrictive DCOM permission settings.
1.) Use Component Services (dcomcnfg.exe) to change the security if the “Edit
Limits” button is not grayed out:
Console Root/Component Services/Computers -
right click on “My Computer” and select Properties. Go to COM Security,
Launch and Activation Permissions. (Since the “Edit Limits” button was
grayed out, no changes were made here)
2.) If “Edit Limits” is greyed out, please check Local Security Settings (secpol.msc) for any DCOM policies:
Security Settings/Local Policies/Security Options: DCOM: Machine Launch Restrictions in Security Descriptor Definition Language
(SDDL) syntax
3.)Double click (or right click, properties), Edit Security, Add “Everyone” &
check:
Local Launch and Local Activation..