Pre-VPN Drive Mapping batch script in Registry Key

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Pre-VPN Drive Mapping batch script in Registry Key

L0 Member

So I'm having an issue getting a batch script to run from inside the pre-vpn-connect registry key. 

 

I followed this article exactly with a couple different variations and no matter what I do the batch script is not being triggered. 

https://docs.paloaltonetworks.com/globalprotect/7-1/globalprotect-admin/set-up-the-globalprotect-inf...

 

The batch script runs perfectly outside of the reg key. My gut tells me that the 'command' string Value data UNC path is not being seen correctly. The above mentioned article uses the example %userprofile%\pre_vpn_connect.bat c: test_user

 

My variation is %userprofile%\Documents\VPN_Mappings\pre_vpn_connect.bat c: test_user (For test_user I've used both the local login and the GlobalProtect user login user names, neither of which seems to work)

 

I've tried plenty of different variations to include just the file path alone. (%userprofile%\Documents\VPN_Mappings\pre_vpn_connect.bat & also C:\Users\(local user account)\Documents\VPN_Mappings\pre_vpn_connect.bat)

 

I'm at a loss as to why this reg key is not triggering the batch script on connection to the VPN...

 

Any help is greatly appreciated, thank you all. 

0 REPLIES 0
  • 2648 Views
  • 0 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!