cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
6714
Views
0
Helpful
1
Replies

VPN Client disconnection from command line

davidegallesio
Level 1
Level 1

Hi,

I want to connect to IPsec VPN on ISA500 by VPN Client (v 5.0.07.0440, the last version, I think), using command line parameters.

I can connect with the command:

"%programfiles%\Cisco Systems\VPN Client\ipsecdialer.exe" -c -user myUser -pwd myPassword "MyConnectionEntry"

but i don't know the command to disconnect from command lines.

If I do

"%programfiles%\Cisco Systems\VPN Client\ipsecdialer.exe" -?

I obtain the list of parameters

vpngui [-c | -sc [sd] [-user <username>] [-pwd <password> ! -eraseuserpwd]] <connection entry>

but I don't unterstand what I have to do... I try every combination using -sd parameter (I think means for silent disconnect), but in every case I can only to show VPN interface  without disconnect anything...

Can anyone help me?

Thanks

1 Reply 1

head4zhills
Level 1
Level 1

Yeah, so I know this is old. But I couldn't find this anywhere, and figured I reply here for other people wondering about this.

It's stupidly simple.

vpnclient.exe will be in the same directory as vpngui.exe

Just call it with "disconnect". Like this: vpnclient.exe disconnect

That's it.