cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
77
Views
0
Helpful
0
Replies

OnConnect.vbs script for VPN drive mapping not working

Kasim
Level 1
Level 1

Hi all,

I've been struggling with this for hours and I can't seem to figure out what the problem is. 

The objective is to map network drives using the sbl script once a VPN connection is established on a client computer. Using anyconnect version 4.10. I have modified the profile XML and I have an OnConnect.vbs script file that works perfectly fine outside of VPN. The issue is once a VPN connection is established, the script file is not executed or called at all. There is no entries in event viewer or the anyconnect logs. 

I tried putting in <scriptname> in the profile XML and using just the name of the VBS file as well as putting the full path of the VBS file but nothing seems to work. When I tried to open the XML file using cisco profile editor with that tag in it, it wouldn't open and threw an error about the script name tag. 

I'm not deploying this from an ASA or FMC. It's to be locally executed on the client machine. 

The script is located in the cisco anyconnect profile folder in programdata.

Does anybody have any advice?

0 Replies 0