Execute a config file from BigFix

Hi!

I’m trying to deploy a config file for the VPN Software FortiClient.

I’ve used the Software Distribution Wizard to distribute the .conf file and extract it into C:. So far so good.

Now when I try to execute the config, it fails.

Here’s the action script:

prefetch …
extract …
wait “C:\Program Files\Fortinet\FortiClient\FCConfig.exe -m vpn -f C:\export-VPNC4.conf -o import -i 1”

The logs show that the two first commands run well, but the third fails (not showing why).

Maybe the issue is related to the quotation marks? Thanks!

Solved:

wait cmd /c “%22C:\Program Files\Fortinet\FortiClient\FCConfig.exe%22 -m vpn -f %22C:\export-VPNC4.conf%22 -o import -i 1”