Created
November 21, 2018 14:37
-
-
Save akhiljalagam/3213792265c36b4bab1c442ba803ddf2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PROFILE= | |
NIC=nic | |
HUB=vpn | |
SERVER= | |
USERNAME= | |
PASSWORD= | |
vpncmd /client localhost /cmd niccreate "$NIC" | |
vpncmd /client localhost /cmd accountcreate $PROFILE /SERVER:"$SERVER" /HUB:$HUB /USERNAME:"$USERNAME" /NICNAME:$NIC | |
vpncmd /client localhost /cmd accountpasswordset $PROFILE /PASSWORD:"$PASSWORD" /TYPE:standard | |
vpncmd /client localhost /cmd accountstartupset $PROFILE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment