Powershell

# Local System Information v3
# Shows details of currently running PC
# Thom McKiernan 11/09/2014

Clear-Host
$computerSystem = Get-CimInstance CIM_ComputerSystem
$computerMotherboard = Get-CimInstance -ClassName Win32_BaseBoard -Property *
$computerOS = Get-CimInstance CIM_OperatingSystem
$key = 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform'
$computerCPU = Get-CimInstance CIM_Processor
$computerGPU = Get-WmiObject Win32_VideoController
$computerHDD_C = Get-CimInstance Win32_LogicalDisk -Filter "DeviceID = 'C:'"
$computerHDD_D = Get-CimInstance Win32_LogicalDisk -Filter "DeviceID = 'D:'"
$windowsInstallDate = gcim Win32_OperatingSystem | select InstallDate
Clear-Host

Write-Host "System Information for: " $computerSystem.Name -BackgroundColor red
"Manufacturer: " + $computerSystem.Manufacturer
"Motherboard: " + $computerMotherboard.Product
"CPU: " + $computerCPU.Name
"GPU: " + $computerGPU.Description
"C: Capacity: "  + "{0:N2}" -f ($computerHDD_C.Size/1GB) + "GB"
"D: Capacity: "  + "{0:N2}" -f ($computerHDD_D.Size/1GB) + "GB"
"RAM: " + "{0:N2}" -f ($computerSystem.TotalPhysicalMemory/1GB) + "GB"
"Operating System: " + $computerOS.caption + ", Service Pack: " + $computerOS.ServicePackMajorVersion
"Windows Product Key: " + (Get-ItemProperty -Path $key -Name BackupProductKeyDefault).BackupProductKeyDefault
"Install date: " + $windowsInstallDate.InstallDate
"User logged In: " + $computerSystem.UserName
"Last Reboot: " + $computerOS.LastBootUpTime

Last updated