scloud by Florian Salzmann
ende

FortiClient VPN configuration with Intune

  • Florian Salzmann
  • Posted on 15 Mar, 2022
  • Updated on 12 Jul, 2026
  • 02 Mins read
  • Microsoft Intune

The “FortiClient VPN” can be distributed with the correct MSI package and an exported configuration file even without the Fortinet / FortiGate Premium EMS features with, for example, Intune. If you know how, the individual steps are not very complex.

To keep the package with Intune as simple as possible, I created a template for you. If you select the “FortiClient VPN.zip” file, you can download the whole thing right away.

GitHub Repo

Export FortiClient VPN configuration

First we create and export the desired configuration of the FortiClient. You can trigger the export in the client itself in the settings. Simply select the cog wheel in the top right, Backup, a storage location and set a password.

FortiClient VPN Backup

It’s best to name the backup file you just created “FortiClientVPN.conf” and put it in the downloaded template. In addition, you must enter the defined password in the “install.ps1” file in the second line ($ConfigPW).

$PackageName = "FortiClientVPN"
$ConfigPW = "Kateoih785" # insert your password here!

Extracting the MSI of the Forti Client VPN

Now all we have to do is extract the current MSI from the installation.
You can do that here Download the current EXE of the “FortiClient VPN only”.
Then run the EXE and copy the MSI from the %temp% directory out.

Extract FortiClient VPN MSI

We also pack the extracted MSI into the template. The folder should then look like this:

FortiClient VPN Paket Intune

Customize detection rule

The version of the FortiClient VPN and the stored profile are checked in the detection rule (check.ps1). To do this, you have to adjust the “$ProfileName” and “$ProgramVersion_target” parameters in the second and third line. The profile name is the one you defined in the FortiClient.

$ProfileName = "DEMO scloud" # Change to your Profilename!
$ProgramVersion_target = '7.0.2.90' # Set to version from MSI

Create Intunewin

From this package we now create using the Microsoft Win32 Content Prep Tool the Intunewin file. The setup file is “install.ps1”.

FortiClient VPN - intunewin

We can now use the created “install.intunewin” file in the Endpoint Manager under “Apps > Windows + Add” upload and distribute.

add win32 app

add win32 app FortiClient VPN

The program parameters are:

Install command%SystemRoot%\sysnative\WindowsPowerShell\v1.0\powershell.exe -executionpolicy bypass -command .\install.ps1
Uninstall command%SystemRoot%\sysnative\WindowsPowerShell\v1.0\powershell.exe -executionpolicy bypass -command .\uninstall.ps1

FortiClient VPN program parameter Intune

FortiClient VPN requirements Intune

You can use the prepared “check.ps1” for the detection rule. but ATTENTION, customize the profile name and version in the detection rule first.

FortiClient VPN detection rule Intune

The package does not need dependencies, you just have to assign and save it.

This is how you can easily distribute the FortiClient VPN via Intune and update it with the same mechanism.

Related posts

Endpoint Privilege Management vs the Alternatives
Microsoft Intune

When Intune Endpoint Privilege Management Wins, and When It Does Not

You already run standard users. The hard part is the last exceptions. Here is how Intune Endpoint Privilege Management compares to the alternatives.

DNS Suffixes set via Intune
Microsoft Intune

Set DNS Suffixes via Microsoft Intune

Learn how to configure DNS suffixes via Microsoft Intune with a Settings Catalog profile, deploy them safely, and verify the setup on managed Windows devices.

Intune win32 app testing
Microsoft Intune

How I Create and Test Win32 Apps for Intune

How I create and test Win32 apps for Intune: templates, Sandbox and VM testing, checking detection rules locally, and running processes as System.