1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
#Llamadas WMI $ComputerSystem=Get-WmiObject Win32_ComputerSystem $BaseBoard=Get-WmiObject Win32_BaseBoard $BIOS=Get-WmiObject Win32_BIOS $Processor=Get-WmiObject Win32_Processor $Battery=Get-WmiObject Win32_Battery #Crear un objeto con todos los datos sobre el hardware [PSCustomObject]@{ Model = $ComputerSystem.Model ManufacturerBoard = $BaseBoard.Manufacturer BIOSVersion = $BIOS.SMbiosbiosversion BIOSSerialNumber = $BIOS.serialnumber ManufacturerProcessor=$Processor.Manufacturer MaxClockSpeed=$Processor.MaxClockSpeed DeviceIDBattery=$Battery.DeviceID.trim() } |