Monday, April 1, 2013

Step by Step: Replace default Recovery Image and integrate MS DaRT 8 into ConfigMgr 2012 OSD Image

Step by Step: Replace default Recovery Image and integrate MS DaRT 8 into ConfigMgr 2012 OSD Image

Scope

This document will detail the steps needed to replace the default recovery image of a Windows 7/8 machine with the MS DaRT 8 Recovery image and integrate it into a ConfigMgr 2012 Operating System Deployment Task Sequence.  I realize this process looks lengthy but it is very simple and again this is step by step so that draws it out a lot.


Prerequisites

1.       Windows 8 Pro or Enterprise (Must have to install MDOP 2012)

2.       DaRT Integration Script Download

3.       Windows 8 Assessment and Deployment Kit (ADK) Download

4.       Windows 8 Debugging Tools Download

5.       Microsoft Desktop Optimization Pack 2012 (MDOP) *Available as part of Microsoft Software Assurance and can be found on the Microsoft Licensing website

6.       Additional Drivers for NIC and HDD Controller (Drivers used for your OSD Boot Images)

Procedure

Install MDOP 2012 (The following steps are only for the DaRT install)

1.       From a Windows 8 Pro/Enterprise Machine (x64 works best)

a.       Install the ADK.

                                                               i.      The options needed is Deployment Tools and the Windows Preinstallation Environment (Windows PE)

b.      Install the Windows 8 Debugging Tools

                                                               i.      Welcome Screen

1.       Click Next

                                                             ii.      Specify Location

1.       Click Next

                                                            iii.      Join the Customer Experience Improvement Program

1.       Choose what fits best

2.       Click Next

                                                           iv.      License Agreement

1.       Click Accept

                                                             v.      Select the features you wish to install

1.       The only Required option is Debugging Tools for Windows

2.       Click Install

                                                           vi.      Complete

1.       Click Close

c.       Insert the MDOP disk and run .\launcher\launcher.hta from the CD

                                                               i.      From the installer choose Microsoft Diagnostics and Recovery Toolset

1.       Choose either Dart 8 32-bit or 64-bit (Must match the version of Windows you are running the install from)

a.       Welcome Screen

                                                                                                                                       i.      Click Next

b.      End User License Agreement

                                                                                                                                       i.      Select I Agree

c.       Microsoft Update

                                                                                                                                       i.      Choose which fits best for you

                                                                                                                                     ii.      Click Next

d.      Select Install Folder

                                                                                                                                       i.      Specify your install folder or accept defaults

                                                                                                                                     ii.      Click Next

e.      Setup Options

                                                                                                                                       i.      Select your options (I accept Defaults)

                                                                                                                                     ii.      Click Next

f.        Summary

                                                                                                                                       i.      Click Next

g.       Install

                                                                                                                                       i.      Click Install

Create a DaRT disk (The following steps must be done for 32-bit and 64-bit)

1.       From your Windows 8 Pro/Enterprise Machine (x64 works best)

a.       From the Start Screen select DaRT Recovery Image

                                                               i.      Welcome Screen

1.       Click Next

                                                             ii.      Windows 8 Media

1.       Specify what DaRT image you wish to create 64-bit or 32-bit

2.       Specify the path to the root of your Windows 8 Installation media

3.       Click Next

                                                            iii.      Tools

1.       Select all the tools you wish to include as part of your DaRT disk or Recovery Partition

a.      I leave out the Locksmith tool so Users cannot change the local administrator password if they get into the tools.

2.       Click Next

                                                           iv.      Remote Connection

1.       This will allow a Remote Assistance like view into the DaRT tools so you can recover a PC remotely (The Remote Viewer/Helper must have the DaRT Install previously listed completed and use the DaRT Remote Connection Viewer)

2.       Select what fits your environment best

3.       Click Next

                                                             v.      Advanced Options

1.       Drivers Tab

a.       Select any Network or HDD drivers you currently use as part of your PXE Boot Disk

2.       WinPE Tab

a.       Select what works best for you

                                                                                                                                       i.      We add WinPE-DismCmdlets, WinPE-Dot3svc, WinPE-EnhancedStorage, WinPE-FMAPI, WinPE-MDAC, WinPE-Netfx4,WinPE-Powershell3, WinPE-PPPOE, WinPE-scripting, WinPE-SecureBootCmdlets, WinPE-SecureStartup, WinPE-StorageWMI, WinPE-WDS-Tools, WinPE-WinRECfg, WinPE-WMI

3.       Crash Analyzer Tab

a.       Select Include the Windows 8 Debugging Tools

                                                                                                                                       i.      Browse to the install location from above

1.       Typically found under C:\Program Files (x86)\Windows Kits\8.0\Debuggers

4.       Defender Tab

a.       Select Download the latest definitions. (Recommended)

5.       Click Next

                                                           vi.      Create Image

1.       Choose Options that work best for you

a.      I choose defaults

2.       Click Create

                                                          vii.      Generate Files

1.       Click Next

                                                        viii.      Create Bootable media

1.       Do this if you need to make a DVD.  The follow steps will not require it

2.       Click Close

b.      At this point you are done creating your DaRT 8 Disks

ConfigMgr Integration

1.       From the Windows 8 Pro/Enterprise machine

a.       Navigate to the network share where you store your Application source files in ConfigMgr and create a folder called Microsoft DaRT 8

                                                               i.      Create a x86 and x64 directory under Microsoft DaRT 8

b.      Navigate to where the DaRT 8 files were created from the Create DaRT 8 Disk steps

                                                              i.      Make a copy of Boot.wim and Rename it to WinRE.wim

1.       Do this for both x86 and x64

                                                             ii.      Copy the WinRE.wim files to the appropriate directory you created for your application source files.

                                                            iii.      Copy the DaRT Integration script from the Prerequisites section to each Microsoft DaRT 8 application source files folder.

c.       At this point where you store your source files you should have an x86 and an x64 folder each with the appropriate WinRE.wim file and the DaRT Integration Script.

2.       From the ConfigMgr 2012 Console

a.       Navigate to Software Library à Application Management à Applications

                                                               i.      Click Create Application from the Ribbon

1.       General

a.       Manually Specify Application Information

                                                                                                                                       i.      Click Next

2.       General Information

a.       Fill in the info to best fit your environment

3.       Application Catalog

a.       Fill in the info to best fit your environment

4.       Deployment Types

a.       Click Add (you will do these steps 2x one for x86 and one for x64)

                                                                                                                                       i.      General

1.       Type:

a.       Script Installer

2.       Click Next

                                                                                                                                     ii.      General Information:

1.       Name:

a.       Microsoft DaRT 8 (x86) or (x64) *Ensure you only type one type

b.      Click Next

                                                                                                                                    iii.      Content

1.       Content Location:

a.       Browse to where you have the source files located

2.       Installation program:

a.       cscript.exe “DaRT Integration.vbs”

3.       Uninstall program

a.       Leave empty

4.       Click Next

                                                                                                                                   iv.      Detection Method

1.        Click Add Clause

a.       Setting Type

                                                                                                                                                                                                               i.      File System

b.      Type

                                                                                                                                                                                                               i.      File

c.       Path

                                                                                                                                                                                                               i.      C:\Windows\

d.      File or Foldername

                                                                                                                                                                                                               i.      DaRT    - This folder is created as part of the DaRT Integration Script

e.      Check This file or folder is associated

f.        Click OK

2.       Click Next

                                                                                                                                     v.      User Experience

1.       Installation behavior:

a.       Install for system

2.       Logon Requirement

a.       Whether or not a user is logged on

3.       Click Next

                                                                                                                                   vi.      Requirements

1.       Click Add

a.       Category

                                                                                                                                                                                                               i.      Device

b.      Condition

                                                                                                                                                                                                               i.      Operating System

c.       Operator

                                                                                                                                                                                                               i.      One of

                                                                                                                                                                                                             ii.      Select all OS versions that match the architecture of the DaRT image you are working on

d.      Click OK

2.       Click Next

                                                                                                                                  vii.      Dependencies

1.       Click Next

                                                                                                                                viii.      Summary

1.       Click Next

                                                                                                                                   ix.      Completion

1.       Click Close

b.      Do all steps from this sections 2.i.4.a to 2.i.4.b again for the other type (x86 or x64)

c.       Click Next

5.       Summary

a.       Click Next

6.       Completion

a.       Click Close

                                                             ii.      Highlight the new Microsoft DaRT 8 application

1.       Select Distribute Content from the Ribbon

a.       General

                                                                                                                                       i.      Click Next

b.      Content

                                                                                                                                       i.      Click Next

c.       Content Destination

                                                                                                                                       i.      Click Add

1.       Select which ever method you use when distributing content

                                                                                                                                     ii.      Click Next

d.      Summary

                                                                                                                                       i.      Click Next

e.      Completion

                                                                                                                                       i.      Click Next

                                                            iii.      At this point you should have a Microsoft DaRT 8 Application created and distributed to your Distribution Points or Groups

b.      Navigate to Software Library à Operating Systems à Task Sequences

                                                               i.      Highlight your Operating System Deployment Task Sequence

                                                             ii.      Click Edit from the Ribbon

1.       Highlight Setup Windows and Configuration Manager

a.       Click Add à General à Install Application

b.      Name:

                                                                                                                                       i.      Microsoft DaRT 8 Integration

c.       Click the YELLOW *

                                                                                                                                       i.      Locate the Microsoft DaRT 8 application

                                                                                                                                     ii.      Click OK

2.       At this point you can close out of the task sequence and everything should be ready to test.

 

13 comments:

  1. Hi Tom, If DaRT8 is deployed as an Application, does that mean it can only be accessed from Windows OS and cannot be booted into?

    What if Windows OS crashes and you need to boot into DaRT8 for repairs?

    ReplyDelete
    Replies
    1. No the application is SCCM's new deployment method. It will overwrite the existing recovery partition with DART. The only gotcha is it cannot be done using an application and the script if the machine is already running bitlocker. It can be put into the OSD task sequence though before the disk encryption if you wish to use bitlocker during an OS build

      Delete
  2. Can this be used with Bit-locker?
    We are using MDT to deploy win7 enterprise X64 bit images to laptops and desktops, all laptops are getting Bit-locker we enable it during MDT process or after imaging.

    ReplyDelete
    Replies
    1. As long as you put the Dart 8 steps before the Bitlocker steps in the task sequence you will be fine. After bitlocker is enabled I am not sure what steps would need to be taken.

      Delete
  3. Hi, can DaRT be scripted to run automatically the wipe tool?

    ReplyDelete
    Replies
    1. I am sure it could be but do not have the steps that would be required at this point. If I get time ill look into it.

      Delete
  4. So, would the task sequence only have "Setup Windows and Configuration Manager" and directly after the "install application" and DaRT should boot in WinPE?

    ReplyDelete
    Replies
    1. This is to replace the standard recovery image with Dart so after you image a machine you can have the dart tools integrated. This is not to run dart from a task sequence

      Delete
  5. Hi,

    Finally! After long research I fall on your article. I will investigate that tomorrow. I am frustrated by the lack of information to create a boot image with Dart tools ... Nobody really knows or explain .. Maybe you!

    ReplyDelete
  6. Hello,
    I have a problem to generate the image 8.0 or 8.1... Please see the error here : http://imageshack.com/a/img713/1599/6p42.jpg

    Can you help me ?

    ReplyDelete
    Replies
    1. Sorry I have not checked back in a while. I did not create the recovery image using any wizard. I just took the dart boot.wim file in the ISO and renamed it to Winre.wim and had the task sequence run a few command line options to replace the default recovery image. I would explain more if you have any specific questions on it.

      Delete
  7. Tom,
    Should DaRT tools show up under troubleshooting when i boot into safe mode in win8.1? I am not seeing the option so trying to figure out what i did wrong. thanks. great article

    ReplyDelete
  8. They should not show up in Safe Mode. They should be part of the Repair my computer option.

    ReplyDelete