In this blog I will show how to integrate MsDaRT with SCCM Boot Image. Dart integration with Boot Image allows you to connect remotely to a system during WinPE phase when OS deployment is running. We are going to create a custom MDT boot image using SCCM and injecting Dart utility.
What is MsDart
Dart stands for Diagnostics and Recovery Toolset, latest version is DaRT 10. DaRT is part of Microsoft Desktop Optimization Pack (MDOP) 2015. Once DaRT utility is added to to boot image you can remotely connect the system during WinPE phase during OSD which makes service desk team / engineer easy to connect and troubleshoot issues related to OS deployment.
Pre-requisites for adding DaRT to Boot Image requirement
- To integrate DaRT into boot image you need to have DaRT10 installer (MSDaRT100.msi) which is available as part of MDOP, you can download MDOP through:
- You need to have MDT integrated with SCCM as we have to create MDT Boot Image using MDT through SCCM console.
Extract MSDaRT100.msi and copy files to MDT folder
Mount previously download MDOP 2015 iso which contains AGPM, App-V, DaRT, MBAM, MED-V, UE-V. Navigate to Z:\DaRT\DaRT 10\Installers\en-us\x64 and install MSDaRT100.msi. Default location used would be c:\Program files\Microsoft DaRT.
Under Setup Options, it will show all 3 tools which are going to install ie Crash Analyzer, DaRT Recovery Image and most important one DaRT Remote Connection Viewer.
Once installed, copy Toolsx64.cab from DaRT installation directory to MDT tools x64 installation directory.
Copy C:\Program Files\Microsoft DaRT\v10\ToolsX64.cab to D:\Program Files\Microsoft Deployment Toolkit\Templates\Distribution\Tools\x64
Do the same for Toolsx86.cab as well.
Copy C:\Program Files\Microsoft DaRT\v10\Toolsx86.cab to D:\Program Files\Microsoft Deployment Toolkit\Templates\Distribution\Tools\x86
Create Boot Image using SCCM / Configuration Manager
Login to SCCM Server, launch Configuration Manager console. Navigate to Software Library > Overview > Operating Systems > Boot Images.
Right click Boot Image and select Create Boot Image using MDT.
Under Package Source page, specify the package source directory that will store the new boot image, click Next.
Under General Settings page, provide the name of the Boot Image, click Next.
Under Options, specify the details for this new boot image and select platform as x64, click Next.
Under Components page, specify the optional Windows PE feature packs to add to the boot image. Following options is to be selected:
Microsoft Data Access Components(MDAC/ADO) support
Microsoft Diagnostics and Recovery Toolkit (DaRT)
2nd option will only be visible if Toolsx64.cab is properly copied to MDT packages tools\x64 location.
Under Customization page, make sure Enable command support (F8), click Next.
Verify the details under summary and click Next.
Creation of Boot Image process will start by mounting the wim, injecting and adding all the required components.
Confirmation page will appear, click on Finish to exit.
Right click newly created boot image and select Properties. Click on tab Optional Components. We are going to install few additional components which are very useful during WinPE phase such as:
Windows PowerShell (WinPE-DismCmdlets)
Windows PowerShell (WinPE-StorageWMI)
Microsoft .NET (WinPE-NetFx)
Windows PowerShell (WinPE-PowerShell)
Click on Startburst icon and add the components as mentioned, click OK to exit.
select tab Customization, enable prestart command with following command line:
powershell "Start-Process -WindowStyle Minimized -FilePath RemoteRecovery.exe -ArgumentList '-nomessage'"
As this is a prestart command, this will make sure to launch RemoveRecovery.exe tool once boot image is loaded. We can skip this prestage command and alternatively use the task sequence cmd line, but Task sequence editing approach requires to edit all existing task sequences, hence I preferred adding it as prestart command.
Select tab Data Source, check the box Deploy this boot image from the PXE-Enabled distribution point.
Click on OK which will initiate the Update of Boot Image process, click Next to continue without selecting the option Reload this boot image as we will loose all customization done in the boot image.
Verify the Summary, and click Next to generate the Boot Image.
Once done, distribute the boot Image on distribution point and use this latest boot image for all your task sequence deployments.
Verify DaRT utility functionality
Boot bare metal system using PXE boot / Boot Media. Once Boot image is loaded you will be seeing RemoteRecovery.exe launched but in minimsed state as we use minimize parameter.
Click on the tools 1st left button to launch it. You will be able to see Remote Connection tool launched with Ticket Number, IP Address and Port assigned. Ticket Number and port will be always random with every pxe boot/boot media loading.
On SCCM server or any client system where MSDaRT100.msi is installed, launch DaRT Remote Connection Viewer which islocated at C:\Program Files\Microsoft DaRT\v10\DartRemoteViewer.exe
This will open New Remote Connection window, specify the Ticket Number, IP Address & Port as captured from previously booted Bare metal system.
And there you go, we are connected to remote system, where we can run the task sequence, press F8 to open cmd prompt and can perform all troubleshooting activities as we like.
Note: Once you are connected through Remote session, the actual user sitting in front of physical machine will loose the control. Disconnect the remote session to give back the control.