Thursday, February 23, 2012
   
Text Size

PowerShell - Query Computer System Hardware

Microsoft PowerShell - Query Computer System Hardware

windows_powershell

To query the Computer Systems Hardware:

#Return the BIOS Manufacturer and Version:

Get-WmiObject -Class Win32_Bios | Select Caption | Format-List

#Return the Computer Manufacturer
Get-WmiObject -Class Win32_ComputerSystem | Select Manufacturer  | Format-List

#Return the Computer Model
Get-WmiObject -Class Win32_ComputerSystem | Select Model  | Format-List

#Return the Computer Name
Get-WmiObject -Class Win32_ComputerSystem | Select Name  | Format-List

#Return the Number Of Processors
Get-WmiObject -Class Win32_ComputerSystem | Select NumberOfProcessors  | Format-List

#Return the System Type (e.g. x86 or x64)
Get-WmiObject -Class Win32_ComputerSystem | Select SystemType  | Format-List