Exchange KB2027064: Error message when you try to start Exchange Management Shell (EMS) or Exchange Management Console (EMC): "The connection to the specified remote host was refused"

Knowledge-BaseВсем привет!

Очередной KB для Exchange Server: KB2027064

Error message when you try to start Exchange Management Shell (EMS) or Exchange Management Console (EMC): “The connection to the specified remote host was refused”

 

Симптомы:

Когда вы запускаете Exchange Management Shell (EMS) или Exchange Management Console (EMC) на сервере, где установлен Microsoft Exchange Server 2010, вы получаете следующую ошибку:

The connection to the specified remote host was refused. Verify that the WS-Management service is running on the remote host and configured to listen for requests on the correct port and HTTP URL. For more information, see the about_Remote_Troubleshooting Help topic.

 

Причина:

  1. MSExchangePowerShellAppPool не запущен в IIS или испытывает проблемы в работе
  2. Для текущего пользователя не включена возможность удаленного использования Powershell (Remote PowerShell Enabled status)
  3. Неправильно настроен Windows Remote Management (WinRM)

 

Решение:

To resolve this problem, use one of the following methods:

  • Make sure that the MSExchangePowerShellAppPool application pool is running. If the pool is running, try to recycle it. Then, check for errors or warnings in the event logs.
  • Make sure that the user who is trying to connect has Remote PowerShell Enabled status. To determine whether a user is enabled for Remote PowerShell, start Exchange Management Shell by using an account that has been enabled, and then run the following query:

    (Get-User <username>).RemotePowershellEnabled

    This query returns a response of True or False. If the response is False, the user is not enabled for Remote PowerShell. To enable the user, run the following command:

    Set-User <username> -RemotePowerShellEnabled $True

  • Make sure that WinRM is configured correctly on the server. To do this, follow these steps:

    1. Run WinRM Quick Config. To do this, click Start, type WinRM Quick Config in the Start Search box, and then press ENTER.
    2. Make sure that both tests pass and that no actions are required. If any actions are required, click Yes in the prompt window to allow the WinRM configuration changes to be made.
    3. Click Start, type cmd in the Start Search box, and then press ENTER. In the Command Prompt window, type WinRM enumerate winrm/config/listener at the command prompt, and then press ENTER.
    4. Make sure that a listener exists for the HTTP protocol on port 5985, and that the listener is listening on all addresses.

 

Удачи!

Читайте также: