Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Scripting > setting IP information via script

Reply
Thread Tools Display Modes

setting IP information via script

 
 
James
Guest
Posts: n/a

 
      08-20-2008
Hello all,

I'm about to start looking into my options for configuring IP information
via script. IP address, subnet mask, gateway, and dns servers. A key thing
is that I need a solution that will work on Windows 2000, 2003, and 2008,
whether that be one method that works for all or one where I need to first
ascertain which OS is running and then branch logic accordingly.

what are my options? anyone have any links to some examples?

- all wsh/vbscript?

- WMI?

any input would be appreciated.


 
Reply With Quote
 
 
 
 
Richard Mueller [MVP]
Guest
Posts: n/a

 
      08-20-2008

"James" <> wrote in message
news:...
> Hello all,
>
> I'm about to start looking into my options for configuring IP information
> via script. IP address, subnet mask, gateway, and dns servers. A key thing
> is that I need a solution that will work on Windows 2000, 2003, and 2008,
> whether that be one method that works for all or one where I need to first
> ascertain which OS is running and then branch logic accordingly.
>
> what are my options? anyone have any links to some examples?
>
> - all wsh/vbscript?
>
> - WMI?
>
> any input would be appreciated.
>


Check out these examples for configuring network settings in the Script
Center:

http://www.microsoft.com/technet/scr...y/default.mspx

The first two scripts seem to be what you need.

--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--


 
Reply With Quote
 
James
Guest
Posts: n/a

 
      08-20-2008
great, I'll check it out. Thanks.

"Richard Mueller [MVP]" <rlmueller-> wrote in
message news:...
>
> "James" <> wrote in message
> news:...
>> Hello all,
>>
>> I'm about to start looking into my options for configuring IP information
>> via script. IP address, subnet mask, gateway, and dns servers. A key
>> thing is that I need a solution that will work on Windows 2000, 2003, and
>> 2008, whether that be one method that works for all or one where I need
>> to first ascertain which OS is running and then branch logic accordingly.
>>
>> what are my options? anyone have any links to some examples?
>>
>> - all wsh/vbscript?
>>
>> - WMI?
>>
>> any input would be appreciated.
>>

>
> Check out these examples for configuring network settings in the Script
> Center:
>
> http://www.microsoft.com/technet/scr...y/default.mspx
>
> The first two scripts seem to be what you need.
>
> --
> Richard Mueller
> MVP Directory Services
> Hilltop Lab - http://www.rlmueller.net
> --
>
>



 
Reply With Quote
 
Masterplan
Guest
Posts: n/a

 
      08-21-2008
Hi James,

You can also use netsh command. Here is a helpful link:
http://technet.microsoft.com/en-us/l.../cc778925.aspx

--
Have a nice day!

http://winmasterplan.blogspot.com


"James" wrote:

> great, I'll check it out. Thanks.
>
> "Richard Mueller [MVP]" <rlmueller-> wrote in
> message news:...
> >
> > "James" <> wrote in message
> > news:...
> >> Hello all,
> >>
> >> I'm about to start looking into my options for configuring IP information
> >> via script. IP address, subnet mask, gateway, and dns servers. A key
> >> thing is that I need a solution that will work on Windows 2000, 2003, and
> >> 2008, whether that be one method that works for all or one where I need
> >> to first ascertain which OS is running and then branch logic accordingly.
> >>
> >> what are my options? anyone have any links to some examples?
> >>
> >> - all wsh/vbscript?
> >>
> >> - WMI?
> >>
> >> any input would be appreciated.
> >>

> >
> > Check out these examples for configuring network settings in the Script
> > Center:
> >
> > http://www.microsoft.com/technet/scr...y/default.mspx
> >
> > The first two scripts seem to be what you need.
> >
> > --
> > Richard Mueller
> > MVP Directory Services
> > Hilltop Lab - http://www.rlmueller.net
> > --
> >
> >

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not 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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: script out server information Laura E. Hunter [MVP] Windows Server 0 01-04-2007 04:18 PM
Server Information Script Sam Scripting 1 08-01-2006 12:41 PM
I need a script that will pull this information. michaelr1831 Scripting 2 01-24-2006 07:31 PM
How to export all AD information by script? James Pang Scripting 2 11-15-2005 12:46 PM
Need a script to find OU information for a user Andy Svendsen Active Directory 4 06-25-2004 03:55 PM



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