JSI Tip 8017. Freeware utility enables DHCP on all NICs.

Jerold Schulman

May 6, 2004

1 Min Read
ITPro Today logo in a gray background | ITPro Today


Running DHCPset.exe will enable DHCP on all NICs.

Harry Bates ([email protected]) has provided DHCPset.zip, which should be unzipped after downloading.

You can run DHCPset.exe in a computer's Startup script, user's logon script, from their Startup folder, via Group Policy software distribution, or remotely (via PsExec.exe). No switches are required.

How it works:

************************************************************************************************************************************************************************** Searches:HKEY_LOCAL_MACHINE hive for below trees:  ************************************************************************************GET NETWORK ADAPTER IDENTIFICATION************************************************************************************  SOFTWAREMicrosoftWindows NTCurrentVersionNetworkCardsand enumerates  NIC IDs via ServiceName =  for below lines *************************************************************************************ENUMERATE AND CHANGE SETTINGS UNDER ADAPTER'S SERVICE*************************************************************************************  SYSTEMCurrentControlSetServicesParametersTcpip EnableDHCP =  1IPAddress =  0.0.0.0SubnetMask =  0.0.0.0DefaultGateway = *************************************************************************************ENUMERATE AND CHANGE SETTINGS UNDER TCP/IP SERVICE*************************************************************************************  SYSTEMCurrentControlSetServicesTcpipParametersInterfacesEnableDHCP =  1IPAddress =  0.0.0.0SubnetMask =  0.0.0.0DefaultGateway = NameServer = *************************************************************************************ENUMERATE AND CHANGE SETTINGS UNDER NETBIOS SERVICE*************************************************************************************                   SYSTEMCurrentControlSetServicesNetBTParametersInterfacesTcpip_NameServerList = NetbiosOptions =  0 (Get NetBIOS setting from DHCP server. IfDHCP does not return a value or unspecified, it defaults to ENABLENetBIOS.) **************************************************************************************************************************************************************************



Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like