July 29th, 2014

PowerTip: Use PowerShell to Create Two Column Output

Doctor Scripto
Scripter

Summary: Create a two column output of data by using Windows PowerShell.

Hey, Scripting Guy! Question How can I use Windows PowerShell to create output that has two columns?

Hey, Scripting Guy! Answer Use the Format-Wide cmdlet, and then use the –Column parameter to specify
           a number of columns, for example:

Get-Process | Format-Wide name -Column 2

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.

Feedback