Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

modify tcp/ip settings of PPP/network adapter via command line?

Status
Not open for further replies.

shadedecho

Programmer
Oct 4, 2002
336
US
I log in via a VPN connection to my network here at work. Because of some security issues, we do not have all of our DNS servers assigned to the virtual PPP adapters on the client machines that VPN in. But, being the administrator, I'd like to know if there is a way on my client machine at home to run command line utilities to add in information to the TCP/IP of that virtual adapter, like an extra dns server, or another wins server. The reason I want this from the command line is that I want to write a program or batch script which I can have do this automatically for me when I connect to the network. anyone know a way to do this?
 
shadedecho,

Probably the easiest way to do it would be to create a .reg file and run it by using regedit /s .reg

The settings are in the registry at:-

HKLM\System\CurrentControlSet\Services\TCPIP\Parameters\Interfaces

You should be able to find your VPN adapter key on the right.

Ian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top