0

This has to be real easy but I just cant find an answer on google that will work in my case. I am running a ps1 file that caml queries a document library. I just want to organize these results into a table. Thats it.

Closest I got is $queryResults | select Title but this only make s a Title column and only works once for some reason. I have multiple queries and will have multiple tables.

1 Answer 1

0

Format-Table or its alias ft will do this for you.

$queryResults | Format-Table -auto

Format-Table

2
  • I need to choose a select number of columns. So $queryResults | Format-Table -Property Col1, Col2, Col3 is successfully organizing my data into columns, but no data is filling them. Commented Nov 19, 2012 at 22:41
  • windowsitpro.com/blog/powershell-with-a-purpose-blog-36/… check this out Commented Nov 19, 2012 at 22:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.