Windows Hardware Information and Test Tool
@echo off
:menu cls echo Please select a function: echo 1. CPU Information echo 2. Memory Information echo 3. SSD Information echo 4. USB Information echo 5. Network Card Information echo 6. Wireless Card and Bluetooth Information echo 7. BIOS Information echo 8. System Information echo 9. Graphics Card Information echo a. TPM Test echo b. Sound Test echo c. SSD 4X Test echo d. Bluetooth/WIFI Signal Test echo e. SSD Smart Test echo f. Graphics Card 8X/16X/VRAM Test echo g. Device Manager Test
set /p choice=Please enter a number (1-10, a-g):
if %choice%==1 goto cpu_info if %choice%==2 goto memory_info if %choice%==3 goto ssd_info if %choice%==4 goto usb_info if %choice%==5 goto network_card_info if %choice%==6 goto wireless_card_and_bluetooth_info if %choice%==7 goto bios_info if %choice%==8 goto system_info if %choice%==9 goto graphic_info if %choice%==a goto tpm if %choice%==b goto sound if %choice%==c goto ssd4x_test if %choice%==d goto bluetooth_wifi_test if %choice%==e goto ssd_smart_test if %choice%==f goto graphics_card_test if %choice%==g goto device_manager_test goto menu
:cpu_info echo CPU Information: wmic cpu get name,processorid,description,manufacturer,version,MaxClockSpeed pause >nul goto menu
:memory_info echo Memory Information: wmic memorychip get capacity,devicelocator,partnumber,manufacturer,speed,BankLabel,Description for /f "tokens=2 delims==" %%a in ('wmic OS Get FreePhysicalMemory /Value') do set "freemem=%%a" set /a freemem/=1024 echo Usable Memory: %freemem% pause >nul goto menu
:ssd_info echo SSD Information: wmic diskdrive get serialnumber,size,interfacetype,FirmwareRevision,model | Findstr /i "SCSI IDE" for /F "tokens=7 delims=. " %%i in ('winsat disk -drive c -seq -read ^| find /i "MB/s"') do ( set "read=%%i" ) for /F "tokens=7 delims=. " %%i in ('winsat disk -drive c -seq -write ^| find /i "MB/s"') do ( set "write=%%i" ) echo [Write Speed: %write%] echo [Read Speed: %read%] pause >nul goto menu
:usb_info echo USB Information: wmic diskdrive get model,serialnumber,size,interfacetype | Findstr /i /V "SCSI IDE" pause >nul goto menu
:network_card_info echo Network Card Information: getmac /v wmic nic get speed,NetConnectionStatus,NetConnectionID,ProductName | findstr /i "I225-V I226-V Realtek" pause >nul goto menu
:wireless_card_and_bluetooth_info echo Wireless Card and Bluetooth Information: netsh wlan show drivers | findstr /i /v "wpa ihv wep" pause >nul goto menu
:bios_info echo BIOS Information: wmic bios get ReleaseDate,BIOSVersion wmic bios get EmbeddedControllerMajorVersion,EmbeddedControllerMinorVersion wmic BASEBOARD get Manufacturer pause >nul goto menu
:system_info echo System Information: wmic os get Caption,Version,OSArchitecture wmic path softwarelicensingservice get OA3xOriginalProductKey cscript C:\windows\system32\slmgr.vbs -xpr for /f "skip=1 tokens=2 delims==" %%a in ('wmic csproduct get identifyingnumber /value') do set "sn=%%a" for /f "skip=1 tokens=2 delims==" %%a in ('wmic csproduct get uuid /value') do set "uuid=%%a" for /f "skip=1 tokens=2 delims==" %%a in ('wmic csproduct get name /value') do set "model=%%a" for /f "skip=1 tokens=2 delims==" %%a in ('wmic csproduct get vendor /value') do set "System_Manufacturer=%%a" for /f "skip=1 tokens=2 delims==" %%a in ('wmic baseboard get Manufacturer /value') do set "Mainboard_Manufacturer=%%a" for /f "skip=1 tokens=2 delims==" %%a in ('wmic baseboard get Product /value') do set "Mainboard_Name=%%a" echo System product: %model% echo System Serial number: %sn% echo System UUID: %uuid% echo System Manufacturer: %System_Manufacturer% echo Baseboard manufacture: %Mainboard_Manufacturer% echo Baseboard product: %Mainboard_Name% pause >nul goto menu
:graphic_info echo Graphics Card Information: Wmic Path Win32_VideoController Get DriverVersion,DriverDate,Name | findstr /i /v "Virtual" pause >nul goto menu
:tpm echo TPM Test: TPM.MSC pause >nul goto menu
:sound echo Sound Test: start /wait DMIC.exe pause >nul goto menu
:ssd4x_test echo SSD 4X Test: REM Add code for SSD 4X Test pause >nul goto menu
:bluetooth_wifi_test echo Bluetooth/WIFI Signal Test: REM Add code for Bluetooth/WIFI Signal Test pause >nul goto menu
:ssd_smart_test echo SSD Smart Test: REM Add code for SSD Smart Test pause >nul goto menu
:graphics_card_test echo Graphics Card 8X/16X/VRAM Test: REM Add code for Graphics Card 8X/16X/VRAM Test pause >nul goto menu
:device_manager_test echo Device Manager Test: REM Add code for Device Manager Test pause >nul goto menu
:start echo Please modify the code above to complete the missing test items in the correct format.
原文地址: https://www.cveoy.top/t/topic/pgh3 著作权归作者所有。请勿转载和采集!