Removing DHCP options 66 and 67 for WDS PXE booting

When our Specops Deploy customers run into errors during PXE boot, the likely culprit is often DHCP scope options 66 and 67. Aside from Microsoft not supporting the use of the aforementioned options to redirect PXE clients, it can be limiting as it will not work when there are UEFI and BIOS based machines on the same network. When DHCP options 66 and 67 are configured, all PXE clients download and boot the same Network Boot Program, thus hindering support for different architectures.

The Specops recommendation is to delete the DHCP scope options 66 and 67, configure IP Helpers on the switches. Here is a small script that can take care of removing the scopes:

@Echo off

netsh dhcp server \dhcp.server.domain.com dump | findstr /i /c:"com Add Scope" > c:tempAllscopes.txt  

setlocal ENABLEDELAYEDEXPANSION  

for /F "Tokens=1-10" %a in (c:tempAllscopes.txt) do (   

REM NOTE: IT's just showing what would be done. No actual change is done right now!! 

REM NOTE: Remove ECHO from these two lines to make the script active.  

echo netsh DHCP Server \dhcp.server.domain.com Scope %f Delete OptionValue 66

echo netsh DHCP Server \dhcp.server.domain.com Scope %f Delete OptionValue 67 

) 

del c:tempAllscopes.txt

# End of Script

Of course, you will need to replace dhcp.server.domain.com with the FQDN of your DHCP Server.

(Last updated on October 30, 2023)

Tags: ,

johan soderstom

Written by

Johan Soderstrom

Author at Specops Software

Back to Blog

Related Articles

  • How to find the right drivers in OS deployment

    When you are deploying an operating system in Specops Deploy, you start with creating the make, model and OS driver folders tree. Many people want to jump to importing drivers, but it’s important to understand how to find the right driver in OS deployment first. The scenario Ok excellent, so you have created a beautiful…

    Read More
  • Deploy / OS Training Series (part 1): Environmental Preparations

    Specops Deploy has been designed from the ground up to utilize and integrate with your existing Windows environment. This offers customers unique advantages such as fast implementation, and native scalability. Most importantly, your Specops Deploy environment will be as stable, and reliable as your Windows environment. The Training Series will provide you with all the…

    Read More
  • Deploy / OS Training Series (part 2): Installation

    Welcome to part 2 of the Specops Deploy / OS training series. In part 1, we provided an overview of the environmental preparations. In this post, we will provide some supplemental information that can be used alongside the installation guide. Components Specops Deploy / OS consists of the following components: Image Server: Maintains operating system images…

    Read More