Powershell remoting to non-domain computer and computer in non trusted domain

rated by 0 users
This post has 1 Reply | 2 Followers

Not Ranked
Posts 1
rknaley Posted: 05-19-2010 2:54 PM

I am trying to setup remoting to work on two servers, one not in a domain and one in a non trusted domain. I have added "*" to the TrustedHosts on each server, and I am supplying credentials that have local Admin access to the server, I am getting the following error message when I try to use enter-pssession:

Enter-PSSession : Connecting to remote server failed with the following error message : Logon failure: unknown user nam
e or bad password. For more information, see the about_Remote_Troubleshooting Help topic.
At line:1 char:16
+ Enter-PSSession <<<<  cvgweb2201q -cred $cred
    + CategoryInfo          : InvalidArgument: (cvgweb2201q:String) [Enter-PSSession], PSRemotingTransportException
    + FullyQualifiedErrorId : CreateRemoteRunspaceFailed

 

Any ideas? Thanks in advance

Russ

Top 10 Contributor
Posts 658
Idera Employee

TrustedHosts is for the client machine not the servers. Set trustedhosts on the client machine.

Check the remote computer by running:

Test-WSMan -ComputerName cvgweb2201q -Authentication default

You should get something like this if it reaches the remote server:

wsmid           : http://schemas.dmtf.org/wbem/wsman/identity/1/wsmanidentity.xsd

ProtocolVersion : http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd

ProductVendor   : Microsoft Corporation

ProductVersion  : OS: 6.0.6002 SP: 2.0 Stack: 2.0

If you have not done so already, download the Administrator's Guide to Windows PowerShell Remoting in the Library section of this community site and start reading the Troubleshooting section starting on p.32.

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