New-PSSession fails with "server name cannot be resolved" with 64 bit PS Console

Welcome Forums General PowerShell Q&A New-PSSession fails with "server name cannot be resolved" with 64 bit PS Console

This topic contains 2 replies, has 3 voices, and was last updated by

 
Participant
3 years, 1 month ago.

  • Author
    Posts
  • #30362

    Participant
    Points: 0
    Rank: Member

    Hi,
    i have the problem that if i run New-PSSession -Computername xxxx the command fails with a 64 bit PS Console:

    New-PSSession : [xxxx] Connecting to remote server xxxx failed with the following error message : The WinRM client cannot processthe request because the server name cannot be resolved. For more information, see the about_Remote_Troubleshooting Help topic.

    I can resolve xxxx with a DNS query.

    If i run the command with a 32 bit PS Console it works fine...

    Do you have any ideas why this is so?

    Thanks

  • #30388

    Participant
    Points: 0
    Rank: Member

    I don't know of an easy answer for you. You have to work through the name resolution. Start with a

    Test-Connection XXXX 

    If that is successful try specific ports and work through possible options.

  • #30394

    Participant
    Points: 0
    Rank: Member

    What is Resolve-DNSName giving you in a 64bit PS console?

The topic ‘New-PSSession fails with "server name cannot be resolved" with 64 bit PS Console’ is closed to new replies.