Real Geek Forums  

Go Back   Real Geek Forums > Archives > Operating Systems > Windows XP > Windows XP WMI

Notices

Reply

Programmatically configure TCPIP settings "Alternate Configuration"

 

LinkBack Thread Tools Display Modes
Old 08-17-2005, 06:10 AM   #1 (permalink)
Default Programmatically configure TCPIP settings "Alternate Configuration"

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





Arnie
Guest
 
Posts: n/a
Reply With Quote  
Old 08-18-2005, 02:10 PM   #2 (permalink)
Default RE: Programmatically configure TCPIP settings "Alternate Configuration

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


"Arnie" wrote:
Quote:
> 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
>
>
>
>
>
>
mld4165
Guest
 
Posts: n/a
Reply With Quote  
Old 08-24-2005, 05:38 PM   #3 (permalink)
Default Re: Programmatically configure TCPIP settings "Alternate Configuration

You can check http://www.lissware.net, vol 2, Sample 2.12 to 2.13 -
SetNetworkConfiguration.wsf

/Alain

"mld4165" <mld4165@discussions.microsoft.com> wrote in message
news:6E3B5619-9154-49FA-B182-39B697E6D30F@microsoft.com...
Quote:
> 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
>
>
> "Arnie" wrote:
>
Quote:
>> 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
>>
>>
>>
>>
>>
>>


Alain Lissoir [MSFT]
Guest
 
Posts: n/a
Reply With Quote  
Old 08-31-2005, 05:35 PM   #4 (permalink)
Default Re: Programmatically configure TCPIP settings "Alternate Configuration

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?

Ryan Columbus
Guest
 
Posts: n/a
Reply With Quote  
Reply

Tags
None

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
alternate IP configuration bug? mister.jones Windows Vista Networking & Sharing 12 05-16-2007 05:44 PM
"plug and play configuration error --- hit F1 to continue" kelly Windows XP Configuration & Management 1 09-05-2004 10:02 PM
How do you configure a printer port to "FILE" Zalman Windows XP Printers / Scanners / Fax 1 09-15-2003 09:43 PM
"Start" "Program" "Menu" list is empty Pete Windows XP Basics 2 07-10-2003 10:42 PM
Do I need tasks "services", "lsass" and "svchost" to keep running?? Pankaj Dhingra Windows XP Performance & Maintenance 1 07-02-2003 01:55 AM


All times are GMT. The time now is 11:28 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright © 2005 - 2007 RealGeek.com. All rights reserved.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90