Skip to content

Instantly share code, notes, and snippets.

@jerryc05
Last active July 11, 2025 01:47
Show Gist options
  • Save jerryc05/52d7ff92843497be774b3da602471e2b to your computer and use it in GitHub Desktop.
Save jerryc05/52d7ff92843497be774b3da602471e2b to your computer and use it in GitHub Desktop.
Get-CimInstance -ClassName Win32_Processor | Select-Object -Property Name, NumberOfCores, NumberOfLogicalProcessors | Format-List; (Get-ItemProperty -Path "HKLM:\SYSTEM\ControlSet001\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0*" -Name "HardwareInformation.AdapterString", "HardwareInformation.qwMemorySize" -Exclude PSPath -ErrorAction SilentlyContinue) | ForEach-Object { [PSCustomObject] @{ Model=$_."HardwareInformation.AdapterString"; "VRAM (GB)"=[math]::round($_."HardwareInformation.qwMemorySize"/1GB) } }; Get-CimInstance -ClassName Win32_PhysicalMemory | Select-Object @{Name='Mem (GB)'; Expression={$_.Capacity / 1GB}}, Speed | Sort-Object | Format-Table -AutoSize; Get-CimInstance MSFT_PhysicalDisk -Namespace Root\Microsoft\Windows\Storage | select Model, MediaType, SpindleSpeed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment