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

Комментарии • 29

  • @DDayUA
    @DDayUA 6 месяцев назад +1

    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).

    • @TechConect
      @TechConect  6 месяцев назад +1

      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

  • @YUC1FER
    @YUC1FER 8 месяцев назад +1

    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

    • @TechConect
      @TechConect  8 месяцев назад

      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.

    • @YUC1FER
      @YUC1FER 8 месяцев назад

      @@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?

    • @TechConect
      @TechConect  8 месяцев назад +1

      Yes the intunewin file will contain all of them

  • @user-fx1kx3wh1s
    @user-fx1kx3wh1s 9 месяцев назад +3

    How will Intune pick up the install.ps1?

    • @TechConect
      @TechConect  9 месяцев назад

      In intune after I uploaded the packaged App, under program, I added the install.ps1 command.

    • @user-fx1kx3wh1s
      @user-fx1kx3wh1s 9 месяцев назад

      @@TechConect so add install.ps1 as a detection script or upload the script in general (under devices)?

    • @Boss2u
      @Boss2u 8 месяцев назад

      I have the same question

    • @TechConect
      @TechConect  7 месяцев назад

      The script is already packaged you just need to add the command like I did in the video.

  • @architius
    @architius 10 месяцев назад +1

    I followed your guide step by step yet it gave me the "The application was not detected after installation completed successfully (0x87D1041C)" error

    • @TechConect
      @TechConect  10 месяцев назад

      You will need to use msi installer not exe

  • @tuckcheekong1582
    @tuckcheekong1582 4 месяца назад

    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

    • @TechConect
      @TechConect  4 месяца назад

      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.

  • @ProfGachichio
    @ProfGachichio 10 месяцев назад +1

    This is informative.
    How do i get the MSI installer??

    • @TechConect
      @TechConect  10 месяцев назад +1

      There are few free tools to convert exe to MSI, one of them is MSI Wrapper

    • @naveenmonikakaushik5264
      @naveenmonikakaushik5264 4 месяца назад +2

      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

    • @hoskyseriousinvestor
      @hoskyseriousinvestor 6 дней назад

      @@naveenmonikakaushik5264thanks for the hint 🎉

  • @5624DK
    @5624DK 3 месяца назад

    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?

    • @TechConect
      @TechConect  3 месяца назад

      in the install powershell script just change the value to 1 DESKTOPSHORTCUT=1

  • @nyinyihtoo
    @nyinyihtoo 10 месяцев назад

    How can we force device not to reboot after installing the vpn client in the ps script provided?

    • @TechConect
      @TechConect  10 месяцев назад

      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

  • @talktechnowlimited7843
    @talktechnowlimited7843 7 месяцев назад

    For our test network, is it possible to save the username and password for the vpn connection by using intune?

    • @TechConect
      @TechConect  6 месяцев назад

      I never really tried saving usernames & Passwords

  • @naveenmonikakaushik5264
    @naveenmonikakaushik5264 4 месяца назад

    Hi , i have followed the same instructions but getting 0*80070001 error again and again . Any solution

    • @TechConect
      @TechConect  4 месяца назад

      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

    • @naveenmonikakaushik5264
      @naveenmonikakaushik5264 4 месяца назад

      @@TechConect i am using msi only , please suggest

    • @TechConect
      @TechConect  4 месяца назад

      Verify the installer is working by installing manually, and if does watch the video again maybe you missed a step