Share via


VPN event 20227 Error code is 87

Question

Monday, July 17, 2017 2:21 PM

Hello,

I'm trying to connect to a workplace through a VPN with authentication based on a computer certificate. It was correctly configured, the certificates loaded, but when I clicked the Connect button, the "Parametr jest niepoprawny" message appears which means in english "Invalid parameter" i believe.

I do not know what the parameter is, on the second computer (laptop with fresh system) running on the same network the same configuration works fine. But I need VPN working on my main pc machine.

In the system logs I found this:

The SYSTEM UI is trying to establish a link to the Remote Access ...
The SYSTEM has successfully established a link to the Remote Access Server using the following device: ...
The link to the Remote Access Server has been established by the SYSTEM user.

Then there is the error:
The user SYSTEM dialed a connection named VPN NAME which has failed. The error code returned on failure is 87.

And next event:

The user SYSTEM dialed a connection named VPN NAME which has terminated. The reason code returned on termination is 631.

What does code 87? I count find only codev above 600.

Edited:

I've found that 87 is Incorrect parameters.. but what parameter? Can I find somewhere more detailed error or log for VPN connection?

All replies (5)

Tuesday, July 18, 2017 6:44 AM

Hi,

As you said, the fresh system laptop with same configurations connects to VPN normally, it indicates that your configurations are correct, your main computer exists system related issue.

On your main pc, update system to the same build as your laptop, close firewall and security software, create a new Admin account and reconfigure VPN on this account, if you use a VPN client software to connect VPN, reinstall this client software and test again.

Meanwhile, run sfc /scannow command and DISM command to repair system files.

If still no help, try to execute a repair upgrade by an original iso image, reset network, configure and connect your VPN.

Event ID 20227 — RAS Connection Establishment

https://technet.microsoft.com/en-us/library/cc733854%28v=ws.10%29.aspx?f=255&MSPPError=-2147217396

Regards

Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].


Tuesday, July 18, 2017 2:48 PM

Thanks for answer.

My systems are always up to date. I've created new admin account, add new VPN connection - same issue.

I'm not using any external software for VPN.

sfc and dism returns no corrupted files.

I have no original iso image, Win 10 was upgraded from 8.1, which was upgraded from 8, which was upgraded from 7 ;).


Wednesday, July 19, 2017 1:03 AM

Visit the following Microsoft website, download media creation tool, we can download original iso image file by this tool, note choose your Windows edition.

https://www.microsoft.com/en-au/software-download/windows10

Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].


Saturday, July 22, 2017 4:56 PM

"try to execute a repair upgrade by an original iso image" - does it mean completly clear the disk (format c: ) or it leaves my programs installed?


Thursday, July 27, 2017 8:24 AM

Repair upgrade means keep your programs and data and upgrade system.

Don't need to format disk.

Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].