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.