Building A Windows 10 v1809 Reference Image Using Microsoft Deployment Toolkit
Building A Windows 10 v1809 Reference Image Using Microsoft Deployment Toolkit
Share
Tweet
Share
Here is a step-by-step quick guide on building the perfect Windows 10 v1809 reference image using MDT 8450, Windows
ADK 10 v1809, and WinPE Addon for Windows ADK 10 v1809. If you are looking for a Windows 7 version of this guide,
MDT-2013-Update-2
Note: Since back in the Windows Vista timeframe, there is no technical requirement to create reference images in order
to deploy Windows. The main reason for doing it is just deployment speed, and to some extent network efficiency (WIM
images are highly compressed). However, in a world with better and better peer to peer solutions, you can make
MDT01. MDT 8450 requires Windows ADK 10 v1709 or later, but for Windows 10 v1809 you should use Windows ADK
10 v1809, and the WinPE Addon for Windows ADK 10 v1809. I also recommend to download the various Visual C++
In this guide I also assume that you have a local WSUS server in your network, to which you have approved Windows 10
updates, Feature Packs (to get Microsoft .NET Framework updates) and Developer Tools, Runtimes and Redistributables
Note: If you want to build a Windows 10 reference image for a virtual environment, like SCVMM, simply follow this guide
to get the WIM file, and then use the Convert-WindowsImage.ps1 script on TechNet Script Center / Gallery to convert it to
Note: Visual C++ runtimes 2005 and 2008 are not included since they are no longer supported, and doesn't get any
security updates.
Step-by-Step Guide
The entire process for creating a Windows 10 image using MDT takes about 40 – 60 minutes, fully automated. The initial
setup of the solution takes about 30 – 45 minutes if done manually, and about 10 minutes if scripted. This guide covers
Step 1 – Install Windows 10 ADK v1809, WinPE Addon for Windows ADK 10 v1809, and MDT 8450
Step 2 – Create the MDT Build Lab Deployment Share
Step 3 – Import the Windows 10 v1809 operating system
Step 4 – Add applications
Step 5 – Create the MDT Task Sequence
Step 6 – Configure the deployment share
Step 7 – Create Windows Reference Images
1. On MDT01, install Windows 10 ADK v1809, and select the following components:
Deployment Tools
Imaging and Configuration Designer (ICD)
Configuration Designer
User State Migration Tool (USMT
Windows ADK 10 v1809 Setup when installed on Windows Server 2019.
2. Install WinPE Addon for Windows 10 ADK v1809, and select the following component:
Windows Preinstallation Environment (Windows PE)
ult settings.
d. Options:
2. Once the deployment share is created you also want to relax the security a bit. MDT locks it down to hard by default.
Use the following PowerShell script to set some better permissions (modify script to fit your
environment): http://github.com/DeploymentResearch/DRFiles/blob/master/Scripts/Set-MDTBuildLabPermissions.ps1
Note: The Windows 10 v1809 media comes with many Windows version, in the below example I simply removed all but
quite frankly, you are installing Windows 10 to run apps, and many apps are depending on one or more of these runtimes.
As you probably know, there are x86 and x64 versions of the runtimes, and for Windows 10 x64, you need both.
Note: Visual C++ 2015 is included in Visual C++ 2017, so you only need to install Visual C++ 2017.
For the Visual C++ runtimes, you make the install a bit easier by using a VBScript wrapper that installs all of them.
3. Using the Deployment Workbench, expand Deployment Shares / MDT Build Lab / Applications and create a folder
named Microsoft.
4. Right-click the Microsoft folder, and select New Application. Use the following settings for the New Application
Wizard:
Application with source files
Publisher:
Application name: Install – Microsoft Visual C++ – x86-x64
Version:
Source Directory: C:\Setup\Install – Microsoft Visual C++ – x86-x64
Specify the name of the directory that should be created: Install – Microsoft Visual C++ – x86-x64
Command Line: cscript Install-MicrosoftVisualC++x86x64.wsf
Working directory:
5. Download the WSUS reference cleanup script (Script to clear WSUS references from the
CleanWSUSConfig.
6. Using the Deployment Workbench, expand Deployment Shares / MDT Build Lab / Applications and create a folder
named ViaMonstra.
7. Right-click the ViaMonstra folder, and select New Application. Use the following settings for the New Application
Wizard:
Application with source files
Publisher:
Application name: Action – Clean WSUS Config
Version:
Source Directory: C:\Setup\Action-CleanWSUSConfig
Specify the name of the directory that should be created: Action – Clean WSUS Config
Command Line: cscript Action-CleanWSUSConfig.wsf
Working directory:
Action – Clean WSUS Config application added to MDT.
the either via the MDT Build Lab deployment share properties, or directly in the file system, in the E:\MDTBuildLab\Control
Note: In my environment, my WSUS server is named WSUS01, and I'm using the default WSUS port in Windows Server
Bootstrap.ini
[Settings] Priority=Default
[Default] DeployRoot=\\MDT01\MDTBuildLab$
UserDomain=VIAMONSTRA
UserID=MDT_BA
UserPassword=P@ssw0rd
SkipBDDWelcome=YES
CustomSettings.ini
[Settings] Priority=Default
[Default] _SMSTSORGNAME=ViaMonstra
UserDataLocation=NONE
ComputerBackupLocation=NETWORK
DoCapture=YES
OSInstall=Y
AdminPassword=P@ssw0rd
TimeZoneName=Pacific Standard Time
JoinWorkgroup=WORKGROUP
HideShell=NO
FinishAction=SHUTDOWN
WSUSServer=http://wsus01.corp.viamonstra.com:8530
ApplyGPOPack=NO
BackupShare=MDT01MDTBuildLab$
BackupDir=Captures
SkipAdminPassword=YES
SkipProductKey=YES
SkipComputerName=YES
SkipDomainMembership=YES
SkipUserData=YES
SkipLocaleSelection=YES
SkipTaskSequence=NO
SkipTimeZone=YES
SkipApplications=YES
SkipBitLocker=YES
SkipSummary=YES
SkipRoles=YES
SkipCapture=NO
SkipFinalSummary=YES
Resources
Note: Please also check these posts:
https://deploymentresearch.com/615/Fixing-why-Sysprep-fails-in-Windows-10-due-to-Windows-Store-updates
Remove WSUS configuration before capturing a Reference Image with MDT (by @NickolajA )
http://www.scconfigmgr.com/2014/12/29/remove-wsus-configuration-before-capturing-a-reference-image-with-mdt/
Image Factory
Automate this process even further (you still need to do the step in this guide first), check out the Image Factory for
http://github.com/DeploymentBunny/ImageFactoryV3ForHyper-V