We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you a podcast all about Citrix Workspace, moving to the cloud, and analytics & intelligence. Episode 2 coming soon!Listen Now


Set Windows Hostname at Boot Time

mistagitar asked
Medium Priority
Last Modified: 2012-06-27
Is there a way to set the Windows XP hostname at boot time, or after the system is booted but without having to reboot?

We are working on a way to image systems over a network (like Rembo).  So far the only snag is that the hostname needs to be different on each machine, or Windows squacks "Duplicate hostname on network."

So, after the image is downloaded to the machine off the network, I'm looking for a way to set the hostname from say, a file that resides on a static partition of the client drive.

Any ideas?  Thanks!
Watch Question


Thanks for the suggestion, wigmanw.  One of their other products looks more like what we're going for:


We are aware that such solutions already exist, but would rather create our own as a cost-effective alternative....   and for the fun of it  :-)

This hostname snag is the last kink to work out (this week).

If you're using ghost to image, run ghostwalker after you image.
use the /cn switch to generate or change the computer name and the /sure switch to ensure no prompting
According to the above site,
"Because both Ghost.exe and Ghost Walker run in DOS, changing the SID with Ghost Walker does not require an additional restart."


Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.