Procedure

To use HTTP for PowerShell remoting, run the following command on the host:
winrm quickconfig

Results

Port 5985 is opened to listen to incoming connection. Sometimes, the connection from the remote PowerShell does not work because of the following error:

Connecting to remote server 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 connected to a domain, you must use HTTPS transport. Or, add the destination machine to the TrustedHosts configuration setting.

Use the following command to configure TrustedHosts:

winrm.cmd

Note:

Computers in the TrustedHosts list might not be authenticated. For more information, run the following command:

winrm help config

What to do next

You can also run the following command to remote host as trusted host on the client.

winrm set winrm/config/client'@{TrustedHosts="10.0.5.35"}'