Networking Forums

Networking Forums > Computer Networking > Windows Networking > commandline setting of VPN preshared key?

Reply
Thread Tools Display Modes

commandline setting of VPN preshared key?

 
 
Rob
Guest
Posts: n/a

 
      05-29-2010, 12:33 PM
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.pb k

but the preshared key is not in that file...
 
Reply With Quote
 
 
 
 
George Valkov
Guest
Posts: n/a

 
      06-03-2010, 01:12 PM
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\win dows\IPSec\Policy]


George Valkov



"Rob" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
| 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.pb k
|
| but the preshared key is not in that file...


 
Reply With Quote
 
Rob
Guest
Posts: n/a

 
      06-03-2010, 03:06 PM
George Valkov <(E-Mail Removed)> 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\win dows\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.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VPN - Preshared Key not working csaran Windows Networking 3 04-12-2007 07:42 AM
Step by Step for vpn using l2tp and preshared secret on a single Windows 2003 Server? jbwilson@gmail.com Windows Networking 0 10-16-2006 12:05 PM
IPSec connection with preshared key Someone Windows Networking 0 04-02-2006 02:47 PM
Setting up MN-700 sib Broadband Hardware 4 08-02-2004 07:41 AM
Re: Setting IP and DNS Draxen Broadband 0 07-07-2003 11:11 PM



1 2 3 4 5 6 7 8 9 10 11