@echo off
:: cleanup_driver.bat
:: Removes driver and disables test signing

echo ============================================
echo   Driver Cleanup Script
echo ============================================
echo.

net session >nul 2>&1
if %errorLevel% neq 0 (
    echo [ERROR] Must run as Administrator.
    pause
    exit /b 1
)

:: Stop and delete driver service
echo Removing driver service...
sc stop MemReader >nul 2>&1
sc delete MemReader >nul 2>&1
echo [OK] Driver service removed.

:: Disable test signing
echo Disabling test signing...
bcdedit /set testsigning off
echo [OK] Test signing disabled.

echo.
echo ============================================
echo   Cleanup complete.
echo   Reboot to fully remove test mode.
echo ============================================
pause