Deploy VPN client with intune: installation failed when wgsslvpnsrc.exe is running

I'm trying to deploy watchguard Mobile vpn with ssl client with intune using this guide.

So far, I'm able to install the client on a fresh install. But when an older version of the client is installed & still active (i.e. wgsslvpnsrc.exe is running in the background, indicated by the watchguard logo in the taskbar) the installation fails. I tried to add a taskkill command to close this process:

"C:\Windows\System32\taskkill.exe" /f /t /im wgsslvpnc.exe & "WG-MVPN-SSL_12_11.exe" /silent /verysilent

This command succeeds when running manually, but upon using this in intune I got a installation failed error.

When I manually close wgsslvpnc.exe & do the installation via intune, it succeeds.

So: how can I add a command to close wgsslvpnc.exe before executing the (de-)installation?

Comments

  • james.carsonjames.carson Moderator, WatchGuard Representative

    Hi @wouterVE

    The installer checks to see if the SSLVPN service is running, and will prompt to close it. The silent option removes the ability to do this. There isn't a specific flag to force close the client.

    You could likely use a powershell script that starts with the command "Stop-Process" (using the -Name and process name flag would probably work best here.)

    -James Carson
    WatchGuard Customer Support

  • Hello @james.carson
    Thanks for your reply. Indeed I started to write a powershell script to install it. Still have to search how to deploy this through intune.

    For other's interest; it looks like this:

    Set-ExecutionPolicy -ExecutionPolicy Bypass -scope process
    stop-process -name 'wgsslvpnsrc' -Force
    stop-process -name 'wgsslvpnc' -Force
    "WG-MVPN-SSL_12_11.exe" /silent /verysilent
    
Sign In to comment.