Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Enter-PSSession does not work when a IPV6 address is entered as the -Computer value.

$
0
0

I cannot get Enter-PSSession to work with a specific IPV6 address and when TrustedHosts is also set to this address.

NOTE:  If TrustedHosts is set to "*", then the command succeeds, so I'm pretty sure the target is configured correctly to allow remote access.

Example:

set-item wsman:\localhost\Client\TrustedHosts "fc00:10:114:247:2d0b:6bf8:c982:ce10"

ENTER-PSSession -Computer fc00:10:114:247:2d0b:6bf8:c982:ce10 -Credential <somecred>

----

ENTER-PSSession : Connecting to remote server [fc00:10:114:247:2d0b:6bf8:c982:ce10] failed with the following error message : The WinRM client cannot process the request. Default authentication may
be used with an IP address under the following conditions: the transport is HTTPS or the destination is in the TrustedHosts list, and explicit credentials are provided. Use winrm.cmd to configure
TrustedHosts. Note that computers in the TrustedHosts list might not be authenticated. For more information on how to set TrustedHosts run the following command: winrm help config. For more
information, see the about_Remote_Troubleshooting Help topic.
At line:1 char:1
+ ENTER-PSSession -Computer fc00:10:114:247:2d0b:6bf8:c982:ce10 -Credential Admini ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (fc00:10:114:247:2d0b:6bf8:c982:ce10:String) [Enter-PSSession], PSRemotingTransportException
    + FullyQualifiedErrorId : CreateRemoteRunspaceFailed


Viewing all articles
Browse latest Browse all 21975

Trending Articles