SonicWall SSL-VPN release 2.0 provides users with the ability to run batch file scripts when NetExtender connects and disconnects. The scripts can be used to map or disconnect network drives and printers, launch applications, or open files or websites. To configure NetExtender Connection Scripts, perform the following tasks:
Right-click the icon in the task bar and click Preferences.
Click Connection Scripts.
To enable the script that runs when NetExtender connects, select the Automatically execute the batch file NxConnect.bat checkbox.
To enable the script that runs when NetExtender disconnects, select the Automatically execute the batch file NxDisconnect.bat checkbox.
To hide either of the console windows, select the appropriate Hide the console window checkbox. If this checkbox is not selected, the DOS console window will remain open while the script runs.
NetExtender Connection Scripts can support any valid batch file commands. See Page 27 of the SonicWall SSL-VPN 2.0 User Guide for additional configuration instructions and the Batch File Wikipedia article for an introduction and more details on the language used to create scripts successfully.