Skip to content

Instantly share code, notes, and snippets.

@lightrush
lightrush / killswitch.bat
Created July 10, 2021 18:27 — forked from whoamiTM/killswitch.bat
VPN Kill Switch For Windows | Terminal User Interface | route.exe
@echo off
:: GetAdmin
:-------------------------------------
:: Verify permissions
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
:: On Error No Admin
if '%errorlevel%' NEQ '0' (
echo Getting administrative privileges...