Exchange Shell Truncated Output

Exchange LogoWhen working with Exchange Management shell you may get output to some queries where output is truncated, a good example of this can be seen when querying the RemoteIpRanges property of a receive connector here’s an example:

Get-ReceiveConnector "App Connector" | fl RemoteIP*

The above command will produce an output similar to the following (data is coming from my lab):

RemoteIPRanges : {,,,,,,,,,,,,,,,

You can see the Exchange Shell truncated, as you probably know each PowerShell session, Exchange shell is no exception, can be customized via profiles which in the Exchange Management Shell impose an enumeration limit set at 16 via the $FormatEnumerationLimit variable:


To prevent truncated output you can simply assign a different value to the $FormatEnumerationLimit variable, in the following example I will use a value of -1 which effectively means “unlimited”:

$FormatEnumerationLimit = -1

If the above command is run once again output will be correctly displayed:

RemoteIPRanges : {,,,,,,,,,,,,,,,,,

Just in case you are wondering $FormatEnumerationLimit value is defined in the Exchange.ps1 profile file which can be found under the /bin/ directory of your Exchange installation path.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s