Skip to content

tim-elmer/vanguard-guard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Vanguard Guard

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).

Overview

  1. Enables and starts services vgc.exe and vgk.sys.

  2. Launches the Riot Client with the specified parameters and awaits exit.

  3. Stops and disables services vgc.exe and vgk.sys.

Important
I am not a kernel/driver expert, and it’s possible that Riot is doing something else I haven’t noticed.

Requirements

Use

  1. Place VanguardGuard.ps1 somewhere on your system (e.g. %USERPROFILE%).

  2. Create a shortcut on your desktop as follows:

    pwsh -ExecutionPolicy Bypass -File <Path to VanguardGuard.ps1> <Parameters>
  3. Change execution privileges:

    1. Right-Click the newly created shortcut and select Properties.

    2. Click Advanced.

    3. Check Run as Administrator.

    4. Click OK.

    5. Click OK.

Parameters

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 in C:\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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages