Latest update

6/recent/ticker-posts

Windows Deployment Services PXE Boot Configuration

Most organizations have the need to have an automated way to deploy Windows images to clients. Instead of walking around with a USB key that clients must be booted from, using Preboot Execution Environment (PXE) is a great way to boot Windows clients from the network, pull down an image, and apply an image, all from the network. Windows Deployment Services (WDS) provides a way to answer PXE requests and provide Windows images to clients for provisioning. Let’s take a look at Windows Deployment Services PXE boot configuration and see how you configure your Windows Deployment Services server to properly answer PXE boot requests.

What is Windows Deployment Services?

Windows Deployment Services (WDS) alows you to deploy Windows operating systems over the network, without needing to pull the OS from a CD, DVD, or USB key. This provides many benefits to IT admins, including:

  • Network-based installation of Windows
  • Images can be deployed for many different versions of Windows, from Windows 7 to Windows 10 and also Windows Server operating systems
  • It makes use of standard Windows technologies such as the Windows Preinstallation Environment (WinPE).
  • Allows creating images of a reference computer using the Image Capture Wizard
  • Allows adding customized drivers

Windows Deployment Services PXE Boot Configuration

Now, let’s get to the topic at hand – Windows Deployment Services PXE boot configuration. What is involved in configuring your WDS server to answer a PXE boot request? It is actually fairly straightforward to get up and running with WDS and PXE boot. However, I wanted to detail a couple of issues I have seen in the lab and elsewhere.

First let’s consider a few screenshots of the following processes:

  • Installing Windows Deployment Services
  • Configuring Windows Deployment Service
  • PXE considerations for BIOS and UEFI
  • Creating a capture image

Installing and Configuring Windows Deployment Services (WDS)

You can easily install the role service for Windows Deployment Services by using the following PowerShell command:

Install-WindowsFeature –Name WDS -ComputerName <computer_name> -IncludeManagementTools

You may see what looks to be an error at the end of running this script. However, it simply indicates you need to run the configuration of WDS to configure the role.

Installing Windows Deployment Services in Windows Server 2019
                    Installing Windows Deployment Services in Windows Server 2019

Once you have installed the WDS role, you need to configure it. Open the WDS management console, wdsmgmt.msc.

Launch the Windows Deployment Services Configuration Wizard by right-clicking on the server and selecting to configure it. The first screen has you select how you want tto have WDS integrated with Active Directory or if you want it to be a standalone box.

Selecting the WDS install options
                                        Selecting the WDS install options
Select your RemoteInstall folder for WDS
                                    Select your RemoteInstall folder for WDS
                                        Select how you want the server to respond to clients initially
Operation completes select how you want to add images
                                Operation completes select how you want to add images
WDS is now initialized and configured to start serving out images
                        WDS is now initialized and configured to start serving out images
Configuring the properties of the WDS server
                            Configuring the properties of the WDS server

There are many configuration items under the WDS properties. You can tweak and configure most aspects of the service. If you selected to not respond to clients during the initial setup, the PXE Response tab is where you can configure your PXE options.

Decide how WDS responds to clients for PXE requests
        Decide how WDS responds to clients for PXE requests

Adding Install and Boot Images

The next step in Windows Deployment Services PXE boot configuration is adding your images. The images consist of an install and boot image. Right-click on the install images node and select to Add Install Image. You will first be asked to create an image group.

Create an image group
                                                Create an image group

Select your install.wim file from the Windows 10 media or a custom image file you want to use.

Select an install image you want to use with WDS
                                    Select an install image you want to use with WDS

Verify the source of the image.

Add the image file source
                                            Add the image file source

In the case of a DVD ISO, you may have several Windows 10 images as part of the ISO. Select the one you want to add to the server.

Select the image from the available images
                                Select the image from the available images

Verify the images in the Summary screen.

Add image summary
                                                                        Add image summary

The image is added successfully.

Install image adds successfully
                                                    Install image adds successfully

Do the same process for the boot image. The boot image is the listing you will see and boot from when you boot using PXE on a client workstation.

Add a boot image to WDS
                                            Add a boot image to WDS

Once you have a boot image uploaded, you can create a capture image as well. The capture image is an image that allows you to capture the present state of a machine – known as “build and capture.”

Create a capture image from a boot image
                                            Create a capture image from a boot image

Below is an example of booting from a Windows Deployment Services capture image.

Windows Deployment Services Capture Image boot
                            Windows Deployment Services Capture Image boot
Windows Deployment Services directory to capture
                            Windows Deployment Services directory to capture

PXE configuration for BIOS and UEFI

For the most part, it is pretty easy to configure WDS for PXE. Most of the default settings will work fine in most environments. There are some caveats when you have WDS loaded on the same server as DHCP.

There are differences between the configuration for BIOS and UEFI PXE boot. Some have noted more problems with UEFI boot. In my lab environment, I found a few settings that worked for me. These included adding options 66 and 67 to DHCP scope options. There are many posts that point to this no longer being recommended. Each environment may be different and your mileage may vary.

DHCP Scope options for UEFI
                                                DHCP Scope options for UEFI

I also found on my WDS server, the x64uefi folder under the Boot folder was missing the other files found in the x64 folder. I copied these from there into the x64uefi folder and this resolved an issue I had where the machine would not boot over UEFI.

Make sure files are in the right place for x64UEFI in WDS
                        Make sure files are in the right place for x64UEFI in WDS

Integration with Microsoft Deployment Toolkit

The Microsoft Deployment Toolkit (MDT) is often used in conjunction with WDS. In fact, you will notice most of the above screenshots from my lab are pointing to MDT as the server name. I have WDS and MDT dual-homed on a single server and this works fine. It some respects it makes things easier as the directories are local, etc.

MDT is a great way to extend your WDS server capabilities as MDT provides more robust imaging and “task sequence” based image installs that provide additional features and capabilities in the enterprise that most organizations can benefit from.

MDT is freely available from Microsoft as well and is a simple package that you install along with the Windows Assessment and Deployment toolkit.

Download MDT from Microsoft
                                    Download MDT from Microsoft

MDT comes with what is referred to as Lite touch PE boot images that provide many capabilities out of the box. The single Lite Touch image provided by MDT can serve to both deploy and capture images.

Final Thoughts

Hopefully this Windows Deployment Services PXE Boot Configuration overview and guide of various technologies will help give an overall picture of the solutions provided by Microsoft for imaging and some of the considerations for PXE boot.

Post a Comment

0 Comments