Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using ssh to log on to other Windows machines. I'm trying to make a pssession on a localhost. But I cannot do it in normal posh prompt:

$ New-PSSession
New-PSSession : [localhost] Connecting to remote server localhost failed with the
following error message : Access is denied. For more information, see the
about_Remote_Troubleshooting Help topic.
At line:1 char:1
+ New-PSSession
+ ~~~~~~~~~~~~~
    + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspa
   ce) [New-PSSession], PSRemotingTransportException
    + FullyQualifiedErrorId : AccessDenied,PSSessionOpenFailed

It seems that I have to be on an elevated posh shell. Is there any way to do this without administrator privileges?

share|improve this question
up vote 6 down vote accepted

Powershell Remoting has a default PSSessionConfiguration called Microsoft.PowerShell with a SDDL which only allows people with administrative rights to execute remote commands on that machine.

You will need to get in touch with an administrator and have them open that up for you:

PS C:\> Set-PSSessionConfiguration -Name Microsoft.PowerShell -showSecurityDescriptorUI

More info here:

Don't forget to Enable-PSRemoting along with opening the appropriate ports (5985 HTTP/5986 HTTPS).

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .