WinRM uses a set of default ports for communication. Depending on the WinRM version, the following port numbers are used:
• WinRM 1.1 and earlier: The default HTTP port is 80, and the default HTTPS port is 443.
• WinRM 2.0 and later: The default HTTP port is 5985, and the default HTTPS port is 5986.After issuing the winrm quickconfig command, the listener port number can be determined using the winrm enum winrm/config/listener command. For example:
To check whether a listener is configured for WinRM, you can issue the following command and observe its output:The Port and Transport elements contain important information. The above command output identifies an HTTP listener on port 5985.To see a full list of WinRM configuration values for the WinRM service that the Agent Manager is to use on the remote machine, you can issue the following command and observe its output:The important properties are AllowUnencrypted (it indicates whether HTTP is allowed or not), and the Auth values that are set to true (enabled), namely Basic and Negotiate. In this example, both authentication types are enabled.
• The AllowUnencrypted WinRM service configuration setting is false, and HTTP is used on the remote machine.