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?