I am exploring using PSADT to deploy a VPN client (Forticlient) that requires post MSI install steps through InTune. It requires us to run an executable file (FCConfig.exe) to import VPN settings and the command:
FCConfig -f settings.xml -m all -o import -q -p somepassword
has been “translated” to this in the Post Install section:
I’ve since been trying other tests and one of the things I found is that the FCConfig requires admin privileges to run. This is most likely the cause of why the import is not being executed. How do I get Execute-Process to run with admin/elevated privileges?
I decided to put the XML in the SupportFiles folder and used the same format as the Office2013 example included in the PSADT package to call it.
I don’t really get why it would work with the latter but not the former. If I were to hazard a guess, it may be because when we call Execute-Process, the location of the PSADT folder gets lost so just specifying the filename or even prepending it with a .\ will not work?
Anyway, hopefully this will help someone else out there.