"get-wmiobject win32_process -computername" gets error "Access denied , code 0x80070005"
Ok here are the steps:
- Launch "wmimgmt.msc"
- Right-click on "WMI Control (Local)" then select Properties
- Go to the "Security" tab and select "Security" then "Advanced" then "Add"
- Select the user name(s) or group(s) you want to grant access to the WMI and click ok
- Grant the required permissions, I recommend starting off by granting all permissions to ensure that access is given, then remove permissions later as necessary.
- Ensure the "Apply to" option is set to "This namespace and subnamespaces"
- Save and exit all prompts
- Add the user(s) or group(s) to the Local "Distributed COM Users" group. Note: The "Authenticated Users" and "Everyone" groups cannot be added here, so you can alternatively use the "Domain Users" group.