About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.
Error 812 is a policy and configuration mismatch: the remote access server authenticated the session one way, but the VPN connection profile on Windows expects a different method. Always On VPN guidance names RAS or VPN server policy and tells you to notify the administrator. Pair this fix with error 691 when credentials fail outright, and with error 13801 when IKEv2 certificates are wrong.
What the symptom means
Remote access guidance quotes:
Error code: 812 - Can't connect to AOVPN. The connection was prevented because of a policy that's configured on your RAS or VPN server. Specifically, the authentication method that the server used to verify your user name and password don't match the authentication method that's configured in your connection profile. Notify the administrator of the RAS server about this error.
Always On VPN troubleshooting adds practical detail: check event log 20276; a common example is NPS expecting PEAP (certificate to secure PEAP) while the client profile uses EAP-MSCHAPv2. Resolution is to contact the RAS administrator and match client and NPS authentication settings.
Likely causes (our reading)
| Cause | What you see | How to confirm |
|---|---|---|
| NPS network policy method ≠ client EAP type | 812 right after server contact | Event 20276; compare PEAP vs MSCHAPv2 |
| Stale VPN profile after NPS change | Worked until policy rollout | Timeline vs NPS deployment |
| Multiple profiles (user vs machine) | Device tunnel OK, user tunnel 812 | Separate AoVPN profiles |
| Wrong assumption about password | User resets password; still 812 | Method mismatch, not 691 |
| Split-tunnel unrelated | Names fail only after connect | See NRPT article post-connect |
Prove the cause before changing anything
These steps only read.
1. Confirm error 812 in the UI or RAS client logs.
2. On the client, open the VPN connection properties and note Security → authentication type (EAP, MS-CHAP, certificate, etc.) without saving changes.
3. Ask the RAS administrator to read NPS connection request and network policies and event 20276 on the server.
4. Compare with 691 if the message cites unrecognised password rather than method mismatch.
5. For IKEv2 certificate VPN, if the message is 13801, switch to the 13801 playbook—812 is specifically about username/password method alignment in Microsoft’s 812 text.
Fix
Align NPS and RRAS (RAS administrator)
Our advice (not on the cited Microsoft pages): export NPS policies before editing. Treat the export as sensitive—exportPSK=YES writes shared secrets into the file.
netsh nps export filename="$env:USERPROFILE\nps-before.xml" exportPSK=YES
Risk: the next step changes live NPS authentication methods. Active sessions may drop; misaligned EAP types can deny all VPN users until the export is imported. Store nps-before.xml securely.
Adjust NPS network policy constraints so the EAP type matches what Windows clients use (for example align PEAP and EAP-MSCHAPv2 per Microsoft’s mismatch example). Reload NPS.
To undo it: netsh nps import filename="...\nps-before.xml" on the same server.
Change the Windows VPN profile to match server policy
Record the exact present authentication settings before change:
echo "vpn_profile=<name> eap=<current> auth=<current> server=<fqdn>" > vpn-812-profile-before.txt
Risk: the next step changes how this PC authenticates to VPN. Wrong EAP selection causes 812 or 691 until restored from your notes.
Our navigation (not on the cited pages): in Settings → VPN → Advanced options (or legacy ncpa.cpl → Properties → Security), select the authentication method the RAS administrator confirms on NPS. For EAP, use Configure and pick the same inner method the server advertises.
To undo it: restore settings recorded in vpn-812-profile-before.txt.
Remove and recreate the profile only if MDM allows (our advice)
Microsoft’s 812 pages do not prescribe removing the profile. Our advice when the profile is stale and MDM can redeploy:
Capture the present connection properties (not a full connection XML):
Get-VpnConnection | Format-List * | Out-File "$env:USERPROFILE\vpn-812-connections-before.txt"
Disruptive step: removing the VPN profile cannot be undone from the device. Saved triggers and per-user options on this device are deleted; users must re-enter settings or wait for Intune or Group Policy to redeploy Always On VPN.
Remove the broken connection and let Intune or Group Policy redeploy Always On VPN, or recreate manually with the corrected EAP settings.
To undo it: there is no single-click undo for deleted profiles; redeploy from MDM or recreate using the properties listed in vpn-812-connections-before.txt.
Notify administrator when you cannot edit NPS
Microsoft’s stated fix is to notify the administrator of the RAS server with the 812 text. End users without NPS access should send event time, profile name, and authentication screenshot.
Confirm the fix
- Connection succeeds without 812 using the agreed EAP/MS-CHAP method.
- Event 20276 stops appearing for that user on new attempts.
- NPS export on the server matches approved policy or rollback file is retained.
What to watch afterwards
- Certificate-based user tunnels may need different NPS conditions than password EAP.
- Intune profile updates can overwrite manual client fixes on the next sync.
- Internal name resolution after connect is separate; use split-tunnel DNS guidance if only names fail.
Read next
Related articles you may want next.
- TroubleshootingVPN error 691: user name, password or authentication protocolVPN error 691: wrong credentials or auth protocol not allowed on RRAS. Check lockout, MS-CHAPv2, LmCompatibilityLevel and NTLMv2 policy on the server.Read article
- TroubleshootingVPN error 13801: IKE authentication credentials unacceptableVPN error 13801: IKEv2 certificate EKU, expiry, root trust or server name mismatch. Fix RAS machine cert and connect with the FQDN on the certificate.Read article
- TroubleshootingVPN connected but internal names do not resolve: read the NRPT and the interface orderAlways On VPN or split tunnel connected but internal names fail? Read the NRPT, suffix search list and interface metric on the Windows client.Read article
Risks and limits
These steps have not been lab-tested.
netsh nps export with PSK must be stored securely. Microsoft’s example centres on PEAP versus EAP-MSCHAPv2; other EAP types need equivalent alignment. Third-party VPN clients are out of scope for Windows 812 wording.
Sources
- Troubleshoot Remote Access VPN and Always On VPN — Microsoft Learn, page dated 12 February 2026, accessed 3 December 2026
- Troubleshoot Always On VPN — Microsoft Learn, page dated 12 February 2026, accessed 3 December 2026
This article was originally published on .