PowerShell Word Truncate

Sometimes when you issue a PowerShell command, the result comes back truncated with “…” and you cannot see what’s being printed to the screen. Pipe the command through Format-Table to fix. For example in SharePoint

Get-SPServiceInstance | Where-Object {$_.TypeName –eq ‘Central Administration’}

becomes…

Get-SPServiceInstance | Where-Object {$_.TypeName –eq ‘Central Administration’} | Format-Table -Wrap -AutoSize

In the former, the result might, for example, show “Provis….” for the Status column; in the latter, the result will show “Provisioning” in the status column.

Published by Joseph LeMay

Former IBM Notes Developer, now doing SharePoint

Leave a comment