@echo off setlocal title PC Tester - Diagnóstico del Sistema color 0A echo ============================================= echo HERRAMIENTA DE DIAGNOSTICO PC TESTER echo ============================================= echo. :: Nombre del equipo echo Nombre del equipo: echo %COMPUTERNAME% echo. :: Sistema operativo echo Sistema Operativo: for /f "tokens=2 delims==" %%a in ('wmic os get Caption /value ^| find "="') do echo %%a echo. :: Procesador echo Procesador - Nucleos e Hilos: wmic cpu get Name,NumberOfCores,NumberOfLogicalProcessors echo. :: Memoria RAM instalada (usando PowerShell) echo Memoria RAM instalada: powershell -command "Write-Output ('{0} GB' -f [math]::Round((Get-CimInstance Win32_ComputerSystem).TotalPhysicalMemory / 1GB, 2))" echo. :: Almacenamiento por unidad (usando PowerShell) echo Almacenamiento por unidad: powershell -command "Get-CimInstance Win32_LogicalDisk -Filter 'DriveType=3' | ForEach-Object { Write-Output ('Unidad {0} - Total: {1} GB / Libre: {2} GB' -f $_.DeviceID, [math]::Round($_.Size/1GB, 2), [math]::Round($_.FreeSpace/1GB, 2)) }" echo. :: Batería echo Estado de la batería: wmic path Win32_Battery get EstimatedChargeRemaining,BatteryStatus 2>nul || echo No se detecta batería (PC de escritorio). echo. pause endlocal