Latest Updates in Technology, Programming, Finance, Books, Useful Websites, Gadget Reviews & More

Configure WinRM access for Non-Administrator users

Dear Friends,
Recently I was working on WinRM and trying to execute Powershell cmdlets on a remote Windows 2008 R2 machine with WinRM enabled, I could successfully execute the cmdlets with a domain user who belongs to administrator group, but I couldnot execute the same cmdlets as a domain user where is not an Administrator.

After debugging and searching for couple of hours, I could find the problem cause and the way to resolve this. The reason for the problem is that by default non-administrators wouldnt have access for WinRM, we need to provide access for non-admin users explicitly. Please find below the details of configurations to be done.
1. Launch Powershell prompt as a user with Administrator access (as we need to do privileged action)
2. Run the following command:
Set-PSSessionConfiguration Microsoft.PowerShell -ShowSecurityDescriptorUI
3. At the prompt, enter: Y
The Permissions window appears.
4. Add the users which need access to WinRM and close the window by saving changes.

By doing above configuration we should be able to use non-administrator users also use WinRM.

Hope this helps.

Please share your comments.


Comments (0) Trackbacks (0)

No comments yet.

Leave a comment

No trackbacks yet.