An Answer to Pre-staging Hell: Add Machines Directly from PXE Boot

Warning
This blog post is included for archival purposes and may contain outdated information. While it provides historical insights, we strongly recommend that you double-check the details before relying on any of the information outlined here.

When you are working with Windows Deployment Services, you can have specific images restored on specific images on your infrastructure. In order to do this, I thought you needed to have the machines pre-staged on the Active Directory. In order to pre-stage a machine, you need to obtain its GUID, which is a 32-character string that can be obtained when the machine is trying to PXE boot. The process of obtaining GUIDs is really excruciating. You need to mess around with BIOS settings so that the GUID will be displayed long enough for you to write it down.

You can also use scripts (given that your target machine has a valid OS installed), but the script sometimes reverses the numbers, and this makes it painful, cumbersome, and error prone.

After messing today with WDS, I found out that wdsutil can be given an /ID switch when specifying to deploy an image. ID is the MAC address OR the GUID of the machine you are trying to target.

A MAC address is WAY easier to write down than a GUID, so you can use that switch and forget about pre-staging, WDS will do it for you! So this is what you have to do:

  1. Pre-stage a machine but just give it a name, do not specify its GUID or a RIS server
  2. From wdsutil specify the ID switch followed by the MAC address
  3. Specify the management server
  4. Boot target machine, voilá, it will load PXE boot into your deployment image

Now, I am very close to finding out how to add machines to the AD at deploy time by just having them automatically added at boot time, but I keep getting and Access Denied error when approving them – will post more on this if I can pull it off.

About Author

Christian Saborio

Christian is a seasoned computer engineer with a rich career spanning collaborations with industry leaders such as Artinsoft (now Mobilize.net), Microsoft, HP, and Intel. As a technical evangelist and trainer, Christian honed his expertise in Costa Rica and Seattle, delivering impactful solutions and sharing his knowledge.

Now based in Sydney, Australia, Christian channels his passion into web development, leading a talented team to tackle diverse projects with innovation and precision. His commitment to crafting exceptional digital experiences reflects his deep-rooted enthusiasm for technology and problem-solving.

Comments

  1. Pieterjan Heyse says:

    Any progress on this yet? We are currently evaluating WDS, but really do need auto-naming of our systems. Prestaging seems to be the way to go.

Comments are closed

Thank you for your interest. Please fill out this form to provide us with your contact information. We'll get back to you as soon as possible.