Skip to content

Instantly share code, notes, and snippets.

@thany
Created August 23, 2023 13:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thany/d2e9a88a8300c55a97d63a6ac412743d to your computer and use it in GitHub Desktop.
Save thany/d2e9a88a8300c55a97d63a6ac412743d to your computer and use it in GitHub Desktop.
Kill GlobalProtect VPN service
@echo off
echo Checking for administrative permissions
if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b)
echo Deleting from autoruns
reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v GlobalProtect /f /reg:64
echo Stopping service
sc stop PanGPS
echo Setting service to disabled
sc config PanGPS start= disabled
echo Killing processes
taskkill /f /im PanGPS.exe
taskkill /f /im PanGPA.exe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment