D
Dave Wisel
Try this. Create a "NEW" VPN connection and call it "Work". Make
sure that the connection type is set to "PPTP VPN" on the Networking
tab and then uncheck the "Use Default Gateway on Remote Network" box.
Save this script as a batch file:
Rem ------Begin--------
@echo off
rasdial Work
ping 1.1.1.1 -n 10 -w 1000 > NUL
route delete 10.0.0.0
for /f "tokens=15" %%a in ('ipconfig ^| find "IP Add" ^| find
"10.1.29"') do route ADD 10.0.0.0 MASK 255.0.0.0 %%a
Rem -------End----------
This script will dial the RAS connection, wait a couple seconds and
then run an ipconfig and find your RRAS assigned IP address then add
the appropriate route.
BTW, I have found that using a PPTP connection that was created before
SP2 was installed gives sporatic behavior. It's best to delete any
old PPTP connections and start fresh.
Hope this works for you.
sure that the connection type is set to "PPTP VPN" on the Networking
tab and then uncheck the "Use Default Gateway on Remote Network" box.
Save this script as a batch file:
Rem ------Begin--------
@echo off
rasdial Work
ping 1.1.1.1 -n 10 -w 1000 > NUL
route delete 10.0.0.0
for /f "tokens=15" %%a in ('ipconfig ^| find "IP Add" ^| find
"10.1.29"') do route ADD 10.0.0.0 MASK 255.0.0.0 %%a
Rem -------End----------
This script will dial the RAS connection, wait a couple seconds and
then run an ipconfig and find your RRAS assigned IP address then add
the appropriate route.
BTW, I have found that using a PPTP connection that was created before
SP2 was installed gives sporatic behavior. It's best to delete any
old PPTP connections and start fresh.
Hope this works for you.