- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
01-23-2020 11:54 AM
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.
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.
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!