Monday, February 04, 2013

Open and close a VPN connection from command line

Goal:  Use FinalBuilder to be able to deploy an application to a customers site over a VPN connection.

Create VPN Entry in Windows 7:  Short Video





Clear the check boxes for Display progress while connecting and Prompt for name and password, cert, etc.

So now to connect and disconnect via command-line is very simple using rasphone.

Connect:

  • PS C:\Users\scramer.AKTION> rasphone -d MyConnection

Disconnect:


  • PS C:\Users\scramer.AKTION> rasphone -h MyConnection

Add this into Final Builder by using a powershell action:



References:

Software Used:

  • Windows 7
  • FinalBuilder 7
  • RasPhone.exe