Integrating MDT 2012 with Microsoft DaRT

I have found two ways of integrating MDT and DaRT.

Option 1: The first is deploying DaRT to the OS as replacement for the built in Windows Recovery Environment (WinRE).
Option 2: The second is to include DaRT as a boot option on the MDT splash screen.

Both Options assume you have installed DaRT 7.0 onto a test machine and have created media containing all user options. For Option 1 you will need to mount the created dart70.ISO file and extract the boot.wim file.

Option 1:
This sequence is taken from the Microsoft Technet video (because I never have the sound on in work!)

1. Create a BDE_Show.txt document within your DeploymentShare\scripts folder. Enter the following information (corrected from the video – partition 1 not 2)
Select Disk 0
Detail Disk
Select Partition 1
Assign Letter =S
Detail Disk
Exit

2. Create a BDE_Hide.txt document in the same place, Enter the following information
Select Disk 0
Detail Disk
Select Partition 1
Remove Letter =S
Detail Disk
Exit

3. Copy the DaRT boot.wim to the deploymentshare\scripts folder and rename it to WinRE_x64.wim

4. Create a new folder names “Deploy DaRT 7.0” within the Task Sequence (during State Restore) and add the following sections with the necessary configuration

Add New Command Line
Name: Assign Driver Letter to BDE Drive
Command Line: Diskpart.exe /s “%scriptroot%\BDE_Show.txt

Add New Command Line
Name: Create Folder on BDE Drive
Command Line: cmd /c mkdir S:\Recovery\WindowsRE

Add New Command Line
Name: Copy DaRT Image to BDE Drive
Command Line: cmd /c copy “%ScriptRoot%\WinRE_x64.wim” “S:\Recovery\WindowsRE\WinRE.wim” *****Note the name change to the .wim!!!*****

Add New Command Line
Name: Check WindowsRE Configuration
Command Line: reagentc.exe /info
Start In: C:\Windows\System32

Add New Command Line
Name: Disable Current WindowsRE Configuration
Command Line: reagentc.exe /disable
Start In: C:\Windows\System32

Add New Command Line
Name: Set DaRT as WindowsRE Image
Command Line: reagentc.exe /setreimage /path S:\Recovery\WindowsRE
Start In: C:\Windows\System32

Add New Command Line
Name: Enable DaRT WindowsRE Image
Command Line: reagentc.exe /enable
Start In: C:\Windows\System32

Add New Command Line
Name: Remove Drive Letter from BDE Drive
Command Line: Diskpart.exe /s “%scriptroot%\BDE_Hide.txt

5. The BDE Partition also needs to be expanded to 500MB. Add the following line to the customsettings.ini file
BDEDriveSize=500

Option 2:
1. From the DaRT media copy the tools.cab file into \\deployment\deploymentshare$\tools\x64 folder (or x86)
2. Open the Deployment Share, WinPE tab and select x64, Features
3. You will see the Microsoft Diagnostic and Recovery Toolset as an option
4. Check the box and then update the Deployment Share. Ensure you select the “Regenerate from Scratch” option or you may get the Command Prompt hanging during boot.
5. Now when you boot to MDT there should be a DaRT option on the splash screen. This will not appear if you have the “SkipBDDWelcome=Yes” enabled.

AIK/DISM & MDT Version Numbers

WAIK:  1.0 version number ?? – First Vista release
WAIK:  1.1 version number 6.0.6001.18000 – Windows Vista SP1
WAIK : 2.0 version number 6.1.7100.0 – Windows 7
WAIK : 3.0 version number 6.1.7600.16385 – Windows 7 SP1

MDT: MDT 2008 version number 4.1.???????
MDT: MDT 2008 Update 1 version number 4.2.523.40
MDT: MDT 2010 version number 5.0.1641.0
MDT: MDT 2010 Update 1 version number 5.1.1642.1
MDT: MDT 2012 Beta 1 version number 6.0.1763.0

Credit to http://www.msitpros.com

MDT Customsettings

[Default]
DeployRoot=\deploymentDeploymentShare$
OSDComputername=%computername%
SkipBDDWelcome=YES
UserID=adminaccount
UserPassword=****
UserDomain=
JoinDomain=
DomainAdminDomain=
DomainAdmin=Services
DomainAdminPassword=****
SkipAppsOnUpgrade=YES
SkipCapture=NO
SkipAdminPassword=YES
SkipProductKey=YES
SkipLocaleSelection=YES
SkipTimeZone=YES
SkipDomainMembership=YES
SkipUserData=YES
skipBitLocker=YES
SkipSummary=NO
TimeZoneName=GMT Standard Time
TimeZone=85
UserLocale=en-GB
UILanguage=en-US
keyboardLocale=0809:00000809
_SMSTSORGNAME=RMGS
OSInstall=Y