WinRM fails when attempting to remote powershell to pc in workgroup

Received the following error when trying to remote powershell to a system that was a member of a workgroup:

Enter-pssession : Connecting to remote server 192.168.2.1 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.
At line:1 char:11
+ $string = Enter-pssession 192.168.2.1
+           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (192.168.2.1:String) [Enter-P

   SSession], PSRemotingTransportException

    + FullyQualifiedErrorId : CreateRemoteRunspaceFailed
Resolution:
Run Command:
enable-psremoting
set-item wsman:\localhost\Client\TrustedHosts *

Now you really shouldn’t leave your trustedhosts list as * but that is a separate blog post…

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s