rasdial /disconnect breaks AlwaysOnVpn

kriszos 16 Reputation points
2022-06-24T11:46:11.34+00:00

I Configured user tunnelled always on vpn as per Microsoft documentation on Windows 10 Pro 21H2. The tunnel automatically connects correctly.
Sometimes there is a need for user to disconnect from always on vpn. The button in vpn connection disconnects but then it automatically connects again.
I found that after executing

rasdial VPNalwaysOn /DISCONNECT

it disconnects permanently and don't automatically connect even after restart. Is there a way to restore this auto-connect feature or to allow user to temporary disconnect from always on vpn in another way?

Windows 10 Network
Windows 10 Network
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Network: A group of devices that communicate either wirelessly or via a physical connection.
2,364 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bing Luo 5 Reputation points Microsoft Employee
    2024-10-03T14:12:09.1033333+00:00

    there is a registry setting control that behavior. refer to:

    https://directaccess.richardhicks.com/2024/01/15/when-always-on-vpn-isnt/


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.