Controlling column widths with Format-Table

To summarize and complement the helpful comments made by PetSerAl and Ansgar Wiechers: tl;dr Get-CimInstance -ClassName win32_operatingsystem -ComputerName $pclist | Sort-Object CSName | Format-Table CSName, LastBootUpTime -AutoSize -AutoSize is what ensures that the CSName (computer name) column is as wide as it needs to be to show all values in full (unless these values themselves … Read more