Connection Manager script macro

  • Thread starter Thread starter msnews.microsoft.com
  • Start date Start date
M

msnews.microsoft.com

Hi,

I'm using CM to create a VPN dialup for my clients. I need to run a post
connect script that adds routes to the client:

route add 192.168.0.0 mask 255.255.0.0 %1

When the script runs after connecting, the %1 is replaced with
%ClientIPAddresss% instead of the actual IP address. I'm using an XP pro
machine to dial a Win2k sever. I'm using CM that is installed with adminpak
for 2003 server final. CM is being ran from a XP pro machine to create the
install. What might my problem be?

Paul
 
%ClientIPAddress% macro is not available on XP machine. It works only on
WS03.
If you really want to use this, you can still do it with the help of ras
apis (RasGetProjectionInfo and _RASPPPIP structure).

Let me know if you need more info/help of this api call.

Hope this helps,
Thanks,
Dinesh.
 
Back
Top