Automatically Use Your Windows Logon Name And Password For VPN Authentication

This guide will show you how to automatically use your Windows logon name and password for VPN authentication in Windows 10.

Kapil Arya
11x Microsoft MVP · Admin
2 min read
Add as a preferred
source on Google

When we talk about Virtual Private Network (VPN), we often have to use ‘tunneling protocol’ term. Basically, tunneling protocol is communication protocol, which facilitates the data transfer from one network to another. While configuring a VPN connection, you can configure the connection based on these protocols such as PPTP, L2TP/IPSec, SSTP, IKEv2.

When you use PPTP based VPN, a widely used password-based authentication protocol is Microsoft Challenge Handshake Authentication Protocol version 2 (MS-CHAP v2). Microsoft recommends that you must use MS-CHAP v2 in encapsulation with PPTP for secure configuration.

Here, another important fact is that MS-CHAP v2 is the main authentication option utilized for Protected Extensible Authentication Protocol (PEAP). Worth to mention here that EAP framework is often used in network connectivity. PEAP basically encapsulates EAP with authentic and encrypted TLS tunnel. Microsoft often advices to use MS-CHAP v2 with PEAP in the organizations. The reason behind this is simple and straightforward, to maintain security of your VPN and make it more reliable.

While using MS-CHAP v2, you can allow automatic use of your Windows logon for authentication. Here is how you can configure that setting in Windows 10.

Automatically Use Your Windows Logon Name And Password For VPN Authentication

1. Press W8K + R to open Run, type ncpa.cpl and click OK.

Network Connections Windows 10

2. In Network Connections window, right click on your VPN connection and select Properties.

Automatically Use Your Windows Logon Name And Password For VPN Authentication

3. On VPN property sheet, switch to Security tab. Select Allow these protocols and make sure you’ve Microsoft CHAP Version 2 (MS-CHAP v2) option is checked. Then you can check Automatically use my Windows logon name and password (and domain if any) option. Click OK.

Automatically Use Your Windows Logon Name And Password For VPN Authentication

Close Network Connections and return to Desktop, if you like.

The settings you’ve just configured should be in effect now. This means you can use your Windows credentials to authenticate VPN now.

That’s it!

See also: Configure VPN On Windows Server 2019.

Share this article
https://www.kapilarya.com/automatically-use-your-windows-logon-name-and-password-for-vpn-authentication

Shareable URL

Article by

Kapil Arya
11x Microsoft MVP · Admin

Kapil holds Microsoft MVP title in Windows IT Pro expertise, 11-times in a row (2014-2025). He is 8-times Windows Insider MVP as well, and author of 'Windows Group Policy Troubleshooting' book. In 2015, Microsoft India accomplished him as 'Windows 10 Champion'. Being passionate Windows blogger, he loves to help others on fixing their system issues. Kapil has worked with official Microsoft Community Engagement Team (CET) on several community projects. You can subscribe him for news/updates and fixes for Windows.

2 Comments
Nicklas Lövebrant

Dear Kapil
After the Windows 10 May 2020 update this is not working anymore.
Instead of just connecting we get a Sign in window and we must enter our password when trying to connect to the VPN.
See for example answers.microsoft.com/en-us/windows/forum/all/upgrade-to-windows-10-2004-vpn-l2tp-fail/d97f3dc0-f135-4ebe-a8a7-c6e7b6fe9ff9?page=1

Do you know of a solution for this since we seem to not get an answer directly from Microsoft.

Kapil Arya Author

^^ Thanks for your comment, I will investigate this and revert back to you.

Leave a Comment

Your email address will not be published. Required fields are marked *