Forum Discussion
F5 VPN command-line and Windows task scheduler
- Mar 19, 2023
After some more testing:
As a regular user with RDP rights (only), executing the PS script itself runs perfectly - connect to F5 VPN, run SFTP commands, move files, disconnect VPN connection. However, when running this same script in Task Scheduler (as the regular user), the F5 connection is made, but it not usable by any other client (FTP client, browser, etc).
I had to change the user the scheduled task was being executed as from the regular user, to a user with administrator rights on the server. After that, the PS script, run in task scheduler, runs as intended.
After some more testing:
As a regular user with RDP rights (only), executing the PS script itself runs perfectly - connect to F5 VPN, run SFTP commands, move files, disconnect VPN connection. However, when running this same script in Task Scheduler (as the regular user), the F5 connection is made, but it not usable by any other client (FTP client, browser, etc).
I had to change the user the scheduled task was being executed as from the regular user, to a user with administrator rights on the server. After that, the PS script, run in task scheduler, runs as intended.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com