New-PSSession : [Server01] Connecting to remote server Server01 failed with the following error message : The WinRM client
\ncannot process the request. If the authentication scheme is different from Kerberos, or if the client computer is not
\njoined to a domain, then HTTPS transport must be used or the destination machine must be added to the TrustedHosts
\nconfiguration setting. Use winrm.cmd to configure TrustedHosts. Note that computers in the TrustedHosts list might not be
\nauthenticated. You can get more information about that by running the following command: winrm help config. For more
\ninformation, see the about_Remote_Troubleshooting Help topic.
\nAt line:2 char:10.<\/p>\n
I don’t understand from here on, any suggestion or help ?<\/p>","upvoteCount":3,"answerCount":3,"datePublished":"2021-06-28T01:22:13.000Z","author":{"@type":"Person","name":"spiceuser-650qm","url":"https://community.spiceworks.com/u/spiceuser-650qm"},"suggestedAnswer":[{"@type":"Answer","text":"
New-PSSession : [Server01] Connecting to remote server Server01 failed with the following error message : The WinRM client
\ncannot process the request. If the authentication scheme is different from Kerberos, or if the client computer is not
\njoined to a domain, then HTTPS transport must be used or the destination machine must be added to the TrustedHosts
\nconfiguration setting. Use winrm.cmd to configure TrustedHosts. Note that computers in the TrustedHosts list might not be
\nauthenticated. You can get more information about that by running the following command: winrm help config. For more
\ninformation, see the about_Remote_Troubleshooting Help topic.
\nAt line:2 char:10.<\/p>\n
I don’t understand from here on, any suggestion or help ?<\/p>","upvoteCount":3,"datePublished":"2021-06-28T01:22:13.000Z","url":"https://community.spiceworks.com/t/new-pssession-server01-connecting/803995/1","author":{"@type":"Person","name":"spiceuser-650qm","url":"https://community.spiceworks.com/u/spiceuser-650qm"}},{"@type":"Answer","text":"
Welcome.<\/p>\n
Can you give us more details?<\/p>\n
Are both computer on the same domain? Did you enable WinRM / PS Remoting?<\/p>\n
if it’s a non domain environment you have to add the machine to the trusted list<\/p>\n
# Or if IPs are constantly changing, add ALL IPs (* is the wildcard)\nSet-Item WSMan:\\localhost\\Client\\TrustedHosts -Value \"*\" -Force\n<\/code><\/pre>","upvoteCount":0,"datePublished":"2021-06-28T01:29:43.000Z","url":"https://community.spiceworks.com/t/new-pssession-server01-connecting/803995/2","author":{"@type":"Person","name":"Neally","url":"https://community.spiceworks.com/u/Neally"}},{"@type":"Answer","text":"There are a lot of reasons for this message. And, to be honest, the error message says it pretty succinctly.<\/p>\n
Are you attempting to connect to a domain-joined host from a domain-joined host? If not, what credentials have you specified and how do you have trustedhosts setup?<\/p>","upvoteCount":0,"datePublished":"2021-07-25T16:46:56.000Z","url":"https://community.spiceworks.com/t/new-pssession-server01-connecting/803995/3","author":{"@type":"Person","name":"DoctorDNS","url":"https://community.spiceworks.com/u/DoctorDNS"}}]}}