Click here to Skip to main content
11,798,866 members (41,902 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: PowerShell Server , +

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
Edited 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 at 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
0 CPallini 465
1 OriginalGriff 378
2 Maciej Los 305
3 Richard MacCutchan 281
4 phil.o 244
0 OriginalGriff 2,270
1 Maciej Los 1,810
2 KrunalRohit 1,496
3 CPallini 1,425
4 Richard MacCutchan 1,109

Advertise | Privacy | Mobile
Web02 | 2.8.151002.1 | Last Updated 20 Aug 2015
Copyright © CodeProject, 1999-2015
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