Moving from Static IP to DHCP

  • Thread starter Thread starter Carl Hilton
  • Start date Start date
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
 
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
 
Back
Top