DHCP client service with option 12

J

Jartinez

Hi,

I have a problem with DHCP Client Service component in an XPe image. I
need to request the target hostname to a DHCP Server, but I don't know
how to configure the option 12 on the DHCP request.

I have seen on this component some registry entries in the following
path:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\DHCP\Parameters
\Options\

Below this path, there are some values for each option, but I don't
know the right data configuration of KeyType (REG_DWORD) and
RegLocation(REG_MULTI_SZ) for option 12.

Does anybody know these configurations?.

In addition, I don't know if once I have received the hostname, I
could set it without a machine reboot. Does anybody know how can I set
a new hostname on XPe without a reboot?

Thanks in advance.

Ruben
 
D

Douglas Hammond

I know this is an old topic, but I'm adding this in case it helps someone else.

There's not a built-in function in Windows XP to inherit the computer name from DHCP, as far as I know. It CAN be done with a vbscript, though. I wrote one that you could probably adapt to your purpose that you can find here:

http://www.douglashammond.com/resources/DHCP_hostname_changer.vbs

It's ugly and clunky, and but it worked for me. If you have any feedback or improvements on it, I'd like to hear from you.
 

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