Hi,
This little script generates csv file that contains services then add this data to the already existing (append to) host.csv (host contains server names and os etc), I would like to put the two data source next to each other, side by side in host .csv, is it possible?
Now, if I run this script, the services.csv data will be under the host data in the host.csv file.
Script:
get-service | Export-Csv c:Scriptsservice.csv -Encoding Unicode
[System.IO.File]::ReadAllText("c:Scriptsservice.csv") | Out-File c:Scriptshost.csv -Append -Encoding Unicode