Page 1 of 1

Scheduling Automatic Connect/Disconnect

Posted: Mon Jun 06, 2022 7:41 pm
by motonyc
Hi Everyone!

I was wondering if anyone knew of a way to have softether client disconnect and reconnect based on a schedule or task manager using batch file or something similar on Windows PC? Any thoughts would be appreciated!

Thank you!

Re: Scheduling Automatic Connect/Disconnect

Posted: Tue Jun 07, 2022 12:38 am
by solo
Easy...

Code: Select all

@echo off
path=%path%;C:\Program Files\SoftEther VPN Client
vpncmd /CLIENT localhost /CMD AccountRetrySet con-name /NUM:0 /INTERVAL:5
vpncmd /CLIENT localhost /CMD AccountConnect con-name
...and to disconnect: AccountDisconnect