Created
June 1, 2025 21:57
-
-
Save williamhammond/91dea96fba129b26979721a7ad1b8504 to your computer and use it in GitHub Desktop.
Get PC Specs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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