I want to be able to output data from Powershell without any column headings. I know I can hide the column heading using Format-Table -HideTableHeaders
, but that leaves a blank line at the top.
Here is my example:
get-qadgroupmember 'Domain Admins' | Select Name | ft -hide | out-file Admins.txt
How do I eliminate the column heading and the blank line?
I could add another line and do this:
Get-Content Admins.txt | Where {$_ -ne ""} | out-file Admins1.txt
but I would like to do this on one line if possible