Call me stupid, but I'm losing my hair with this one.
I have two results from a Get-WmiObject:
$cpu = Get-WmiObject -Class Win32_Processor
$mb = Get-WmiObject -Class Win32_BaseBoard
Now, I can filter and output a CSV file from each one:
$cpu | Select-Object Name, Description | ConvertTo-Csv -NoTypeInformation
and
$mb | Select-Object Manufacturer, Product | ConvertTo-Csv -NoTypeInformation
But... How the hell could I join these two outputs and make a single CSV output from both? Something like:
(
($cpu | Select-Object Name, Description) +
($mb | Select-Object Manufacturer, Product)
) | ConvertTo-Csv -NoTypeInformation
(of course, this syntax is invalid. Just to show the point)