How do I create a Windows VPN Connection and store its username and password with Powershell scripts?

John Schultz 1 Reputation point
2021-03-17T02:54:18.693+00:00

OK,... In regards to the question, creating-a-vpn-connection-with-credentials-username-password

How can I create a VPN entry using PowerShell ONLY (this would also require storing the Username and Password combination Pairs) The OP refers to an addon "he has created".

Where can I find this code? or

Where can I find the addon? or

Where can I find detailed information about creating this add-on myself?

Windows for business | Windows Client for IT Pros | Networking | Network connectivity and file sharing
Windows for business | Windows Server | User experience | PowerShell
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2021-03-17T05:33:34.45+00:00

    Hi,

    To create a VPN connection you can use the Add-VpnConnection cmdlet. The following link is helpful

    https://www.tenforums.com/tutorials/90305-set-up-add-vpn-connection-windows-10-a.html

    Best Regards,
    Ian Xue

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.