@echo off
title Steam VAC Repair Utility
echo -----------------------------------------
echo Steam Anti-Cheat Repair Utility
echo -----------------------------------------
echo.
REM Pause to let user proceed manually
pause
REM Navigate to the Steam service binary location
cd /d "C:\Program Files (x86)\Steam\bin"
REM Repair the Steam service
echo Running Steam service repair...
start /wait steamservice.exe /repair
REM Run System File Checker
echo.
echo Running System File Checker...
sfc /scannow
REM DISM health check
echo.
echo Performing DISM Health Check...
DISM /Online /Cleanup-Image /CheckHealth
REM DISM scan for issues
echo.
echo Performing DISM Scan...
DISM /Online /Cleanup-Image /ScanHealth
REM Attempt to restore system health
echo.
echo Attempting DISM Restore...
DISM /Online /Cleanup-Image /RestoreHealth
REM Optional BCDEdit fixes (uncomment if needed)
REM bcdedit /deletevalue nointegritychecks
REM bcdedit /deletevalue loadoptions
REM bcdedit /debug off
REM bcdedit /deletevalue nx
REM Completion message
echo.
echo All operations completed.
timeout /t 5 /nobreak >nul
exit