A simple utility to attempt to prevent Vanguard from running all the time, without you having to manually enable/disable it.
Note
|
Vanguard will only be disabled once this script has run at least once, and will not be disabled if the script is terminated prematurely. |
One of the big talking points around Riot Games' Vanguard anti-cheat is that it runs at all times, even when a Riot Games game has not been launched that boot. Riot Games themselves have suggested that Vanguard must launch with Windows to operate. However, it appears to me that this is not the case, and is instead an oversimplification to avoid having to explain to non-technical users how to start/stop a driver, as the game behaves just fine if you start the driver yourself later. This script does that for you.
If you so desire, you are also welcome to DIY; the relevant cmdlets are Start-Service
, Stop-Service
, and Set-Service
(to enable/disable).
-
Enables and starts services
vgc.exe
andvgk.sys
. -
Launches the Riot Client with the specified parameters and awaits exit.
-
Stops and disables services
vgc.exe
andvgk.sys
.
Important
|
I am not a kernel/driver expert, and it’s possible that Riot is doing something else I haven’t noticed. |
-
Current version of PowerShell Core
-
A Riot Games game (duh)
-
Place
VanguardGuard.ps1
somewhere on your system (e.g.%USERPROFILE%
). -
Create a shortcut on your desktop as follows:
pwsh -ExecutionPolicy Bypass -File <Path to VanguardGuard.ps1> <Parameters>
-
Change execution privileges:
-
Right-Click the newly created shortcut and select Properties.
-
Click Advanced.
-
Check Run as Administrator.
-
Click OK.
-
Click OK.
-
Note
|
If you are trying to run League of Legends from the default install location, you shouldn’t need these. |
VanguardGuard.ps1 [-RiotClientPath "C:\Riot Games\League of Legends\Riot Client\RiotClientServices.exe"] [-Product league_of_legends] [-StopBackoffTimer 5] [-StopRetry 10]
-RiotClientPath
-
The path to
RiotClientServices.exe
on your system. By default, this is inC:\Riot Games\League of Legends\Riot Client
. -Product
-
The name of the game to launch. Can be determined from the shortcut installed by Riot, but some known options are:
-
league_of_legends
-
vanguard
-
-StopBackoffTimer
-
The number of seconds to wait between stop attempts.
-StopRetry
-
The number of times to retry stopping services.