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.

Server Core – Promote to Domain Controller

To carry out a successful dcpromo under Server Core you will need an answer file. Not all settings shown in the answer file below are needed (DNS server, GC etc)

[DCInstall]
ReplicaOrNewDomain=Replica
ReplicaDomainDNSName=cobranet.com
SiteName=SiteA
InstallDNS=Yes
ConfirmGc=Yes
CreateDNSDelegation=Yes
DNSDelegationUserName=adcobranet\sysadmin
DNSDelegationPassword=*******
UserDomain=cobranet.com
UserName=cobranet.com\stuartconey
Password=*********8
ReplicationSourceDC=dc1.cobranet.com
DatabasePath=”D:\NTDS”
LogPath=”E:\NTDS”
SYSVOLPath=”D:\SYSVOL”
SafeModeAdminPassword=*********

Full MS article here
http://support.microsoft.com/kb/947034

Server Core: Demoting a Domain Controller

To demote with a single command (assuming all default answers)

dcpromo /administratorpassword:password

To demote with alternate settings, options are:

The following is a list of unattend parameters for demotion (default values are enclosed in <>):

/AdministratorPassword:”administrator password” default is empty password

Specifies a local administrator account password when demoting a domain controller.

/DemoteFSMO:{Yes | <No>}

Indicates that (forced) demotion should continue even if a FSMO role is discovered on domain controller being demoted.

/DNSDelegationPassword:{“password” | *}

Specifies the password for the user name (account credentials) to use for creating or removing DNS delegation. Specify * to prompt the user to enter credentials.

/DNSDelegationUserName:”user_name”

Specifies the user name (account credentials) used for creating or removing DNS delegation. If no value is specified, the credentials used for the domain controller installation or removal are used.

/IgnoreIsLastDcInDomainMismatch:{Yes | <No>} default causes the wizard to prompt the user to continue and causes the command-line tool to exit with an error.

Specifies whether to continue the demotion of the domain controller when either the switch /IsLastDCInDomain:Yes is specified and dcpromo detects that there is actually another active domain controller in the domain, or when the switch /IsLastDCInDomain:No is specified and dcpromo cannot contact any other domain controller in the domain.

/IgnoreIsLastDNSServerForZone:{Yes | <No>}

Specifies whether to continue demotion despite that the domain controller is the last DNS server for one or more of the Active Directory-integrated DNS zones that it hosts.

/IsLastDCInDomain:{Yes | <No>}

Specifies whether the computer which is being demoted is the last domain controller in the domain.

/Password:{“password” | *}

Specifies the password corresponding to the user name (account credentials) used for the operation. Specify * to prompt the user to enter credentials.

/RebootOnCompletion:{<Yes> | No}

Specifies whether to restart the computer upon completion, regardless of success.

/RebootOnSuccess:{<Yes> | No | NoAndNoPromptEither}

Specifies whether to restart the computer upon successful completion.

/RemoveApplicationPartitions:{Yes | <No>}

Specifies whether to remove application partitions during the demotion of the domain controller.

/RemoveDNSDelegation:{<Yes> | No}

Specifies whether DNS delegations pointing to this DNS server should be removed from the parent zone.

/RetainDCMetadata:{Yes | <No>}

Specifies to retain domain controller metadata in the domain after AD DS removal. Delegated read-only domain controller (RODC) administrators should specify this option to demote an RODC.

/UserDomain:”domain_name”

Specifies the domain name for the user name (account credentials) used for the operation. It also helps to specify the forest where you plan to install the domain controller or create an RODC account. If no value is specified, the domain of the computer will be used.

/UserName:”user_name”

Specifies the user name (account credentials) used for the operation. If no value is specified, the credentials of the current user are used for the operation.

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

Boot image disappearing from WDS

There is an issue with boot images disappearing from the WDS console once you have closed the console. This is usually when you have added drivers to the boot.wim using the AIK.

Answer: Ensure you are mounting the correct Index before injecting drivers. You need to select Index 2 rather than Index 1 when using a boot.wim from Windows 7/2008 media. Index 1 is for WinPE only.