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 name 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
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.