Set Windows Hostname at Boot Time

Posted on 2006-03-22
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!
Question by:mistagitar

    Expert Comment


    Author Comment

    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).

    LVL 9

    Accepted Solution

    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."


    Featured Post

    Courses: Start Training Online With Pros, Today

    Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

    Join & Write a Comment

    Ok I have been working on this for some time having learned and gained certification in XenDesktop 4 along came version 5 which was released last month. Since then I have been working to deploy XenDesktop 5 in a small environment with only 2 virt…
    If your system is showing symptoms of browser hijacks or 'google search redirects' check out my other article ( first and run the tool TDSSKiller ( to get rid of the infection. Once done, and if the …
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now