Skip to content

Instantly share code, notes, and snippets.

@bvanskiver
Last active March 14, 2023 07:25
Show Gist options
  • Save bvanskiver/122af6ee9c7843c89225d954165f4264 to your computer and use it in GitHub Desktop.
Save bvanskiver/122af6ee9c7843c89225d954165f4264 to your computer and use it in GitHub Desktop.
Shrew Soft VPN client shortcut with saved credentials
rem http://www.shrew.net/
"C:\Program Files\ShrewSoft\VPN Client\ipsecc.exe" -r "VPN Profile Name" -u "Username" -p "Password" -a
@bvanskiver
Copy link
Author

bvanskiver commented Sep 25, 2019

"C:\Program Files\ShrewSoft\VPN Client\ipsecc.exe" -r "VPN Profile Name" -u "Username" -p "Password" -a

Adding -a for auto connect

@nitinjain1005 Thanks, I'll add that!

@jkyadav
Copy link

jkyadav commented Oct 10, 2019

@bvanskiver is there any way to auto close the command prompt? I tried EXIT but that didn't work.

@tukusejssirs
Copy link

tukusejssirs commented Oct 10, 2019

@jkyadav, when you leave the ikec/ipsecc command open, you can press (I think) x q (I am not sure if it is x or q, I always forget it. I have cheched upon it.)

Copy link

ghost commented Oct 10, 2019

#!/bin/bash
qikec -r VPN -u mylogin@rtk-dw.com -p password -a

(in Linux)

@Bluscream
Copy link

@bvanskiver is there any way to auto close the command prompt? I tried EXIT but that didn't work.

@jkyadav start "" "C:\Program Files\ShrewSoft\VPN Client\ipsecc.exe" -r "VPN Profile Name" -u "Username" -p "Password" -a

@jkyadav
Copy link

jkyadav commented Jul 30, 2020

@Bluscream thank you.

@Brinky-MLT
Copy link

Brinky-MLT commented Dec 6, 2020

Hi, I'm not a tech genius is there a way I could set such connection and say it will connect @06:00 daily for 1 hour?
Would also need guidance, are the scripts above to run in a bat file or an other?
Thanks in advance

Copy link

ghost commented Dec 6, 2020

Hi, I'm not a tech genius is there a way I could set such connection and say it will connect @06:00 daily for 1 hour?
Would also need guidance, are the scripts above to run in a bat file or an other?
Thanks in advance

Windows scheduler should help you with this.

@Brinky-MLT
Copy link

@sdkbotik thanks now I got it working

@joy6oy
Copy link

joy6oy commented Dec 6, 2020

@sdkbotik thanks now I got it working

Отлично! Я рад Вам помочь.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment