Click here to Skip to main content
11,706,455 members (47,995 online)
Rate this: bad
good
Please Sign up or sign in to vote.
Hello,

I was trying to connect to a machine(192.168.1.194); using powershell using the following query Enter-PSSession 192.168.1.194. 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 <<<<  192.168.1.194   
+ CategoryInfo          : InvalidArgument: (192.168.1.194:String) [Enter-PSSession], PSRemotingTransportException
+ FullyQualifiedErrorId : CreateRemoteRunspaceFailed
Can you help me to solve this? Any help would be appreciated.



Thanks & Regards

Sebastian
Posted 2-May-12 2:54am
Edited 3-May-12 18:57pm
v6
Rate this: bad
good
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?
  Permalink  
Comments
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
good
Please Sign up or sign in to vote.

Solution 2

enter-pssession -ComputerName $computer
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 192
1 Sergey Alexandrovich Kryukov 141
2 chainerlt 110
3 ppolymorphe 71
4 Mika Wendelius 70
0 OriginalGriff 9,070
1 Sergey Alexandrovich Kryukov 8,413
2 CPallini 5,189
3 Maciej Los 4,746
4 Mika Wendelius 3,676


Advertise | Privacy | Mobile
Web02 | 2.8.150819.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