How to Use VB Scripts with Post-Connection Scripting

Description

How to Use VB Scripts with Post-Connection Scripting

Resolution

Feature:

This article explains how to use a Visual Basic script (VBScript, or .vbs) with Connect Tunnel and OnDemand Tunnel post-connection scripting.


Configuration / Implementation Steps:

Typically, with batch scripts or executables, an administrator enters the full path and name for the script file that will be run after a connection has been established.  With VBScripts, this isn't possible: you must use the Windows Script Host utility to call the .vbs script in order for the tunnel client to run it.  Here are the steps to accomplish this:

  1. In AMC, go to the user community for which you have enabled the tunnel client.
  2. Click Access Methods and then click Configure.
  3. Expand Windows options and then configure the fields with the examples given below:
    • Run this file: c:windowssystem32cscript.exe
    • Command line arguments: <Path to the script>. This path can be in either of these formats: drive:pathtoscript.vbs or \pathtoscript.vbs>.
    • Working directory: <leave emtpy>
  4. Click OK and then save the settings for this community.

Related Articles

  • SMA100 End of Support No-Charge Replacement FAQ
    Read More
  • SMA1000: Post upgrade to 12.5.0 on AWS and Azure, we show the error Could not retrieve the DNS settings once we log in to AMC/CMS console
    Read More
  • Firmware version required to upgrade to version 12.5.0.
    Read More
not finding your answers?