Click here to Skip to main content
12,997,042 members (129,431 online)
Rate this:
Please Sign up or sign in to vote.
See more: , +

I was trying to connect to a machine(; using powershell using the following query Enter-PSSession But I got the following error.

Enter-PSSession : Connecting to remote server failed with the following error message : Access is denied. For more information, see the about_Remote_Troubleshooting Help topic.At line:1 char:16
+ Enter-PSSession <<<<   
+ CategoryInfo          : InvalidArgument: ( [Enter-PSSession], PSRemotingTransportException
+ FullyQualifiedErrorId : CreateRemoteRunspaceFailed

Can you help me to solve this? Any help would be appreciated.

Thanks & Regards

Posted 2-May-12 2:54am
Updated 3-May-12 18:57pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

First, this has absolutely nothing to do with C#, so I fail to see why you tagged your question "C#". It should have been "PowerShell".

Second, what part of "Access Denied" and "see the about_Remote_Troubleshooting Help topic" you listed in your error message is difficult to understand?
Sebastian T Xavier 4-May-12 1:04am
Thanks for your update; I have re-tagged it.
Me too didn't understand that part of error message....
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

enter-pssession -ComputerName $computer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170622.1 | Last Updated 20 Aug 2015
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100