PC Review


Reply
Thread Tools Rate Thread

Moving from Static IP to DHCP

 
 
Carl Hilton
Guest
Posts: n/a
 
      17th May 2004
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


 
Reply With Quote
 
 
 
 
=?Utf-8?B?VGhpcnVtYWxlc2ggQmhhdFtNU0ZUXQ==?=
Guest
Posts: n/a
 
      17th May 2004

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



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Moving Novell DHCP to windows DHCP Mike Microsoft Windows 2000 Netware 4 16th Feb 2010 03:29 PM
DHCP and static IP xdragon Windows Vista Networking 2 3rd Jun 2008 01:37 AM
static IP, DNS through DHCP? stevenkobes@hotmail.com Windows XP Networking 6 8th Apr 2006 11:46 PM
DHCP + Static Roger Microsoft Windows 2000 Networking 3 6th Nov 2003 03:15 AM
Static yes....DHCP no Joey Windows XP Networking 1 3rd Oct 2003 05:48 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:00 PM.