-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSystemTester.bat
More file actions
733 lines (676 loc) · 23.4 KB
/
SystemTester.bat
File metadata and controls
733 lines (676 loc) · 23.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
@echo off
setlocal enableextensions enabledelayedexpansion
:: =====================================================
:: Portable Sysinternals System Tester Launcher
:: Created by Pacific Northwest Computers - 2025
:: Production Ready Version - v2.21
:: =====================================================
:: Constants
set "MIN_ZIP_SIZE=10000000"
set "DOWNLOAD_TIMEOUT_SEC=120"
set "SCRIPT_VERSION=2.21"
if not defined ST_DEBUG set "ST_DEBUG=0"
set "LAUNCH_LOG=%TEMP%\SystemTester_launcher.log"
:: =====================================================
:: Reliable admin detection and elevation
:: =====================================================
set "_ELEV_FLAG=%~1"
set "_DEBUG_FLAG=%~2"
if /i "%_DEBUG_FLAG%"=="debug" set "ST_DEBUG=1"
:: Primary admin check via PowerShell identity (works without Server service)
set "IS_ADMIN="
for /f "usebackq delims=" %%A in (`powershell -NoProfile -Command "(New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent())).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)" 2^>nul`) do set "IS_ADMIN=%%A"
if /i "%IS_ADMIN%"=="True" goto :ADMIN_CONFIRMED
:: Fallback check using FLTMC (requires elevation)
fltmc >nul 2>&1 && goto :ADMIN_CONFIRMED
:: Not admin - check if this is retry after elevation attempt
if /i "%_ELEV_FLAG%"=="/elevated" (
echo.
echo [WARNING] Admin status could not be verified after elevation.
echo Continuing anyway; some tests may be limited.
echo.
goto :ADMIN_CONFIRMED
)
:: Request elevation
echo.
echo ========================================================
echo Administrative privileges required for full testing
echo ========================================================
echo.
echo Some tests require administrator rights:
echo - DISM and SFC integrity checks
echo - Energy/battery report generation
echo - Hardware SMART data access
echo - System file verification
echo.
echo Requesting elevation...
echo.
set "_ELEV_ARGS=/elevated"
if "%ST_DEBUG%"=="1" set "_ELEV_ARGS=/elevated debug"
powershell -NoProfile -ExecutionPolicy Bypass -Command "Start-Process -FilePath '%~f0' -ArgumentList '%_ELEV_ARGS%' -Verb RunAs -WorkingDirectory '%~dp0'"
if errorlevel 1 (
echo [ERROR] Failed to elevate.
pause
)
exit /b
:ADMIN_CONFIRMED
title Portable Sysinternals System Tester v%SCRIPT_VERSION%
color 0B
:: Change to script directory
cd /d "%~dp0" 2>nul
if errorlevel 1 (
echo [ERROR] Cannot access directory: %~dp0
pause
exit /b 1
)
echo ========================================================
echo PORTABLE SYSINTERNALS SYSTEM TESTER v%SCRIPT_VERSION%
echo ========================================================
echo.
:: Set paths
set "SCRIPT_DIR=%cd%"
set "DRIVE_LETTER=%~d0"
:: Locate PowerShell script (single supported name)
set "SCRIPT_PS1=%SCRIPT_DIR%\SystemTester.ps1"
set "SCRIPT_PS1_NAME=SystemTester.ps1"
:: Check path length
for /f %%i in ('powershell -NoProfile -Command "('%SCRIPT_DIR%').Length" 2^>nul') do set "PATH_LENGTH=%%i"
if "%PATH_LENGTH%"=="" set "PATH_LENGTH=0"
if %PATH_LENGTH% GTR 200 (
echo [WARNING] Path is %PATH_LENGTH% chars. Move to shorter path if errors occur.
timeout /t 2 >nul
)
echo Running from: %DRIVE_LETTER%
echo Script directory: %SCRIPT_DIR%
echo Path length: %PATH_LENGTH% characters
echo.
:: Verify PowerShell script exists
if "%SCRIPT_PS1%"=="" (
echo [ERROR] PowerShell script not found in: %SCRIPT_DIR%
echo.
echo Expected one of the following files:
echo - SystemTester_FIXED.ps1
echo - SystemTester.ps1
echo.
echo If you renamed the script, restore one of the supported names.
echo.
pause
exit /b 1
)
echo Using PowerShell script: %SCRIPT_PS1_NAME%
if "%ST_DEBUG%"=="1" (
echo [%DATE% %TIME%] Using PS1: "%SCRIPT_PS1%" ^(exists: ^<^%SCRIPT_PS1%^^?^) >> "%LAUNCH_LOG%"
)
echo.
:: Check PowerShell version
echo Checking PowerShell...
for /f "tokens=*" %%v in ('powershell -NoProfile -Command "$PSVersionTable.PSVersion.ToString()" 2^>nul') do set "PS_VERSION=%%v"
if "%PS_VERSION%"=="" (
echo [ERROR] PowerShell not available or too old.
echo Requires PowerShell 5.1 or later.
pause
exit /b 1
)
echo PowerShell version: %PS_VERSION%
echo.
:: Check for Sysinternals folder
if not exist "%SCRIPT_DIR%\Sysinternals" (
echo [WARNING] Sysinternals folder not found!
echo Use Menu Option 5 to download automatically.
echo.
timeout /t 2 >nul
)
:MENU
cls
echo ========================================================
echo PORTABLE SYSINTERNALS SYSTEM TESTER v%SCRIPT_VERSION%
echo ========================================================
echo.
echo Drive: %DRIVE_LETTER% ^| Directory: %SCRIPT_DIR%
echo PowerShell: %PS_VERSION% ^| Admin: YES
echo.
echo --------------------------------------------------------
echo MAIN MENU
echo --------------------------------------------------------
echo.
echo 1. Run Interactive Menu (Recommended)
echo 2. Run ALL Tests Automatically
echo 3. Fix PowerShell Execution Policy
echo 4. Verify Tool Integrity (Signatures)
echo 5. Download/Update Sysinternals Suite
echo 6. GPU Testing Tools Manager
echo 7. Help / Troubleshooting
echo 8. Exit
echo.
echo --------------------------------------------------------
set /p "choice=Choose an option (1-8): "
if "%choice%"=="1" goto INTERACTIVE
if "%choice%"=="2" goto AUTORUN
if "%choice%"=="3" goto FIXPOLICY
if "%choice%"=="4" goto VERIFY
if "%choice%"=="5" goto DOWNLOAD
if "%choice%"=="6" goto GPU_TOOLS
if "%choice%"=="7" goto HELP
if "%choice%"=="8" goto EXIT
echo Invalid choice. Try again.
timeout /t 1 >nul
goto MENU
:INTERACTIVE
echo.
echo ========================================================
echo STARTING INTERACTIVE MODE
echo ========================================================
echo.
pause
set "PS_EXTRA="
if "%ST_DEBUG%"=="1" set "PS_EXTRA=-NoExit"
powershell.exe -NoProfile -ExecutionPolicy Bypass %PS_EXTRA% -File "%SCRIPT_PS1%"
echo.
if errorlevel 1 (
echo [ERROR] Script failed (code: %errorlevel%)
pause
) else (
echo Completed successfully.
timeout /t 2 >nul
)
goto MENU
:AUTORUN
echo.
echo ========================================================
echo RUNNING ALL TESTS AUTOMATICALLY
echo ========================================================
echo.
echo This will run 15 test suites and generate reports.
echo May take 10-30 minutes depending on your system.
echo.
pause
echo.
set "PS_EXTRA="
if "%ST_DEBUG%"=="1" set "PS_EXTRA=-NoExit"
powershell.exe -NoProfile -ExecutionPolicy Bypass %PS_EXTRA% -File "%SCRIPT_PS1%" -AutoRun
echo.
if errorlevel 1 (
echo [ERROR] Tests failed (code: %errorlevel%)
pause
) else (
echo All tests completed. Check directory for reports.
timeout /t 3 >nul
)
goto MENU
:FIXPOLICY
echo.
echo ========================================================
echo FIXING POWERSHELL EXECUTION POLICY
echo ========================================================
echo.
echo Current policy:
powershell -NoProfile -Command "Get-ExecutionPolicy -List | Format-Table -AutoSize"
echo.
echo Setting to RemoteSigned for CurrentUser...
powershell -NoProfile -Command "Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Force; Write-Host 'SUCCESS' -ForegroundColor Green"
echo.
pause
goto MENU
:VERIFY
echo.
echo ========================================================
echo TOOL INTEGRITY VERIFICATION
echo ========================================================
echo.
echo This will check digital signatures and file sizes
echo of all Sysinternals tools in your installation.
echo.
pause
echo.
:: Call the PowerShell function for tool verification
powershell -NoProfile -ExecutionPolicy Bypass -Command "try { . ""%SCRIPT_PS1%""; if (-not (Test-ToolVerification)) { exit 2 } else { exit 0 } } catch { Write-Error $_; exit 1 }"
set "VERIFY_CODE=%errorlevel%"
echo.
if "%VERIFY_CODE%"=="0" (
echo Verification complete. All tools validated successfully.
) else (
if "%VERIFY_CODE%"=="2" (
echo [WARNING] Verification completed with issues detected. Review output above.
echo Use Menu Option 5 to re-download the Sysinternals Suite.
) else (
echo [ERROR] Verification encountered an issue. Review output above.
)
)
echo.
pause
goto MENU
:DOWNLOAD
echo.
echo ========================================================
echo DOWNLOAD/UPDATE SYSINTERNALS SUITE
echo ========================================================
echo.
set "SYSINT_DIR=%SCRIPT_DIR%\Sysinternals"
set "ZIP_FILE=%SCRIPT_DIR%\SysinternalsSuite.zip"
set "DOWNLOAD_URL=https://download.sysinternals.com/files/SysinternalsSuite.zip"
echo This will download ~35MB from Microsoft.
echo Target: %SYSINT_DIR%
echo.
set /p "confirm=Proceed? (Y/N): "
if /i not "%confirm%"=="Y" goto MENU
echo.
echo Downloading...
powershell -NoProfile -ExecutionPolicy Bypass -Command "$ProgressPreference='SilentlyContinue'; try { [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $iwc = Get-Command Invoke-WebRequest -ErrorAction SilentlyContinue; $p = @{ Uri = '%DOWNLOAD_URL%'; OutFile = '%ZIP_FILE%' }; if ($iwc -and $iwc.Parameters.ContainsKey('UseBasicParsing')) { $p.UseBasicParsing = $true }; if ($iwc -and $iwc.Parameters.ContainsKey('TimeoutSec')) { $p.TimeoutSec = %DOWNLOAD_TIMEOUT_SEC% }; Invoke-WebRequest @p; Write-Host 'Download complete' -ForegroundColor Green } catch { Write-Host ('ERROR: ' + $_.Exception.Message) -ForegroundColor Red; exit 1 }"
if errorlevel 1 (
echo.
echo Download failed. Check internet connection.
if exist "%ZIP_FILE%" del "%ZIP_FILE%" 2>nul
pause
goto MENU
)
if not exist "%ZIP_FILE%" (
echo [ERROR] Download failed - file not created
pause
goto MENU
)
for %%A in ("%ZIP_FILE%") do set "FILE_SIZE=%%~zA"
if %FILE_SIZE% LSS %MIN_ZIP_SIZE% (
echo [ERROR] File too small (%FILE_SIZE% bytes^)
del "%ZIP_FILE%" 2>nul
pause
goto MENU
)
echo File downloaded: %FILE_SIZE% bytes
echo.
echo Extracting...
if not exist "%SYSINT_DIR%" mkdir "%SYSINT_DIR%"
powershell -NoProfile -ExecutionPolicy Bypass -Command "Expand-Archive -Path '%ZIP_FILE%' -DestinationPath '%SYSINT_DIR%' -Force; Write-Host 'Extracted successfully' -ForegroundColor Green"
if errorlevel 1 (
echo [ERROR] Extraction failed. Remove any partial files and retry.
if exist "%ZIP_FILE%" del "%ZIP_FILE%" 2>nul
pause
goto MENU
)
del "%ZIP_FILE%" 2>nul
echo.
set "TOOL_COUNT=0"
for %%F in ("%SYSINT_DIR%\*.exe") do set /a TOOL_COUNT+=1
echo [SUCCESS] %TOOL_COUNT% tools installed in %SYSINT_DIR%
echo.
echo TIP: Use Menu Option 4 to verify tool integrity
echo.
pause
goto MENU
:GPU_TOOLS
cls
echo ========================================================
echo GPU TESTING TOOLS MANAGER
echo ========================================================
echo.
set "GPU_TOOLS_DIR=%SCRIPT_DIR%\Tools"
set "GPUZ_PATH=%GPU_TOOLS_DIR%\GPU-Z.exe"
set "GPUZ_URL=https://www.techpowerup.com/gpuz/"
set "GPUZ_SIZE="
echo GPU Tools Directory: %GPU_TOOLS_DIR%
echo.
echo --------------------------------------------------------
echo AVAILABLE GPU TESTING TOOLS:
echo --------------------------------------------------------
echo.
echo 1. GPU-Z (TechPowerUp) - Detailed GPU monitoring
echo 2. Check NVIDIA Drivers/Tools
echo 3. Check AMD Drivers/Tools
echo 4. Download Recommendations
echo 5. Return to Main Menu
echo.
echo --------------------------------------------------------
echo INSTALLED TOOLS:
echo --------------------------------------------------------
if exist "%GPUZ_PATH%" (
for %%A in ("%GPUZ_PATH%") do set "GPUZ_SIZE=%%~zA"
if not defined GPUZ_SIZE set "GPUZ_SIZE=0"
if !GPUZ_SIZE! LSS 500000 (
echo [!] GPU-Z.exe - File appears incomplete (!GPUZ_SIZE! bytes)
) else (
echo [OK] GPU-Z.exe - Installed (!GPUZ_SIZE! bytes)
)
) else (
echo [ ] GPU-Z.exe - Not installed
)
if exist "C:\Program Files\NVIDIA Corporation\NVSMI\nvidia-smi.exe" (
echo [OK] NVIDIA System Management Interface
) else (
echo [ ] NVIDIA-SMI - Not installed ^(NVIDIA GPU drivers^)
)
:: Check for AMD tools
set "AMD_COUNT="
for /f %%A in ('powershell -NoProfile -Command "(Get-ChildItem 'HKLM:\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}' -ErrorAction SilentlyContinue | Where-Object { $_.PSChildName -match '^\d{4}$' } | ForEach-Object { Get-ItemProperty $_.PsPath -ErrorAction SilentlyContinue } | Where-Object { $_.DriverDesc -match 'AMD|Radeon' }).Count" 2^>nul') do set "AMD_COUNT=%%A"
if not defined AMD_COUNT set "AMD_COUNT=0"
if not "!AMD_COUNT!"=="0" (
echo [OK] AMD GPU Drivers - Detected (!AMD_COUNT! device^(s^))
) else (
echo [ ] AMD GPU Drivers - Not detected
)
echo.
set /p "gpu_choice=Choose an option (1-5): "
if "%gpu_choice%"=="1" goto GPU_TOOLS_GPUZ
if "%gpu_choice%"=="2" goto GPU_TOOLS_NVIDIA
if "%gpu_choice%"=="3" goto GPU_TOOLS_AMD
if "%gpu_choice%"=="4" goto GPU_TOOLS_RECOMMEND
if "%gpu_choice%"=="5" goto MENU
echo Invalid choice.
timeout /t 1 >nul
goto GPU_TOOLS
:GPU_TOOLS_GPUZ
cls
echo ========================================================
echo GPU-Z INSTALLATION
echo ========================================================
echo.
if exist "%GPUZ_PATH%" (
echo GPU-Z is already installed at:
echo %GPUZ_PATH%
echo.
set "GPUZ_SIZE="
for %%A in ("%GPUZ_PATH%") do set "GPUZ_SIZE=%%~zA"
if not defined GPUZ_SIZE set "GPUZ_SIZE=0"
echo Size: !GPUZ_SIZE! bytes
if !GPUZ_SIZE! LSS 500000 (
echo WARNING: File size is unusually small. Re-download recommended.
echo.
)
echo.
set /p "run_gpuz=Run GPU-Z now? (Y/N): "
if /i "!run_gpuz!"=="Y" (
echo.
echo Launching GPU-Z...
start "" "%GPUZ_PATH%"
timeout /t 2 >nul
)
goto GPU_TOOLS
)
echo GPU-Z is FREE software from TechPowerUp.
echo.
echo DOWNLOAD INSTRUCTIONS:
echo ----------------------
echo 1. Visit: %GPUZ_URL%
echo 2. Click "Download" button
echo 3. Save the file
echo 4. IMPORTANT: Save it as: %GPUZ_PATH%
echo.
echo Creating Tools directory...
if not exist "%GPU_TOOLS_DIR%" (
mkdir "%GPU_TOOLS_DIR%" 2>nul
if errorlevel 1 (
echo [ERROR] Cannot create directory: %GPU_TOOLS_DIR%
pause
goto GPU_TOOLS
)
echo [OK] Directory created
)
echo.
echo Opening download page in browser...
start "" "%GPUZ_URL%"
echo.
echo ========================================================
echo MANUAL INSTALLATION STEPS:
echo ========================================================
echo.
echo 1. Download GPU-Z from the webpage that just opened
echo 2. Save it to: %GPU_TOOLS_DIR%
echo 3. Rename it to: GPU-Z.exe
echo.
echo Full path should be: %GPUZ_PATH%
echo.
echo NOTE: TechPowerUp doesn't provide direct download links,
echo so manual download is required.
echo.
pause
goto GPU_TOOLS
:GPU_TOOLS_NVIDIA
cls
echo ========================================================
echo NVIDIA TOOLS VERIFICATION
echo ========================================================
echo.
set "NVIDIA_SMI=C:\Program Files\NVIDIA Corporation\NVSMI\nvidia-smi.exe"
set "NVIDIA_DRIVERS=C:\Program Files\NVIDIA Corporation"
if exist "%NVIDIA_SMI%" (
echo [OK] NVIDIA System Management Interface found
echo.
echo Running nvidia-smi...
echo ========================================================
"%NVIDIA_SMI%" --query-gpu=name,driver_version,memory.total --format=csv
echo ========================================================
echo.
echo Full nvidia-smi output:
"%NVIDIA_SMI%"
) else (
echo [!] NVIDIA-SMI not found
echo.
echo This tool is included with NVIDIA GPU drivers.
echo.
echo If you have an NVIDIA GPU but nvidia-smi is missing:
echo 1. Update your NVIDIA drivers from:
echo https://www.nvidia.com/Download/index.aspx
echo 2. Or use GeForce Experience ^(for gaming GPUs^)
echo.
echo If you don't have an NVIDIA GPU, this is normal.
)
echo.
echo --------------------------------------------------------
echo OTHER NVIDIA TOOLS:
echo --------------------------------------------------------
echo.
echo - NVIDIA Control Panel (included with drivers)
echo - GeForce Experience (for gaming GPUs)
echo - NVIDIA Inspector (advanced overclocking)
echo.
pause
goto GPU_TOOLS
:GPU_TOOLS_AMD
cls
echo ========================================================
echo AMD TOOLS VERIFICATION
echo ========================================================
echo.
:: Check for AMD GPU
set "AMD_COUNT="
for /f %%A in ('powershell -NoProfile -Command "(Get-ChildItem 'HKLM:\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}' -ErrorAction SilentlyContinue | Where-Object { $_.PSChildName -match '^\d{4}$' } | ForEach-Object { Get-ItemProperty $_.PsPath -ErrorAction SilentlyContinue } | Where-Object { $_.DriverDesc -match 'AMD|Radeon' }).Count" 2^>nul') do set "AMD_COUNT=%%A"
if not defined AMD_COUNT set "AMD_COUNT=0"
if not "!AMD_COUNT!"=="0" (
echo [OK] AMD GPU Detected: !AMD_COUNT! device^(s^)
echo.
echo AMD Driver Information:
echo ========================================================
powershell -NoProfile -Command "Get-ChildItem 'HKLM:\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}' -ErrorAction SilentlyContinue | Where-Object { $_.PSChildName -match '^\d{4}$' } | ForEach-Object { $info = Get-ItemProperty $_.PsPath -ErrorAction SilentlyContinue; if ($info.DriverDesc -match 'AMD|Radeon') { '{0}: {1}' -f $_.PSChildName,$info.DriverDesc; if ($info.DriverVersion) { ' Driver Version: {0}' -f $info.DriverVersion }; if ($info.DriverDate) { ' Driver Date: {0}' -f $info.DriverDate }; '' } }"
echo ========================================================
echo.
echo NOTE: AMD doesn't provide a command-line tool like
echo nvidia-smi by default.
echo.
echo AMD Tools available:
echo - AMD Radeon Software (included with drivers)
echo - AMD Cleanup Utility (for driver issues)
echo.
echo Update drivers from:
echo https://www.amd.com/en/support
) else (
echo [!] AMD GPU not detected
echo.
echo If you have an AMD GPU but it's not detected:
echo 1. Update AMD drivers from: https://www.amd.com/en/support
echo 2. Use AMD Auto-Detect tool
echo.
echo If you don't have an AMD GPU, this is normal.
)
echo.
pause
goto GPU_TOOLS
:GPU_TOOLS_RECOMMEND
cls
echo ========================================================
echo RECOMMENDED GPU TESTING TOOLS
echo ========================================================
echo.
echo --------------------------------------------------------
echo MONITORING ^& DIAGNOSTICS:
echo --------------------------------------------------------
echo.
echo 1. GPU-Z (TechPowerUp)
echo - Real-time monitoring
echo - Sensor logging
echo - BIOS extraction
echo URL: https://www.techpowerup.com/gpuz/
echo.
echo 2. HWiNFO64
echo - Comprehensive system monitoring
echo - GPU sensors included
echo URL: https://www.hwinfo.com/
echo.
echo 3. MSI Afterburner
echo - Overclocking
echo - Real-time monitoring
echo - On-screen display
echo URL: https://www.msi.com/Landing/afterburner
echo.
echo --------------------------------------------------------
echo STRESS TESTING:
echo --------------------------------------------------------
echo.
echo 4. FurMark (Geeks3D)
echo - GPU stress test
echo - WARNING: Generates significant heat!
echo - Use carefully on laptops
echo URL: https://geeks3d.com/furmark/
echo.
echo 5. Unigine Heaven/Valley/Superposition
echo - Benchmark ^& stress test
echo - Beautiful graphics
echo URL: https://benchmark.unigine.com/
echo.
echo 6. OCCT (GPU Test)
echo - Error detection
echo - Stability testing
echo URL: https://www.ocbase.com/
echo.
echo --------------------------------------------------------
echo BENCHMARKING:
echo --------------------------------------------------------
echo.
echo 7. 3DMark (UL Solutions)
echo - Industry standard benchmark
echo - Free basic version available
echo URL: https://benchmarks.ul.com/3dmark
echo.
echo 8. UserBenchmark
echo - Quick comparative benchmark
echo - Free
echo URL: https://www.userbenchmark.com/
echo.
echo --------------------------------------------------------
echo IMPORTANT WARNINGS:
echo --------------------------------------------------------
echo.
echo - Stress tests generate SIGNIFICANT HEAT
echo - Monitor temperatures during tests
echo - Ensure adequate cooling
echo - Stop if temps exceed 85C (GPU) / 95C (hotspot)
echo - Laptop users: Use caution with stress tests
echo.
echo ========================================================
echo.
pause
goto GPU_TOOLS
:HELP
cls
echo ========================================================
echo HELP / TROUBLESHOOTING GUIDE v%SCRIPT_VERSION%
echo ========================================================
echo.
echo NEW IN v2.21:
echo - Tool integrity verification (digital signatures)
echo - Dual report system (Clean + Detailed)
echo - Fixed memory usage calculation bug
echo - Launcher awareness detection
echo - Enhanced GPU testing with vendor-specific tools
echo - GPU Tools Manager (Menu Option 6)
echo.
echo --------------------------------------------------------
echo COMMON ISSUES:
echo --------------------------------------------------------
echo.
echo 1. EXECUTION POLICY ERRORS
echo Solution: Use Menu Option 3
echo.
echo 2. SYSINTERNALS TOOLS NOT FOUND
echo Solution: Use Menu Option 5 to download
echo.
echo 3. TOOLS MAY BE CORRUPTED
echo Solution: Use Menu Option 4 to verify integrity
echo Then Option 5 to re-download if needed
echo.
echo 4. DOWNLOAD FAILS
echo Causes: Firewall, proxy, no internet
echo Solution: Manual download from:
echo https://download.sysinternals.com/files/SysinternalsSuite.zip
echo Extract to: %SCRIPT_DIR%\Sysinternals\
echo.
echo 5. MEMORY SHOWS 100%% (but Task Manager shows less)
echo This was a bug in v2.08 - FIXED in v2.21
echo.
echo 6. TESTS TAKE TOO LONG
echo Expected durations:
echo - CPU Test: 10 seconds
echo - Energy Report: 15 seconds
echo - Windows Update: 30-90 seconds
echo - DISM/SFC: 5-15 minutes each
echo.
echo 7. REPORTS NOT GENERATED
echo - Check write permissions
echo - Ensure tests completed
echo - Look for SystemTest_Clean_*.txt
echo.
echo 8. PATH TOO LONG
echo Current: %PATH_LENGTH% characters
echo Limit: 260 characters
echo Solution: Move to C:\SysTest\
echo.
echo --------------------------------------------------------
echo FEATURES:
echo --------------------------------------------------------
echo.
echo REPORT TYPES:
echo Clean Report - Summary with key findings
echo Detailed Report - Full output from all tests
echo.
echo TOOL VERIFICATION:
echo Checks digital signatures of all tools
echo Validates file sizes
echo Identifies Microsoft-signed vs others
echo.
echo GPU TESTING:
echo Enhanced multi-GPU support
echo NVIDIA-SMI integration
echo AMD driver detection
echo GPU-Z download assistant
echo.
echo ADMIN DETECTION:
echo Auto-elevates on startup
echo Skips admin-required tests when not elevated
echo Shows clear warnings about limitations
echo.
echo SUPPORT:
echo https://docs.microsoft.com/sysinternals
echo.
pause
goto MENU
:EXIT
echo.
echo ========================================================
echo Thank you for using PNW Computers' Portable Sysinternals System Tester!
echo Version %SCRIPT_VERSION%
echo ========================================================
echo.
echo Reports saved in: %SCRIPT_DIR%
echo - SystemTest_Clean_*.txt (summary)
echo - SystemTest_Detailed_*.txt (full output)
echo - energy-report.html (if power test ran)
echo.
pause
exit /b 0