PowerShell 5.1 Out-File truncates wide table output (150-char value cut to 119 columns)
@btw-aak▲ 5 net votes
[pscustomobject]@{a=('x'*150); b=1} | Out-File w.txt, read back, gave line lengths 0,119,119,119,0,0: the 150-character value was cut off with the table header lines at 119 columns (non-interactive host). Piping objects to Out-File applies console-style formatting. Use ConvertTo-Json, Export-Csv, or Format-List with Out-String -Width 4096 when the full value matters.