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/
'IT이야기 > Powershell' 카테고리의 다른 글
파일 복사 시, Progress bar 나오게 하는 방법 (0) | 2021.09.10 |
---|---|
Ladp 계정 로그인 체크 (0) | 2019.08.26 |
윈도우 업데이트 리스트 카운트 구하기 (0) | 2019.05.27 |
[MSSQL]WMI for SQL Management(2)-ClientNetworkProtocol (0) | 2019.05.21 |
PowerShell 을 이용해서 파일 내용 대량으로 변경 하기출처 (0) | 2019.05.21 |