Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Enable DHCP?

0 views
Skip to first unread message

Andrew Z Carpenter

unread,
Sep 16, 2002, 9:23:59 AM9/16/02
to
We're moving from static IP to DHCP.

I'm looking for a way to automate
the process through either WSH or
a batch file.

I've found Q197424 which applies to
Windows 95 and 98, which gets most
of the workstations, and that's great.

Is there a way of doing the same for
Windows NT4, and Windows 2000 Pro?

Thanks in advance,


Andrew


CJ Morton

unread,
Sep 16, 2002, 11:12:16 AM9/16/02
to
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q242468

CJ M

"CJ Morton" <mort...@NOSPAMjohndeere.com> wrote in message
news:3d85f476$1...@news1.dpn.deere.com...
> Check out the built-in NETSH.exe utility in the Winnt\system32 dir...
>
> CJ M
>
>
> "Andrew Z Carpenter" <a...@nospamcirencester.ac.uk> wrote in message
> news:OhEQ8QYXCHA.2456@tkmsftngp09...

CJ Morton

unread,
Sep 16, 2002, 11:10:45 AM9/16/02
to
Check out the built-in NETSH.exe utility in the Winnt\system32 dir...

CJ M


"Andrew Z Carpenter" <a...@nospamcirencester.ac.uk> wrote in message
news:OhEQ8QYXCHA.2456@tkmsftngp09...

Jim de Graff

unread,
Sep 16, 2002, 2:10:15 PM9/16/02
to
I regularly switch between static IP (office) and DHCP (home) so I use
"netsh -f dhcp.txt" where dhcp.txt contains

#========================
# Interface configuration
#========================
pushd interface

reset all


popd
# End of interface configuration

# ----------------------------------
# Interface IP Configuration
# ----------------------------------
pushd interface ip


# Interface IP Configuration for "Local Area Connection"

set address name="Local Area Connection" source=dhcp
set dns name="Local Area Connection" source=dhcp

popd
# End of interface IP configuration

----------------------------------------------


"Marty List" <Bill....@sun.com> wrote in message
news:Od4bCTZXCHA.2056@tkmsftngp09...
>
> Attached is a VBS/WMI script that will enable DHCP. I have not tested it
> really, but it will get you started


>
>
> "Andrew Z Carpenter" <a...@nospamcirencester.ac.uk> wrote in message
> news:OhEQ8QYXCHA.2456@tkmsftngp09...

Andrew Z Carpenter

unread,
Sep 17, 2002, 5:50:18 AM9/17/02
to
Thank you Jim and Marty, I'll see what I can do.

Andrew


> "Marty List" <Bill....@sun.com> wrote in message
> news:Od4bCTZXCHA.2056@tkmsftngp09...
> >
> > Attached is a VBS/WMI script that will enable DHCP. I have not tested it
> > really, but it will get you started
>
>

> "Jim de Graff" <rjde...@hydro.mb.ca> wrote
> in message news:#cqQ7waXCHA.2404@tkmsftngp10...

Andrew Z Carpenter

unread,
Sep 17, 2002, 5:49:10 AM9/17/02
to
Thank you CJ, I'll take a good look into that.

Andrew


> "CJ Morton" <mort...@NOSPAMjohndeere.com> wrote in

> message news:3d85f4d1$1...@news1.dpn.deere.com...


>
> Check out the built-in NETSH.exe utility in the Winnt\system32 dir...
>

Torgeir Bakken

unread,
Sep 16, 2002, 11:16:52 AM9/16/02
to
CJ Morton wrote:

> "Andrew Z Carpenter" <a...@nospamcirencester.ac.uk> wrote in message
> news:OhEQ8QYXCHA.2456@tkmsftngp09...
> > We're moving from static IP to DHCP.
> >
> > I'm looking for a way to automate
> > the process through either WSH or
> > a batch file.
> >
> > I've found Q197424 which applies to
> > Windows 95 and 98, which gets most
> > of the workstations, and that's great.
> >
> > Is there a way of doing the same for
> > Windows NT4, and Windows 2000 Pro?
> >
>

> Check out the built-in NETSH.exe utility in the Winnt\system32 dir...

Hi

Microsoft Knowledge Base Article - Q242468
How to Use the Netsh.exe Tool and Command-Line Switches
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q242468


--
torgeir


0 new messages