Skip to main content

Create VPN connection prior backup

Thread needs solution

Hi All,
I have ABR 11 Advanced Workstation (Build 11.0.17438) with Windows 7 Professional 32 bit
What I want is:
- Connect through VPN to different computer prior backup process

Steps:
1. create new VPN outgoing connection called with "CLIENT"
2. Create batch file (d:\connect.bat):
==== d:\connect.bat ======
rasdial CLIENT username password > d:\log-connect.txt
====================
note: I use "log-connect.txt" to know whether it is successful or not

If I run the above "connect.bat" from normal cmd window, it works perfectly;
===== d:\log-connect.txt ====
Connecting to Client...
Verifying username and password...
Registering your computer on the network...
Successfully connected to Client.
Command completed successfully.
=====================

but when I put it under Pre-backup commands:
==================
- Command: d:\connect.bat
- Working directory: d:\
- Argument:
==================

the result of log-connect.txt is:
===== d:\log-connect.txt ====
Remote Access error 623 - The system could not find the phone book entry for this connection.
For more help on this error:
Type 'hh netcfg.chm'
In help, click Troubleshooting, then Error Messages, then 623
====================

I believe this has something to do with pre/post-backup commands?

Thanks for your help!

0 Users found this helpful

Hi All,
I found the resolution, apparently Windows 7 changed the location of the phonebook from %windir%\system32\ras to %userprofile%\AppData\Roaming\Microsoft\Network\Connections\Pbk\rasphone.pbk

The following is the working batch file to connect to VPN prior backup process:
======== connect.bat ======
%windir%\system32\rasdial CLIENT username password /phonebook:%userprofile%\AppData\Roaming\Microsoft\Network\Connections\Pbk\rasphone.pbk
======================

Hope this help anyone who is trying to do the same task

Thanks