Share via


Error when Enter-PSSession to windows 10 machine

Question

Friday, January 25, 2019 4:07 PM

Hi,

I have two windows 10 machine that both of them is in the WORKGROUP network. I want to connect to the second windows 10 machine with Enter-PSSession but I got the following error:

[win10-2] Connecting to remote server win10-2 failed with the following error message : The WinRM client cannot process the request. If the
authentication scheme is different from Kerberos, or if the client computer is not joined to a domain, then HTTPS transport must be used or the
destination machine must be added to the TrustedHosts configuration setting. Use winrm.cmd to configure TrustedHosts. Note that computers in the
TrustedHosts list might not be authenticated. You can get more information about that by running the following command: winrm help config. For more
information, see the about_Remote_Troubleshooting Help topic.
    + CategoryInfo          : OpenError: (win10-2:String) [], PSRemotingTransportException
    + FullyQualifiedErrorId : ServerNotTrusted,PSSessionStateBroken

The command that I used is :

Enter-PSSession -computername win10-2 -credential administrator

Windows Remote Management Service is enabled and is running as well as I can ping the machine.

All replies (4)

Friday, January 25, 2019 10:04 PM âś…Answered

For one thing you have to set "TrustedHosts" on the computer you're typing the "Enter-PSSession" from.


Friday, January 25, 2019 6:23 PM

Please help


Saturday, January 26, 2019 9:44 AM

Can you tell me how can I do that? Thanks


Saturday, January 26, 2019 2:30 PM

/en-us/powershell/module/microsoft.powershell.core/about/about_remote_troubleshooting?view=powershell-6#how-to-add-a-computer-to-the-trusted-hosts-list