Deploy Forticlient VPN Profile With Intune
HTML-код
- Опубликовано: 8 сен 2024
- This is a step by step guide on How to Customize Package and Deploy Forticlient VPN Profile with Intune using Microsoft Endpoint Manager Admin Center
You will need an MSI installer, there are several free tools to convert exe to msi like MSI Wrapper
Step:1 Backup Forticlient VPN Profile
Customize & Create the Intunewin file using Intune Win32 Content prep tool
Step:2 Upload the Intune Win Package to Intune.
Step:3 Assign and Deploy Win32 App to targeted device.
Step:4 Test the result on targeted device.
You will need to use msi installer not exe
There are few free tools to convert exe to MSI, one of them is MSI Wrapper
Install Command
%SystemRoot%\sysnative\WindowsPowerShell\v1.0\powershell.exe -executionpolicy bypass -command .\install.ps1
Install Powershell Script
$PackageName = "FortiClientVPN"
$ConfigPW = "mazurelabs" # insert your password here!
$Path_local = "$Env:Programfiles\_MEM"
$Path_local = "$Env:temp"
Start-Transcript -Path "$Path_local\$PackageName-install.log" -Force
(Start-Process "msiexec.exe" -ArgumentList "/i FortiClientVPN.msi /passive /quiet INSTALLLEVEL=3 DESKTOPSHORTCUT=0 /NORESTART" -NoNewWindow -Wait -PassThru).ExitCode
Start-Sleep 5
Start-Process "C:\Program Files\Fortinet\FortiClient\FCConfig.exe" -ArgumentList "-m vpn -f mazurelabs.conf -o import -p $ConfigPW" -Wait
Stop-Transcript
Thanks, it's working. Only one issue - no desktop shortcut was created after the install and it doesn't save username as expected (this is was in my config).
For creating a shortcut you can add a line to the powershell script to copy a shortcut to the desktop, I cover this topic in my other video here ruclips.net/video/srDK1NIH3sI/видео.html
I never really tried saving a username
I don't know whether you forgot or something I am missing. But you never pushed or pacakaged the config file and the install.ps1. Basically while installing it will look for that config and ps1 and it will fail. Reply will be helpful. Thanks
I packaged the VPN folder which contains config, ps1 and installer at minute 3:13
If you need help with packaging I have a link in the description of the video that covers it in more details.
@@TechConect thanks for the quick response. I did found your other video which covers packaging where you use command prompt.
In this video, because you have entered the entire folder as source folder, will that also create the intunewin package including config file and .ps1?
Yes the intunewin file will contain all of them
How will Intune pick up the install.ps1?
In intune after I uploaded the packaged App, under program, I added the install.ps1 command.
@@TechConect so add install.ps1 as a detection script or upload the script in general (under devices)?
I have the same question
The script is already packaged you just need to add the command like I did in the video.
I followed your guide step by step yet it gave me the "The application was not detected after installation completed successfully (0x87D1041C)" error
You will need to use msi installer not exe
is this the way method to upgrade the FortiClient version? i tried to do an upgrade, the intune status shows installed but when i go to the desktop and check the old verison is still there. Nothing change
If you are configuring the detection rule that I show in the video, it will not run because it sees that forticlient is installed and it skips the installation.
This is informative.
How do i get the MSI installer??
There are few free tools to convert exe to MSI, one of them is MSI Wrapper
Start installing of exe then in the middle go to c - program data- applications-cache- you will find one folder , open that . Your msi will be available at that location , copy and paste it somewhere
@@naveenmonikakaushik5264thanks for the hint 🎉
It's awesome work but the desktop shortcut is missing. Can you give me the script to add a desktop shortcut and do I need to add this in install.ps1 or separate?
in the install powershell script just change the value to 1 DESKTOPSHORTCUT=1
How can we force device not to reboot after installing the vpn client in the ps script provided?
The Device should not reboot because of the /NORESTART switch in the PS Script. It did not reboot when I pushed it in the Demo
For our test network, is it possible to save the username and password for the vpn connection by using intune?
I never really tried saving usernames & Passwords
Hi , i have followed the same instructions but getting 0*80070001 error again and again . Any solution
You will need to use msi installer not exe
There are few free tools to convert exe to MSI, one of them is MSI Wrapper
@@TechConect i am using msi only , please suggest
Verify the installer is working by installing manually, and if does watch the video again maybe you missed a step