SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 0 down vote accepted

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

$queryResults | Format-Table -auto


share|improve this answer
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. – SystemAccount Nov 19 '12 at 22:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.