Thank you for your question.
While not specifically something related to GP or PANW, there are plenty of websites that discuss how to script network mapped drives:
I believe your script would need to be run AFTER the GP is connected. It should be possible to create an IF/THEN loop in your script. IF connected to GP, THEN do this, else, go back to IF statement. There are WHILE statements as well... WHILE the VPN is up, DO this mapping script, etc.
you can run a pre or post VPN script. just edit the registry and tell it what file to run on connection (post vpn)
HKEY_LOCAL_MACHINE\SOFTWARE\Palo Alto Networks\GlobalProtect\Settings\post-vpn-connect
so we have it here..
and it runs this script, this script also incudes a reg setting that is added on connection..
additional help can be found here...
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!