Created
April 20, 2020 14:25
-
-
Save nezza/fc8b0081f5d1343e02d22e5953b9bdd8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
REM Save this file i.e. to your Desktop. Whenever you want to disable Vanguard, | |
REM simply run it as Administrator. | |
REM If you run VALORANT while VGK is deactivated it will re-install it and ask you to reboot. | |
REM You can adjust the path to Vanguard here: | |
set VGK_PATH="C:\Program Files\Riot Vanguard\vgk.sys" | |
REM Check whether VGK.SYS exists | |
if exist %VGK_PATH% ( | |
goto deactivate | |
) else ( | |
goto activate | |
) | |
:activate | |
SET /P AREYOUSURE=Enable Vanguard (Y/N)? | |
IF /I "%AREYOUSURE%" NEQ "Y" GOTO END | |
move %VGK_PATH%.deactivated %VGK_PATH% | |
goto SOFTEND | |
:deactivate | |
SET /P AREYOUSURE=Disable Vanguard (Y/N)? | |
IF /I "%AREYOUSURE%" NEQ "Y" GOTO END | |
move %VGK_PATH% %VGK_PATH%.deactivated | |
:SOFTEND | |
echo. | |
echo. | |
echo. | |
echo Done! You need to restart your machine for these changes to take effect! | |
echo. | |
echo. | |
echo Press any key to quit this script. | |
pause >nul | |
:END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just wanted to share my solution. It disables both services and removes Vanguard from auto start.
Run as admin.
enable:
disable: