Prevent Format-Table truncation

Sometimes when you run a powershell cript and use Format-Table the results can be truncated in some long columns and appear like this “…}”

This is a piddly little issue that the first time I encountered it had me stumped. I used google and found lots of so called “solutions” such using -Auto -Wrap or by specifying a -width, however what I was running this using the Exchange and Citrix snap ins I found this lovely little  treat that will set the result columns to an unlimited width:

$FormatEnumerationLimit =-1

How easy is that…

Facebooktwittergoogle_pluslinkedinby feather

Leave a Reply

Your email address will not be published. Required fields are marked *