Skip to content

Instantly share code, notes, and snippets.

@henriksb
Created October 12, 2020 19:20
Show Gist options
  • Save henriksb/3ef883acd62d684728d8291290ba91b9 to your computer and use it in GitHub Desktop.
Save henriksb/3ef883acd62d684728d8291290ba91b9 to your computer and use it in GitHub Desktop.
Valorant offline/online
@echo off
if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b)
netsh advfirewall firewall add rule name="lolchat" dir=out remoteport=5223 protocol=TCP action=block
@echo off
if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b)
netsh advfirewall firewall delete rule name="lolchat"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment