I am trying to make a simple script that will setup a VPN connection in Windows for the different remote users that need to be on our VPN.

I was going to go with powershell as I couldn't find a way to do this with netsh and found this:

Add-VpnConnection -Name "Test1" -ServerAddress "" -PassThru

However I tried it and it does not appear to work on Windows 7, looked it up and see that it is only for Windows 8 and up / Server 2012 and up.

Is there any Windows 7 equivalent? Or a way to get this to work on Windows 7?


There are 2 ways that I was able to get this to work.

1) Use Group Policy Preferences. Its real easy to configure however, it does not allow much customizations. https://technet.microsoft.com/en-us/library/cc772449(v=ws.11).aspx

2) Copy the Phonebook file to the local computer (using GPP file copy) http://thesbsguy.com/2010/06/09/rasvpn-phonebook-in-win-7-server-2008/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.