Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

commandline setting of VPN preshared key?

192 views
Skip to first unread message

Rob

unread,
May 29, 2010, 8:33:33 AM5/29/10
to
On Windows XP, a VPN connection can be defined using the GUI
from the properties page of networking. When the VPN is set
to L2TP/IPsec, a preshared key can be entered.

Where is this preshared key stored on the system?
Is it possible to set the preshared key from a batchfile using
some commandline program?

The other settings of the VPN end up in a file named

C:\Documents and Settings\All Users\Application Data\Microsoft\Network\Connections\Pbk\rasphone.pbk

but the preshared key is not in that file...

George Valkov

unread,
Jun 3, 2010, 9:12:10 AM6/3/10
to
You may try the
netsh
command, but I don't know if it supports this. I dumped the entire network
configuration, but couldn't find any preshared keys in plain text inside it.

You may also have a look at the iPSec settings in the registry:
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\windows\IPSec\Policy]


George Valkov

"Rob" <nom...@example.com> wrote in message
news:slrni022ct...@xs8.xs4all.nl...

Rob

unread,
Jun 3, 2010, 11:06:06 AM6/3/10
to
George Valkov <a...@b.com> wrote:
> You may try the
> netsh
> command, but I don't know if it supports this. I dumped the entire network
> configuration, but couldn't find any preshared keys in plain text inside it.
>
> You may also have a look at the iPSec settings in the registry:
> [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\windows\IPSec\Policy]
>
>
> George Valkov

Thanks for your reply.
I looked in that registry key and it does have our policy defined IPsec
stuff, but the dialup VPN entry is not defined by policy. It is created
manually.
Maybe I should try to find if it is possible to create a VPN by policy,
that should solve the issue.

0 new messages