$computerSystem = Get-CimInstance CIM_ComputerSystem
$computerBIOS = Get-CimInstance CIM_BIOSElement
$computerOS = Get-CimInstance CIM_OperatingSystem
$computerCPU = Get-CimInstance CIM_Processor
$computerHDD = Get-CimInstance Win32_LogicalDisk -Filter "DeviceID = 'C:'"
Hello, I am trying to have all the pc information in one line. What should I modify to get it in one line likened then save it as CSV.
Manufacturer, Model, Serial Number, CPU,HDD Capacity, HDD Space, etc...
if I run it i am getting it like:
System Information for: pc-name
Manufacturer: Dell Inc.
Model: OptiPlex 7010
Serial Number: 647ZXX1
CPU: Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz
HDD Capacity: 146.39GB
HDD Space: 6.15 % Free (9.00GB)
Operating System: Microsoft Windows 7 Professional , Service Pack: 1
User logged In:
Last Reboot: 03/19/2017 08:16:21