I am trying to practice using remote commands on one of my other computers in my house. I have two desktop windows 7 computers. I can't seem to get remote commands to work there is always some kind of error message that comes up. I have enabled -psremoting on both computers and have checked that winrm is also running on them aswell. This is one of the error messages that comes up:
[owner-pc] Connecting to remote server owner-pc failed with the following error message : The WinRM client
cannot process the request because the server name cannot be resolved. For more information, see the
about_Remote_Troubleshooting Help topic.
+ CategoryInfo : OpenError: (owner-pc:String) [], PSRemotingTransportException
+ FullyQualifiedErrorId : ComputerNotFound,PSSessionStateBroken
I think I resolved this other error message by inputting this cmdlet: winrm s winrm/config/client '@{TrustedHosts="RemoteComputer"}' I'm not sure if it is related to this other message or not. I'm also not sure if it is fixed yet.
This was the previous error message before the one I am getting now:
[owner-pc] Connecting to remote server owner-pc 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: (owner-pc:String) [], PSRemotingTransportException
+ FullyQualifiedErrorId : ServerNotTrusted,PSSessionStateBroken