How to add license key to FortiClient (VPN) when deploying it via SCCM?

Andy King 61 Reputation points
2025-08-09T01:20:17.83+00:00

Hello,

I tried to deploy the FortiClient version 7.2.xx.xxxx MSI application with SCCM version 2409. After I push it to the laptops, the license key code has not been added to FortiClient. I needed to manually copy and paste the key to register it.

Here are the TWO Command-line Parameters that I use with the FortiClient application in SCCM.

Installation Program:

msiexec /i "FortiClient.msi" /q /norestart LICENSEKEY="123xxxxxxxxxxxxxxxxxxx"

or

msiexec /i "FortiClient.msi" /q /norestart INSTALLATION_KEY="123xxxxxxxxxxxxxxxxxxx"

Both had the same issues that were unable to add the license to FortiClient.

Could you tell me how to fix it? What's the correct command to use it in SCCM?

Thanks,

Andy

Microsoft Security | Intune | Configuration Manager | Deployment
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Sina Salam 22,806 Reputation points Volunteer Moderator
    2025-08-10T15:13:12.9666667+00:00

    Hello Andy King,

    Welcome to the Microsoft Q&A and thank you for posting your questions here.

    I understand that you would like to add license key to FortiClient (VPN) when deploying it via SCCM.

    Use:

    msiexec /i "FortiClient.msi" /quiet /norestart REGISTER_KEY="123-XXXX-XXXX-XXXX" ADDLOCAL=Feature_VPN,Feature_SSLVPN LAUNCHAPP=0 /L*V "C:\Windows\Logs\FortiClient_Install.log"
    

    If MSI properties fail, deploy a Post-Install PowerShell Script via SCCM:

    $LicensePath = "HKLM:\SOFTWARE\Fortinet\FortiClient\License"
    $LicenseValue = "123-XXXX-XXXX-XXXX"
    # Create registry path if missing
    if (-not (Test-Path $LicensePath)) {
        New-Item -Path $LicensePath -Force
    }
    # Apply license key
    Set-ItemProperty -Path $LicensePath -Name "License" -Value $LicenseValue -Type String -Force
    # Restart FortiClient service (if installed)
    if (Get-Service -Name "FortiClientService" -ErrorAction SilentlyContinue) {
        Restart-Service -Name "FortiClientService" -Force
    }
    

    Check these three links for perfect guides:

    I hope this is helpful! Do not hesitate to let me know if you have any other questions or clarifications.


    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.

    0 comments No comments

  2. Andy King 61 Reputation points
    2025-08-11T03:54:37.0033333+00:00

    Hello,

    Thank you for your response. I have tried the command (with my register key)

    msiexec /i "FortiClient.msi" /quiet /norestart REGISTER_KEY="123-XXXX-XXXX-XXXX" ADDLOCAL=Feature_VPN,Feature_SSLVPN LAUNCHAPP=0 /L*V "C:\Windows\Logs\FortiClient_Install.log"

    It cannot install the VPN application sussessefull. It missed some files and got some JavaScript errors. Thank you again!!

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.