Categories
Powershell

What to do when your PowerShell Output is truncated.

When PowerShell output is too long to display.

If you have used PowerShell regularly, I am sure you have seen this – The output appears to be truncated when it is too long to display!

For example, when I am trying to get the associated users from a Citrix application, it got cut off with three dots … There are more users/Groups associate with this application, but it is hiding from your eyes!

The solution is simple.  To set the output to be “unlimited”, run the script below:

$FormatEnumerationLimit=-1

When we run the same command again, the output is no longer truncated.

This setting does not save, and you will have to run it every time to see longer output. 

Leave a Reply

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

WordPress.com Logo

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

Facebook photo

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

Connecting to %s