Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Export-CSV format question

$
0
0

I have this code:

Invoke-Command-FilePath"\\FS-sccm12\PSScripts\SoftwareInventory.ps1"-ComputerName lab1 | Export-csv c:\temp\lab1.csv-NoTypeInformation
it calls a function that gets all software installed on the target machine.  If I use Out-File the .TXT file that is created has all data I need.  But when I use Export-CSV it gives me a bunch of mumbo-jumbo.
how do I get my data to correctly export to the .csv file?
Thanks.  

Viewing all articles
Browse latest Browse all 6937

Trending Articles