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:
- https://docs.fortinet.com/document/forticlient/7.2.0/administration-guide/590612/msi-properties and https://docs.fortinet.com/document/forticlient/7.2.0/administration-guide/590610/installing-forticlient#silent-installation
- https://learn.microsoft.com/en-us/mem/configmgr/apps/deploy-use/create-applications#bkmk_deploy-msi
- https://docs.fortinet.com/document/forticlient/7.2.0/administration-guide/94440/registry-keys
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.