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.


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

$queryResults | Format-Table -auto



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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