<#

If you are having issues with remoting in Powershell, here are a few of the most often overlooked culprits:
1. You can only remote from a console if it is in an elevated state (open PW > run as administrator)
2. Remoting is only by NetBios Name. They do not support IP addresses as I write this.
3. Enable-Remoting does not configure third party software. Only the Windows firewall on the local machine.
4. Remember, remoting is an inbound configuration. Outbound is not restricted by Powershell.
5. The ports for WinRM/WS-Man are 5985-5986. Only listeners, and only on those ports, are created.
6. And finally, remoting is an Active-Directory thing. You cannot remote to non-domain computers (no trust relationship).

#tags: Powershell, Remoting, Enable-PSRemoting, WinRM, WinRM quickconfig
#>

Advertisements

2 thoughts on “Remoting Gotchas

  1. 2. and 6. depend on the scenario and the environement…
    In a domain environment, you can remoting to a target computer using its FQDN.
    If the target computer belongs to a workgroup, you can remoting to a target computer by IP Address if you’ve added them to the trustedhosts value in wsman.

    Like

  2. This article was more about troubleshooting than a topic review. You are correct about using FQDN but it is not required. Any resolvable DNS name should do (although that statement has not been tested).
    According to the error message when trying to use an IP: Default authentication may be used with an IP address under the following conditions: the transport is HTTPS or the destination is in the TrustedHosts list, and explicit credentials are provided. Use winrm.cmd to configure TrustedHosts. Note that computers in the TrustedHosts list might not be authenticated.
    Our experience has been spotty in using TrustedHosts and we cannot validate that this is a consistent workaround method.
    Thank you for this discussion _EMIN_!

    Like

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