Skip to content

Instantly share code, notes, and snippets.

@aduzsardi
Created July 25, 2017 07:56
Show Gist options
  • Save aduzsardi/08a56c035ff3478d98e3e25d58e0b044 to your computer and use it in GitHub Desktop.
Save aduzsardi/08a56c035ff3478d98e3e25d58e0b044 to your computer and use it in GitHub Desktop.
Viewing Truncated PowerShell Output
# Column Width
PS > Get-CsAnalogDevice | ft Identity,RegistrarPool -> Get-CsAnalogDevice | ft Identity,RegistrarPool | out-string -Width 160
# Collections / Arrays
# It might be that the object you’re looking at is an array (a “collection”), and PowerShell is only showing the first few entries in that array, rather than the lot.
# Here, the fix is to change the $FormatEnumerationLimit value. If you type it on its own into PowerShell the current value – probably 3 – will be returned. If you set a new value of -1, it’ll output ALL entries in your collection.
PS > $FormatEnumerationLimit
3
PS > $FormatEnumerationLimit=-1
# https://greiginsydney.com/viewing-truncated-powershell-output/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment