Skip to content

Instantly share code, notes, and snippets.

@williamhammond
Created June 1, 2025 21:57
Show Gist options
  • Save williamhammond/91dea96fba129b26979721a7ad1b8504 to your computer and use it in GitHub Desktop.
Save williamhammond/91dea96fba129b26979721a7ad1b8504 to your computer and use it in GitHub Desktop.
Get PC Specs
Write-Host "=== PC COMPONENTS ===" -ForegroundColor Cyan; Write-Host "`nMOTHERBOARD:" -ForegroundColor Yellow; Get-CimInstance Win32_BaseBoard | Select Manufacturer, Product | Format-List; Write-Host "CPU:" -ForegroundColor Yellow; Get-CimInstance Win32_Processor | Select Name, NumberOfCores, NumberOfLogicalProcessors | Format-List; Write-Host "GPU:" -ForegroundColor Yellow; Get-CimInstance Win32_VideoController | Select Name, AdapterRAM | Format-List; Write-Host "RAM:" -ForegroundColor Yellow; Get-CimInstance Win32_PhysicalMemory | Select Manufacturer, Capacity, Speed | Format-Table; Write-Host "`nSTORAGE:" -ForegroundColor Yellow; Get-CimInstance Win32_DiskDrive | Select Model, Size | Format-Table
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment