Sign in

    Deploying VPN Connections by Using Windows Powershell and Group Policy

    Describes using a PowerShell script to create RAS connections on a client computer.
    • Version:


      File Name:

      Deploying VPN Connections by Using Windows Powershell and Group

      Date Published:


      File Size:

      195 KB

        This article describes how to use Group Policy, Powershell and the Remote Access Service (RAS) application programming interfaces (APIs) to configure and deploy VPN connection settings to client computers ready for use by users. The solution also describes how the Task Scheduler service can be used to configure scripts or programs that are run whenever a VPN connection is made to the VPN server. The advantage of this solution is that it is not platform specific, and can be used on all of the currently supported versions of Windows.
    • Supported Operating System

      Windows 7, Windows Server 2003, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP

        Microsoft Word, or Microsoft Word Viewer ( and the Microsoft Office Compatibility Pack for Word, Excel, and PowerPoint 2007 File Formats (
        1. To start the download, click the Download button, and then do one of the following:
          • To start the download immediately, click Open.
          • To copy the download to your computer for viewing at a later time, click Save.
          • To cancel the download, click Cancel.