When you install the Exchange Server Security Update KB 3087126 on a server running the Exchange Server 2013 management tools only, you might receive an error message when starting the Exchange Management Shell.
The error might look like this:
The error message indicates that WinRM is having issues.This is not the case.
The problem occues due to registry changes performed by the patch setup and due to the way how ConnectFunctions.ps1 (used by RemoteExchange.ps1) determines the Exchange Server to connect to.
The script tries to connect to the local FQDN, if any Exchange role is installed on the local server. This is determined by querying the registry using the following command:
if (@(get-item HKLM:\SOFTWARE\Microsoft\ExchangeServer\v15\*role -erroraction:silentlycontinue).length -gt 0)
The queried registry does not exist prior to installation of KB 3087126.
When having installed the Exchange Server 2013 management tools only, which might be the case on a monitoring or scheduled task server, do the following:
- Delete the registry key ClientAccessRole
- Open a new Exchange Power Shell session
Enjoy the Exchange Management Shell.
- Security Update For Exchange Server 2013 CU9 (KB3087126)
- MS15-103: Description of the security update for Exchange Server: September 8, 2015
Mailscape 365 – Hybrid Exchange & Office 365 Monitoring and Reporting
Many organizations are choosing to use a mix of on-premise Microsoft Exchange and hosted Office 365 to meet their staff needs. These deployments, however, are challenging to support, with several 'moving parts' that need to be monitored in order to ensure reliable messaging and calendaring services – Test Drive Mailscape for Exchange Online