What are the permissions required for CIMSessions


I need to query some WMI classes on Servers that I do not have permissions.
Here is the error I get when I run it.

Right now server has PowerShell 2, so it uses DCOM but I will get the PowerShell upgraded and configured to allow WSMAN connections.

But what are the permissions that need to be granted to the account?


By default, Administrators (local) and Authenticated Users (domain) have at least read rights to the namespace. You need to ensure you can login/authenticate to the server. It’s worth mentioning that the Authenticated Users group does not have Remote Enable permission by default.

The Windows OS uses WinRM for CIM cmdlets and the user account needs to be an administrator. WinRM makes a local group called WinRMRemoteWMIUsers_ and gives access to just the Administrators group and WinRMRemoteWMIUsers_. To add a user to that group use the following command:

The abstract answer is simply that you need to be granted Enable Account and Remote Enable permissions to the Namespace to have WMI read rights remotely.

Process to Verify WMI Permissions

Login to the server and launch mmc.exe. Add the WMI snapin and once it loads, right click on WMI Control. When the Properties window opens, click security, expand root and select cimv2. Click the security button and view who is granted access and what access is granted.

Script to Test w/ DCOM

If you want to test using DCOM, or need to because the server OS is too old, use this script:


What are the permissions required for CIMSessions by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply