I want to run powershell scripts, that connect through our corporate VPN using forticlient, and when it has successfully connected start PSSessions to backups etc on remote servers If I run the script on a powershell cmd line entering the script line by line, it works if I wait for Forticlient to connect to the VPN and does all the rest If I put it in a Powershell .ps1 script it fails as it trys to do stuff on the remote servers before it has finished connecting to the VPN through forticlient Using FortiSSLVPNclient I have tried pipelining | Wait-Process at the end and | Out-Null but neiither of those commands seems to have any affect, and being a newbie at powershell doesn't help Anyone have idea what will work with the FortiSSLVPNclient to make it finish connecting before continuing with the scripts and trying to connect to remote servers ?
User | Count |
---|---|
2559 | |
1356 | |
795 | |
650 | |
455 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.