Moving from Static IP to DHCP

C

Carl Hilton

I need to run through an IP range and if the network card contains a static
IP then change it to DHCP and set the DNS to DHCP, Also change the NETBIOS
over IP to DHCP. I have seen quite a few NG messsages saying that it is best
to user the NETSH command, but I have been unable to get this working. Also
there are a few machines that have something different thant "Local Area
Connection" as their NIC card "name". So I was thinking that using WSH to
grab the cards and change these optionns but have only seen the code for
setting DHCP for the IP address... How about the other two items.

We have W2KPro and WXPPro workstations in an NT4 Domain and AD Domain
environment.

Thansk
Carl
 
G

Guest

Can you include the netsh command you used? You should be able to use iphlpr APIs to get/set the dhcp/dns servers

==========================================================
This posting is provided "AS IS" with no warranties and confers no right
==========================================================

----- Carl Hilton wrote: ----

I need to run through an IP range and if the network card contains a stati
IP then change it to DHCP and set the DNS to DHCP, Also change the NETBIO
over IP to DHCP. I have seen quite a few NG messsages saying that it is bes
to user the NETSH command, but I have been unable to get this working. Als
there are a few machines that have something different thant "Local Are
Connection" as their NIC card "name". So I was thinking that using WSH t
grab the cards and change these optionns but have only seen the code fo
setting DHCP for the IP address... How about the other two items

We have W2KPro and WXPPro workstations in an NT4 Domain and AD Domai
environment

Thans
Car
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top