Skip to content

Instantly share code, notes, and snippets.

@langheran
Created April 24, 2026 01:49
Show Gist options
  • Select an option

  • Save langheran/115188ec00e9f2ae46bda1853de0e606 to your computer and use it in GitHub Desktop.

Select an option

Save langheran/115188ec00e9f2ae46bda1853de0e606 to your computer and use it in GitHub Desktop.
C:\Users\NisimHurst\Home\scripts\view_ram.ps1
Write-Host "RAM física:" -ForegroundColor Cyan
Get-WmiObject Win32_PhysicalMemory | Select-Object Manufacturer, Capacity, Speed, PartNumber | Format-Table -AutoSize
Write-Host "`nGPU (VRAM):" -ForegroundColor Cyan
Get-CimInstance -ClassName Win32_VideoController | ForEach-Object {
[PSCustomObject]@{
Nombre = $_.Name
VRAM_GB = [Math]::Round($_.AdapterRAM / 1GB, 2)
}
} | Format-Table -AutoSize
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment