How can I connect to Palo Alto Global Protect VPN from the windows command line?
I am trying to automate a logon script and have multiple steps that follow a successful Global Protect VPN connection.
Solved! Go to Solution.
you could configure GP in prelogon mode which allows scripts to run during logon because the tunnel is already established before the user logs on where traditional VPN would only establish after logon
Unfortunately that's not going to work. The CEO does not want to be connected 100% of the time.
I need to have a simple script that he can double-click to run and automatically connect to the GlobalProtectVPN and automatically run subsequent commands unrelated to the firewall after that.
you could give OpenVPN a go (and install linux on his laptop) or you could hide the GP icon and let him believe everything just works
the windows client doesn't have command prompt commands, unfortunately
It is possible to call additional commands (such as a batch file) using the post-vpn-connect registry key. With this method, you could have him connect to GlobalProtect on-demand by selecting the icon in the system tray, and then GP will run whatever you reference in this registry key after it connects.
Can we deploy the registry entries as part of agent install or push them remotely? We have user who use their personal devices to VPN via Global Protect and we do not have access to those devices to manually add registry entries to run post-connect scripts.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!