Skip to main content
New Member
June 13, 2026
Question

Unable to import IPSEC Config via Intune -> Failed every time

  • June 13, 2026
  • 2 replies
  • 61 views

Hi Fortinet team,

So, we are upgrading our VPN to the latest software version, and we are changing from SSL VPN to IPSEC VPN, and we are thinking to deploy it via Intune, but we have encountered failures when trying to install the package.

We follow the next steps:

  • Changed the encrypted Preshared Key inside the conf file for the actual Preshared key
  • Create Installer.ps1 with the following command: Start-Process -FilePath "C:\Program Files\Fortinet\FortiClient\FCConfig.exe" -ArgumentList "-m vpn -f <"$ConfigFile"> -o import -i 1 -p <"ConfigPassword"> -Wait 
  • Inside Intune we set up detection rule for the reg key: “HKEY_LOCAL_MACHINE\SOFTWARE\Fortinet\FortiClient\IPSec\Tunnels\IPSEC VPN

 

The weird part is that if we try running the Installer.ps1 locally/manually it works perfectly fine and it imports the conf file without issue but if we runs it via Intune, it directly says Installation Failed
 

 

Can you please help us?

2 replies

Jean-Philippe_P
Staff & Editor
Staff & Editor
June 16, 2026

Hello AntLYRP, 

 

Thank you for using the Community Forum. I will seek to get you an answer or help. We will reply to this thread with an update as soon as possible. 

 

Regards,

Jean-Philippe - Fortinet Community Team
Jean-Philippe_P
Staff & Editor
Staff & Editor
June 19, 2026

Hello,

 

We are still looking for an answer to your question.

 

We will come back to you ASAP.

 

Regards,

Jean-Philippe - Fortinet Community Team