Cannot start CIM session as non-admin account

Welcome Forums General PowerShell Q&A Cannot start CIM session as non-admin account

Viewing 2 reply threads
  • Author
    Posts
    • #231577
      Participant
      Topics: 5
      Replies: 3
      Points: 53
      Rank: Member

      I am trying to start a CIM session as a non-admin account. I have done the following:

      • Added the non-admin account to the “Remote Management Users” group
      • Modified the session configuration by running:
        Set-PSSessionConfiguration -Name Microsoft.PowerShell -showSecurityDescriptorUI
        then adding the non-admin account and giving it Full Control permissions (but Remote Management Users was already added with Full Control permissions and the non-admin account was already added to this group).

      However, I am still unable to run any commands remotely that use the -CimSession parameter as I get the following error:

      The WS-Management service cannot process the request. The WMI service returned an ‘access denied’ error

      I am able to run other remote commands as the non-admin account that don’t require a CIM session such as enter-pssession and Invoke-Command

      How can I use a CIM session to run commands remotely as a non-admin account?

    • #231616
      Participant
      Topics: 3
      Replies: 417
      Points: 1,462
      Helping Hand
      Rank: Community Hero

      Hello,

      The user will need WMI access. Check option 3 on this page.

      Using WMI without having full ‘administrator’ permissions

      I hope this helps

    • #231844
      Participant
      Topics: 5
      Replies: 3
      Points: 53
      Rank: Member

      The user will need WMI access. Check option 3 on this page.

      Using WMI without having full ‘administrator’ permissions

      That fixed the problem. Thanks!

      • This reply was modified 1 month, 1 week ago by Tsame.
Viewing 2 reply threads
  • You must be logged in to reply to this topic.