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...
|