Enter-PSSession

rated by 0 users
This post has 1 Reply | 1 Follower

Not Ranked
Posts 6
sxavier Posted: 05-02-2012 4:59 AM

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.

 

Regards

Sebastian

Top 10 Contributor
Posts 640

You can't use IP addresses by default, and you need to specify the credentials of a local Admin on the remote machine. See the free Secrets of PowerShell Remoting guide at http://powershellbooks.com. The chapter on connecting to computers specifically - it'll explain your options for this scenario. 

Page 1 of 1 (2 items) | RSS
Copyright 2012 PowerShell.com. All rights reserved.