Programmatically configure TCPIP settings "Alternate Configuration"

  • Thread starter Thread starter Arnie
  • Start date Start date
A

Arnie

Is there a way to programmatically configure the TCPIP network settings.

There is an in-elegant way to configure values on the "General" tab of the
TCPIP settings but there appears to be no way to access the "Alternate
Configuration" tab settings.

Has anyone found a way to do this?

-arnie
 
would a batch file using net sh work?

such as:
netsh interface ip set dns "Local Area Connection" static 1.1.1.1
netsh interface ip add dns "Local Area Connection" addr = 1.1.1.2
netsh interface ip add dns "Local Area Connection" addr = 1.1.1.3

you can do it all with net sh

mld4165
 
I have looked at the SetNetworkConfiguration.wsf file, and as far as I
can tell all that it shows is some of the basic well-documented WMI
commands. These will affect the "General" tab on the TCPIP Properties
dialog, but I do not see how to use them to affect the "Alternate
Configuration" tab on that dialog. Can anyone provide an example of
code that will affect the settings on that tab?
 
Back
Top