mandag den 30. december 2013

Give non-administrators access to PSRemoting

It is quite simple, but very non-powershellish, to frant non-administrators access to use remote sessions on a remote server.

You need to log on to the server (the non-powershellish part) open Powershell with Administrator prevelidges and run this command:
Set-PSSessionConfiguration -Name Microsoft.PowerShell -showSecurityDescriptorUI

Press Y and Enter and a nice little GUI-box opens, where you can adjust the ACL accordingly.

If you need your non-administrators to run the x86 version of Powershell, use this command instead:

Set-PSSessionConfiguration -Name Microsoft.PowerShell32 -showSecurityDescriptorUI