Medium
Operating Systems
✓ Solution Verified by Community (0+ upvotes)
How to fix error error-ipsec-ike-authorization-failure-with-optional-retry in Windows 11
ERROR_IPSEC_IKE_AUTHORIZATION_FAILURE_WITH_OPTIONAL_RETRY = 13907
Fix based on community reports and expert analysis. Last verified: 2026-08-12
· How we verify fixes
| Error Code | error-ipsec-ike-authorization-failure-with-optional-retry |
|---|---|
| Affected System | Windows 11 (Microsoft) |
| Difficulty | Medium |
| Estimated Time | 15 min |
| Requires Admin Rights | ⚠️ Yes |
Solution Steps
- 1 First, simply try reconnecting to the VPN. Right-click the network icon in the system tray, select 'Network & Internet settings', then 'VPN', and click on your connection and 'Connect'. Sometimes the error is transient, and a retry works. If it fails again, proceed.
- 2 Press Windows key + R, type 'services.msc' and press Enter. Find 'IPsec Policy Agent' in the list. Right-click it and select 'Restart'. This service manages IPsec policies. Restarting it can clear temporary glitches. Also restart 'IKE and AuthIP IPsec Keying Modules' (IKEEXT) service in the same way.
- 3 Open Command Prompt as administrator (Win+X, then 'Windows Terminal (Admin)'). Type 'ipconfig /flushdns' and press Enter. This clears the DNS cache, which can sometimes cause authentication failures if the VPN server's hostname resolves incorrectly. Then type 'ipconfig /registerdns' and press Enter to re-register your DNS.
- 4 Check your VPN client's authentication settings. If you're using the built-in Windows VPN, go to Settings > Network & Internet > VPN, click your connection, and select 'Advanced options'. Ensure the 'Authentication method' is set to 'Microsoft: Secured Password (EAP-MSCHAP v2)' or 'Microsoft: Smart Card or other certificate' depending on your company's setup. If it's wrong, change it and save.
- 5 If the error persists, reset the IPsec and IKE settings using the commands from the previous fix: 'netsh int ipsec reset' and 'netsh int ike reset'. Then reboot your PC and try again.
🔍 Didn't work? Enter your GPU and CPU for hardware-specific advice:
🔧 Still having issues?
Describe your exact problem to Error Buddy and get a personalized fix in seconds.
🛠️ Try Error Buddy — It's Free