Could we help you? Please click the banners. We are young and desperately need the money
Using these batchfiles the procedure for VPN dial-in and hangup can be automated to ease things up for the user:
@echo off
echo Connecting VPN...
start "vpn" "C:\Program Files\ShrewSoft\VPN Client\ipsecc.exe" -r "VPN_Profile_Name" -u xAuth_Username -p xAuth_Password -a
echo Trying to reach server on remote network...
ping -n 5 192.168.1.1
echo Connecting network drives (delete existing first if any)...
net use h: /delete /y
net use p: /delete /y
net use h: \\192.168.12.10\homes /persistent:no /y
net use p: \\192.168.12.10\public /persistent:no /y
@echo off
echo Connecting VPN...
start "dialing_vpn" ""C:\Program Files\ShrewSoft\VPN Client\ipsecc.exe" -r "VPN_Profile_Name" -a
echo Trying to reach server on remote network...
ping -n 5 192.168.1.1
echo Connecting network drives (delete existing first if any)...
net use h: /delete /y
net use h: \\192.168.12.10\homes /persistent:no /y
@echo off
echo Disconnecting network drives...
net use h: /delete /y
echo Hanging up...
taskkill /T /F /IM "ipsecc.exe"