Exchange Server 2013 PowerShell Command Logging

A great feature for learning the underlying PowerShell commands when performing an administrative action in Exchange Server 2007/2010, was the Exchange Management Console which showed the PowerShell commands. In Exchange Server 2013 the MMC-based Exchange Management Console was replaced by the web-based Exchange Management Console, which unfortunately did not show PowerShell commands. With the release of Service Pack 1 for Exchange Server 2013, the Exchange team brought the PowerShell Command Logging feature for providing similar capabilities.

In Exchange Server 2010, we could see the PowerShell commands at the end of the wizard when creating a new object:

image

We also had the “Show Exchange Management Shell command” button available when performing changes to an existing object:

image

Pressing the button would show us the PowerShell commands:

image

In Exchange Server 2013 SP1, the “Show Command Logging” option is available in the help menu in the upper right corner in the Exchange Admin Center:

image

This will open a new window where all commands from actions made in the Exchange Admin Center will be logged:

image

As an example, we are creating a new mailbox:

image

 

After pressing the Save-button, the PowerShell command for creating the mailbox is shown in the Command Logging window:

image

 

As we can see from the above screenshot, the Get- cmdlets is also logged when navigating around in the user interface.

In summary, the new Show Command Logging feature in Exchange Server 2013 Service Pack 1 provides a great way for Exchange administrators to learn how to perform an administrative task in PowerShell by first doing it in the graphical web based GUI, and then looking in the Command Logging window.