Forum Discussion
Is it possible to connect to VPN from a Windows client command line without user interaction?
- Sep 25, 2014
Older post, but I've done something similar.. I was able to use the following command on a windows machine to accomplish what I needed:
taskkill /F /IM f5fpclientW.exe
Thanks, dg
Killing the process leaves the session still established on the server. Try the below using powershell to retrieve the sid, create a variable and stop the client using the variable.
PS > cd C:\Program Files (x86)\F5 VPN
PS > .\f5fpc -start /h /u user /p password /q
PS > unattended command here
PS > $e = (.\f5fpc -info | findstr /r ^[1-9] | ForEach-Object {$_.Substring(0,7)})
PS > .\f5fpc -stop /s $e
Rich
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