728x90

Column Width

If it’s just a column width problem, the fix is simple enough: just pipe to out-string and add the width parameter.

PS > Get-CsAnalogDevice | ft Identity,RegistrarPool | out-string -Width 160

 

 

Collections / Arrays

… but what if that doesn’t fix it?

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/

 

Viewing Truncated PowerShell Output | greiginsydney.com

Sometimes PowerShell truncates output, and if you don’t realise what’s going on, you’ll never get it to show. Where you’re expecting potentially lots more text, PowerShell replaces it with a single lousy ellipsis, cruelly taunting you. Column Width If it’s

greiginsydney.com

    

728x90

+ Recent posts