Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Trying to remove header from the CSV file output

$
0
0
Is it possible to remove the header information from the output. I have tried a few things like -hidetablerheaders and -expandproperty.

Here is the code:

get-aduser -filter * -properties name, telephoneNumber, department, extensionAttribute1 | where-object { $_.extensionAttribute1 -eq "1" } | Select-Object samAccountName, givenname, surname, telephoneNumber, department | Export-Csv feed.csv -NoTypeInformation -Encoding ASCII

Any help would be appreciated

http://techwithmike.com


Viewing all articles
Browse latest Browse all 21975

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>