Article ID: 555992 - Last Review: September 21, 2007 - Revision: 1.0 Changing Static IP Address of Client Computers to DHCP and Vice-Versa.SUMMARYThis article explains about changing Static IP address of client computers over the network. MORE INFORMATIONMicrosoft has already published an article to change Static IP address of client computers to DHCP (make DHCP Enable) over the network. The following article can be used to change all static clients to DHCP-aware http://support.microsoft.com/kb/q194407/. In deed, the above article is useful but it requires a lot of manual effort. You need to connect every computer through "Remote Registry API" and then change the required detail in registry for all computers. This is lengthy task when you need to do the manual work on more than 100 computers. I have pointed out a solution for this situation. Please follow the steps outlined here:
PSEXEC
By using PSEXEC you can specify a text file which keeps information about the IP Address and Client computer name. Now you need to put everything together to get things working. This is how you do it: Note: The only unique filed required in DHCP Configuration is IP Address.
Note: If you want to enable DHCP for other connection specify the name of connection in netsh command. netsh interface ip set address "Local Area Connection" dhcp This should work well. SUMMARY: - The following is required for client to be a DHCP Client when configuring manually: DHCP Client service should be started. Client LAN connection should be set to *Obtain IP from DHCP Server*. netsh interface ip set address "Local Area Connection" dhcp DHCP Client must have a unique IP Address on network. Some registry entries as described in the above article must be set. HKLM\SYSTEM\CurrentControlSet\Services\XXXXXX\Parameters\TCPIP, where XXXXXX is the value of ServiceName found in the step 3 in the above article. EnableDHCP = 1 IPAddress = 0.0.0.0 SubnetMask = 0.0.0.0 DHCPDefaultGateway = 192.168.0.1 -- If you are using some other gateway then you need to put it in script or manually in registry. DHCPIPAddress = 192.168.0.5 --- IP got from DHCP server. DHCPServer = 192.168.0.1 -- IP Address of DHCP server. You don not need to restart workstation. Simply restart DHCP Client service on destination computer using a script. APPLIES TO
COMMUNITY SOLUTIONS CONTENT DISCLAIMERMICROSOFT CORPORATION AND/OR ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY, RELIABILITY, OR ACCURACY OF THE INFORMATION AND RELATED GRAPHICS CONTAINED HEREIN. ALL SUCH INFORMATION AND RELATED GRAPHICS ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT AND/OR ITS RESPECTIVE SUPPLIERS HEREBY DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THIS INFORMATION AND RELATED GRAPHICS, INCLUDING ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, WORKMANLIKE EFFORT, TITLE AND NON-INFRINGEMENT. YOU SPECIFICALLY AGREE THAT IN NO EVENT SHALL MICROSOFT AND/OR ITS SUPPLIERS BE LIABLE FOR ANY DIRECT, INDIRECT, PUNITIVE, INCIDENTAL, SPECIAL, CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF USE, DATA OR PROFITS, ARISING OUT OF OR IN ANY WAY CONNECTED WITH THE USE OF OR INABILITY TO USE THE INFORMATION AND RELATED GRAPHICS CONTAINED HEREIN, WHETHER BASED ON CONTRACT, TORT, NEGLIGENCE, STRICT LIABILITY OR OTHERWISE, EVEN IF MICROSOFT OR ANY OF ITS SUPPLIERS HAS BEEN ADVISED OF THE POSSIBILITY OF DAMAGES. | Article Translations
|


Back to the top
