Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Server 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
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
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" <> wrote in message
news:...
| 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
George Valkov <> 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
No network drive mapping after joining Active Directory ? Patrick Active Directory 29 05-05-2010 12:21 PM
Receive buffers setting Chris Server Networking 1 03-31-2010 08:33 PM
"WindowsUpdate_80073715" Brenda Windows Update 4 03-03-2010 12:46 AM
Unable to add computer to domain Nik Active Directory 5 12-18-2009 08:29 PM
Re: What UAC default setting if W2k8 join AD (assuming GPO not yet been configured in AD) Meinolf Weber [MVP-DS] Windows Server 0 11-14-2009 11:06 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59