Consider the following PowerShell command:
Add-VpnConnectionRoute -ConnectionName "SomeConnection" -DestinationPrefix 10.0.0.0/16 -AllUserConnection
After executing this command, whenever the VPN SomeConnection
is connected to, Windows will automatically add an IP route for 10.0.0.0/16
, and will automatically remove the route upon disconnection.
I'm seeking some insight into how this works, and I would like to find out where this information is saved in Windows. In other words, where does Windows store the instruction that "When connecting to VPN SomeConnection
, add a route for 10.0.0.0/16
"?
Opening up the system phonebook in notepad (C:\ProgramData\Microsoft\Network\Connections\Pbk\rasphone.pbk
) I see lots of settings, but nowhere is the text 10.0.0.0
. So it doesn't appeared to be stored in there with the rest of the settings. This means it's either in some other system file, or somewhere in the registry.
Anyone know where that might be?