I have two powershell cmdlets to generate process report and services report.
eg: Get-process and Get-services
I know export-csv c:\test.csv will export the result to excel sheets.
But I need the result of the first cmdlet to export to the first sheet and the second cmdlet to second sheet of the same csv file.
How do I do this?
Export-Csvbecause a .csv is a plain text file that doesn't support multiple sheets like a real Excel workbook.