Created
August 23, 2023 13:17
-
-
Save thany/d2e9a88a8300c55a97d63a6ac412743d to your computer and use it in GitHub Desktop.
Kill GlobalProtect VPN service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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