The following example script can be used to extract the files from the Windows 10 ADK. It must be run on a standard Configuration Manager primary site server that has the Windows 10 ADK installed.
It extracts the required ADK files and copies them to the specified location.
If the script were saved as ExtractADK.cmd
and you have created a folder called C:\ADKFiles
to receive the extracted files, the command line syntax would be:
ExtractADK.cmd C:\ADKFiles |
The script assumes that ADK is installed in "C:\Program Files (x86)\Windows Kits\%WINVER%". For Windows 10, WINVER=10. If you have ADK installed at in a different location then you will need to modify the script accordingly. |
@ECHO OFF IF %1.==. GOTO :INPUTERROR SET TARGETPATH=%~dpn1 SET WINVER=10 call "C:\Program Files (x86)\Windows Kits\%WINVER%\Assessment and Deployment Kit\Deployment Tools\DandISetEnv.bat" imagex /unmount "%tmp%\winpe" rd "%tmp%\winpe" /s /q md "%tmp%\winpe" md "%TARGETPATH%\Boot" md "%TARGETPATH%\Boot\x86" md "%TARGETPATH%\Boot\x64" md "%TARGETPATH%\Boot\Fonts" REM Extract x86 files imagex /mount "c:\Program Files (x86)\Windows Kits\%WINVER%\Assessment and Deployment Kit\Windows Preinstallation Environment\x86\en-us\winpe.wim" 1 "%tmp%\winpe" xcopy "C:\Program Files (x86)\Windows Kits\%WINVER%\Assessment and Deployment Kit\Windows Preinstallation Environment\x86\Media\Boot\boot.sdi" "%TARGETPATH%\" /y xcopy "C:\Program Files (x86)\Windows Kits\%WINVER%\Assessment and Deployment Kit\Windows Preinstallation Environment\x86\Media\Boot\Fonts\wgl4_boot.ttf" "%TARGETPATH%\Boot\Fonts\" /y xcopy "%tmp%\winpe\Windows\Boot\PXE\abortpxe.com" "%TARGETPATH%\Boot\x86\" /y xcopy "%tmp%\winpe\Windows\Boot\PXE\bootmgr.exe" "%TARGETPATH%\Boot\x86\" /y xcopy "%tmp%\winpe\Windows\Boot\PXE\pxeboot.com" "%TARGETPATH%\Boot\x86\" /y xcopy "%tmp%\winpe\Windows\Boot\PXE\pxeboot.n12" "%TARGETPATH%\Boot\x86\" /y xcopy "%tmp%\winpe\Windows\Boot\EFI\bootmgfw.efi" "%TARGETPATH%\Boot\x86\" /y imagex /unmount "%tmp%\winpe" REM Extract x64 files imagex /mount "c:\Program Files (x86)\Windows Kits\%WINVER%\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\en-us\winpe.wim" 1 "%tmp%\winpe" xcopy "%tmp%\winpe\Windows\Boot\EFI\bootmgfw.efi" "%TARGETPATH%\Boot\x64\" /y imagex /unmount "%tmp%\winpe" GOTO DONE :INPUTERROR ECHO Please specify the path to where to create TFTPRoot files ECHO. ECHO Example: %0 C:\temp\pxebootfiles ECHO. GOTO :EOF :DONE CD /D %TARGETPATH% |
The updated ADK files must be deployed to PXE Everywhere Agents, into their TFTPROOT directory, along with the 1E PXE Everywhere boot images.
Deploying 1E PXE Everywhere boot images is described in Preparing and deploying 1E PXE Everywhere boot images.
By default, TFTPROOT is %ALLUSERSPROFILE%\1E\PXEEverywhere\TftpRoot
The 1E PXE Everywhere boot images should be found in an \Images folder relative to TFTPROOT.