Tool to temporarily stop and disable Riot Vanguard.
Warning
With the release of Vanguard on-demand, this tool is deprecated, but it will still remain available here for others. Be aware that Vanguard is a kernel-level tool with higher privileges than your own user account. Read this: Why You Should Reconsider Playing League of Legends: The Risks of Kernel-Level Anti-Cheat Software.
Inspired by @AndrewMast scripts: Commands to temporarily stop Riot Vanguard.
If you don't like that Riot Vanguard is running in the background on your system all the time, just stop and disable it.
The tool is not perfect, but it does the job. Feedback and suggestions are welcome.
- Disable vanguard and stop from the tray.
- Re-enable it when you want to play (restart system required).
- Add shortcut to startup folder, so vanguard is locked out on every system start.
- Restart system command included.
- Use a small command line interface.
- Or use a simple user interface.
Usage: vanguard-cli.exe [OPTIONS]
Options:
-h,--help Print this help message and exit
-v,--version Display program version information and exit
-s,--state {activate, deactivate} or {1, 0} Set vanguard state
-r,--restart INT:POSITIVE Restart system after N seconds (default: 0)
-c,--check Check current state and activate or deactivate vanguardactivate: vanguard-cli.exe --state activate
deactivate: vanguard-cli.exe --state deactivate
activate with restart: vanguard-cli.exe --state activate --restart$WshShell = New-Object -ComObject WScript.Shell;
$ShortcutPath = "$env:APPDATA\Microsoft\Windows\Start Menu\Programs\Startup\vanguard-cli.lnk";
$Shortcut = $WshShell.CreateShortcut($ShortcutPath);
$Shortcut.TargetPath = "C:\tools\vanguard-out-0.1.0-win64\vanguard-cli.exe";
$Shortcut.WorkingDirectory = "C:\tools\vanguard-out-0.1.0-win64";
$Shortcut.Arguments = "--check";
$Shortcut.Save();sc config vgc start= demand & sc config vgk start= system
net start vgc
powershell Set-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Run" -Name "Riot Vanguard" -Value "C:\Program Files\Riot Vanguard\vgtray.exe"
sc config vgc start= disabled & sc config vgk start= disabled & net stop vgc & net stop vgk & taskkill /IM vgtray.exe
powershell Remove-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Run" -Name "Riot Vanguard"Uses the Qt Quick Controls Universal Style.
- Tested on Windows 11 with Qt version 6.11.1 MinGW.
- For the portable version download the latest release from github/vanguard-out/releases and unzip it.
- To build from source, you can also download the source code from releases.
vanguard-cli: no Qt required, dependencies listed below.vanguard-gui: the easiest way is to openCMakeLists.txtin your Qt Creator and configure with one of your installed Qt kits.
| Library | Description |
|---|---|
| CLI11 | Header-only C++11 command-line argument parser — handles flags, options, subcommands, and help generation |
| mINI | Tiny header-only library for reading and writing .ini configuration files |
