FortiClient
FortiClient proactively defends against advanced attacks. Its tight integration with the Security Fabric enables policy-based automation to contain threats and control outbreaks. FortiClient is compatible with Fabric-Ready partners to further strengthen enterprises’ security posture.
Not applicable
Article Id 198351
Article
Description FortiClient Microsoft Windows API scripting examples.
Components
  • FortiClient 3.0 MR7 Patch 1
Steps or Commands

The FortiClient API, introduced in version 3.0 MR7, enables you to control a FortiClient VPN tunnel from a COM-enabled application or by using Windows Scripting. For detailed information, see the "Using the FortiClient API" chapter of the FortiClient Administration Guide.

The attached file provides code examples that use the FortiClient API. Inside the archive,

  • vbscript.wsf and jscript.wsf are Windows scripts that open a VPN tunnel named "test". (A tunnel of that name must be configured in the FortiClient application).
    Note: Windows scripts require FortiClient version 3.0 MR7 Patch 1 or later.
  • The vb6project folder contains a Microsoft Visual Basic version 6 project, including the pre-compiled application, VPN container.exe. This program demonstrates all of the FortiClient functionality available through the API.