Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
add comment

1 Answer

up vote 0 down vote accepted

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

$queryResults | Format-Table -auto

Format-Table

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
    
add comment

Your Answer

 
discard

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.