Walid Hegazy

How To Do :) IT

Windows 8 Migration & Deployment Using MDT 2012 update 1

2 Comments

 

Before we begin, let’s cover some basics. In short, there are three possible ways for Windows 8 deployment:

  1. Manual deployment
  2. Semi-automated deployment, aka Light Touch Installation or LTI
  3. Fully-automated deployment, aka Zero Touch Installation or ZTI

Manual Deployment: A manual deployment is something that could happen in homes and really small-to-medium business environments. This approach involves taking a backup of the data, reinstalling the PC by starting a manual setup of Windows 8 (DVD, ISO, etc.), and restoring the user data. This is rather time-consuming, and I personally think it is a bit outdated. Even so, this is still a very good solution for all PC environments with less than ten machines.

Light Touch Installation (LTI): Light Touch Installation means you will use a semi-automated approach for Windows 8 deployment. In short, this involves using a deployment tool, creating an image, and reproducing/deploying the same image to multiple clients by booting from a deployment medium (typically a bootable USB-stick).

Zero Touch Installation (ZTI): By using a Zero Touch deployment mechanism, you basically give the option to the end-user to (re)deploy the machine completely by himself or herself. In short, this starts with the configuration of the deployment tool, creating an image, and automatically

What is the Microsoft Deployment Toolkit 2012 (MDT 2012)?

MDT 2012 is the newest version of the Microsoft Deployment Toolkit (MDT), a Solution Accelerator for operating system and application deployment. MDT 2012 Update 1 supports deployment of Windows 8, Windows 7, Office 2010 and 365, Windows Server 2012, and Windows Server 2008 R2, in addition to deployment of Windows Vista, Windows Server 2008, Windows Server 2003, and Windows XP.

 

Let Us Start

Configuring MDT 2012 Update 1 to deploy Windows 8 for the 8650w machines is done in nine easy steps:

clip_image003[394]       Create a deployment share

clip_image003[395]       Import the Windows 8 operating system

clip_image003[396]       Import the drivers

clip_image003[397]       Add the application

clip_image003[398]       Create a task sequence

clip_image003[399]       Configure the deployment share settings

clip_image003[400]       Update the deployment share

clip_image003[401]       Add the MDT 2012 Update 1 boot image to WDS

clip_image003[402]       Deploy the Windows 8 image

System Requirements

clip_image003[403]      A member server named MDT01 running Windows Server 2008 R2 or Windows Server 2012 with the following software installed:

clip_image003[404]       Windows Deployment Services

clip_image003[405]       ADK

clip_image003[406]       .NET Framework 3.5.1

clip_image003[407]       MDT 2012 Update 1

Installing WDS

image

image

image

image

image

image

image

Installing ADK

The Windows Assessment and Deployment Kit (Windows ADK) is a collection of tools and documentation that you can use to customize, assess, and deploy Windows operating systems to new computers.

The Windows ADK is new for Windows 8. Tools that were previously available in the Windows OEM Preinstallation Kit and Windows Automated Installation Kit are now available in the Windows ADK.

 

Features included in the Windows ADK


The following tools are available in the Windows ADK:

Feature

Description

Application Compatibility Toolkit

The Application Compatibility Toolkit (ACT) helps customers understand their application compatibility situation by identifying which applications are compatible with the new versions of the Windows operating system and which require further testing. ACT helps customers lower their costs for application compatibility testing, prioritize their applications, and deploy Windows more quickly.

By using ACT, you can become involved in the ACT Community, including sharing your risk assessment with other ACT users. You can also test your Web applications and Web sites for compatibility with new releases and security updates to Internet Explorer.

Deployment Tools

Deployment tools enable you to customize, manage, and deploy Windows images. Deployment tools can be used to automate Windows deployments, removing the need for user interaction during Windows setup. Includes:

  • Deployment Image Servicing and Management (DISM) tool
  • Windows System Image Manager (SIM)
  • OSCDIMG, BCDBoot, DISMAPI, WIMGAPI, and other tools and interfaces

Windows Preinstallation Environment (Windows PE)

Minimal operating system designed to prepare a computer for installation and servicing of Windows.

User State Migration Tool (USMT)

USMT is a scriptable command line tool that IT Professionals can use to migrate user data from a previous Windows installation to a new Windows installation. By using USMT, you can create a customized migration framework that copies the user data you select and excludes any data that does not need to be migrated. Includes:

  • ScanState tool
  • LoadState tool
  • USMTUtils tool

Volume Activation Management Tool (VAMT)

The Volume Activation Management Tool (VAMT) enables IT professionals to automate and centrally manage the activation of Windows, Windows Server, Windows ThinPC, Windows POSReady 7, select add-on product keys, and Office for computers in their organization. The VAMT can manage volume activation using retail keys (or single activation keys), multiple activation keys (MAKs), or Windows Key Management Service (KMS) keys.

Windows Performance Toolkit (WPT)

Tools to record system events by using Event Tracing for Windows, and a tool to analyze performance data in a graphical user interface. Includes:

  • Windows Performance Recorder
  • Windows Performance Analyzer
  • Xperf

Windows Assessment Toolkit

Tools to discover and run assessments on a single computer.Assessments are tasks that simulate user activity and examine the state of the computer. Assessments produce metrics for various aspects of the system, and provide recommendations for making improvements. Includes:

clip_image003[408]       Windows Assessment Console

clip_image003[409]       Assessments

Windows Assessment Services

Application to remotely manage settings, computers, images, and assessments in a lab environment where Windows Assessment Services is installed.This application can run on any computer with access to the server that is running Windows Assessment Services.

Installation

You can install the Windows® Assessment and Deployment Kit (Windows ADK) directly from the Internet. You can also download the installer and copy it to an offline computer.

clip_image003[410]       On a computer that has Internet access, run Windows ADK Setup from this Microsoft website.

clip_image003[411]       Select Download the Assessment and Deployment Kit for installation on a separate computer.

clip_image003[412]       In the Download Path box, specify the location where you want to download the files, and then click Next.

clip_image003[413]       Select whether you want to participate in the Customer Experience Improvement Program (CEIP), and then click Download.

clip_image003[414]       After the download is finished, click Close.

clip_image003[415]       Run ADKSetup.exe.

image

clip_image003[416]       select the Windows ADK features that you want to install.

image

image

Installing MDT 2012 UP1

Microsoft Deployment Toolkit (MDT) 2012 Update 1 is the newest version of MDT, a Solution Accelerator for operating system and application deployment. MDT 2012 Update 1 supports deployment of Windows 8, Windows 7, Office 2010 and 365, Windows Server 2012, and Windows Server 2008 R2 in addition to deployment of Windows Vista, Windows Server 2008, Windows Server 2003, and Windows XP.

image

image

image

 

Configuration

Create a deployment share

clip_image003[417]       On the MDT server, from the Deployment Workbench, right-click Deployment Shares and select New Deployment Share.

image

clip_image003[418]       Deployment share path

image

clip_image003[419]       Share name

image

clip_image003[420]       Deployment share description

image

image

image

 

Import the Windows 8 operating system

clip_image003[421]       Right-click on the Operating Systems node, and select Import Operating System.

image

clip_image003[422]       Full set of source files

image

image

clip_image003[423]       Destination directory name

image

image

image

Import the drivers

clip_image003[424]       Select the Out-Of-Box Drivers node, Right-click and select Import Drivers.

image

Add the sample application

clip_image003[425]       Right-click the Applications node, and select New Application.

image

clip_image003[426]       Application with source files

image

clip_image003[427]       Application name: 7-Zip

clip_image003[428]       Version: 9.20

clip_image003[429]       Language: ENG

image

clip_image003[430]       Write the Source Directory: C:\Applications\7z

image

clip_image003[431]       In specify the name of the directory that should be created: 7-Zip 9.20

image

clip_image003[432]       Command Line: msiexec /i 7z920-x64.msi /q INSTALLDIR=”C:\Program Files\7-Zip”

clip_image003[433]       Working directory: .\Applications\7-Zip 9.20

image

image

Setting MDT General Properties

From the properties of the Deployment Share.

image

image

image

 

Configuring DHCP to serve PXE request

We will needed to add two DHCP options

clip_image003[434]       Configure  Option 66 with the MDT server FQDN

clip_image003[435]       And option 67  boot file name  to :   boot\x86\wdsnbp.com

image

Creating a capture task sequence for the windows 8 OS

image

clip_image003[436]       Write the task sequence ID, Name and comment

image

clip_image003[437]       Choose the Sysprep and capture from the drop down menu

image

clip_image003[438]       Select the OS

image

clip_image003[439]       Don’t specify Key , Click Next

image

image

clip_image003[440]       Fill the local Admin password

image

image

image

STOP

I found this support article http://support.microsoft.com/kb/2797676 , Sysprep and Capture task sequence in Microsoft Deployment Toolkit (MDT) 2012 Update 1 fails when trying to capture a Windows 8 image that was installed from the media. Additionally you may receive the following errors:

Deployment Summary

Failure
Operating system deployment did not complete successfully.
Please review the log files to determine the cause of the problem.
During the deployment process, 14 errors and 0 warning were reported.

Details …
ZTI ERROR – Unhandled error returned by LTIApply: Not found (-2147217406 0x80041002)
Litetouch deployment failed, Return Code = -2147467259 0x80004005
Failed to run the action: Apply Windows PE.
Not found (Error: 80041002; Source: WMI)
The execution of the group (Capture Image) has failed and the execution has been aborted.
An action failed.
Operation aborted (Error: 80004004; Source: Windows)
Failed to run the last action: Apply Windows PE. Execution of task sequence failed.
Not found (Error: 80041002; Source: WMI)
Task Sequence Engine failed! Code: enExecutionFail
Task sequence execution failed with error code 80004005
Error Task Sequence Manaqer failed to execute task sequence. Code 0x80004005

 

Cause

This problem occurs because the LTIApply.wsf script fails to check for the existence of the boot folder on the system partition before running the command takeown.exe to change ownership on the folder. The takeown.exe command fails with a “Not Found” error if the boot folder doesn’t exist and causes the Sysprep and Capture task sequence to fail.

Workaround

To workaround this problem you must edit the following files:

clip_image003[441]       %DeployRoot%\Scripts\LTIApply.wsf (%DeployRoot% is the path you specified when the deployment share was created.)

clip_image003[442]       C:\Program files\Microsoft Deployment Toolkit\Templates\Distribution\Scripts\LTIApply.wsf

Locate the “Copy bootmgr” section in LTIApply.wsf and add the following code above the existing code under the section:

image

If not oFSO.FolderExists(sBootDrive & "\Boot") then
   oFSO.CreateFolder(sBootDrive & "\Boot")
End if

 

image

 

Now after we modified the two LTIApply.wsf scripts we update the deployment share

image

We will completely regenerate the boot image this time

image

image

 

Configuring the WDS

WDS is the PXE Responsible so MDT relay on WDS to offer PXE requests

image

image

image

Setup a location for the WDS files

image

Select Respond to all Client computers

image

image

To add the Boot image

image

We select the boot image we generated from the deployment share

image

image

image

Now we are ready to capture

From the template machine we are going to capture access the MDT distribution share scripts and run the litetouch.vbs script

image

Select the image location

image

image

image

image

image

image

We now have our template J

image

Preparing For Windows 8 Template Mass Deployment

First thing we are going to do is to import the Template .WIM file we just captured

From the MDT Workbench

image

image

image

image

image

image

image

Create Windows8 Deployment task sequence

image

image

image

image

image

image

image

image

image

Fully Automate the Deployment

We now are going to edit the customseting.ini and boot strab.ini to fully automate the migration process

image

image

image

Bootstrap

[Settings]
Priority=Default

[Default]
DeployRoot=\\MDT\DS1$
UserDomain=walid2012.local
UserID=administrator
UserPassword=Pa$$w0rd

 

Customsettings

[Settings]
Priority=Default
Properties=MyCustomProperty

[Default]
OSInstall=Y
SkipTaskSequence=YES
TaskSequenceID=002
SkipCapture=YES
SkipAdminPassword=YES
SkipProductKey=YES
SkipDeploymentType=YES
DeploymentType=refresh
SkipComputerName=YES

Skipuserdata=yes
userdatalocation=Auto
UDshare=\\MDT\migdata$
UDDir=%ComputerName%

SkipComputerBackup=YES

SkipDomainMembership=YES
DomainAdmin=administrator
DomainAdminDomain=walid2012
DomainAdminPassword=Pa$$w0rd
JoinDomain=walid2012

SkipLocaleSelection=YES
KeyboardLocale=EN-US

SkipTimeZone=YES
TimeZone=120
TimeZoneName=Egypt Standard Time

SkipAdminPassword=YES

SkipBitLocker=YES

SkipSummary=YES
SkipFinalSummary=NO

SkipPackageDisplay=YES
SkipAppsOnUpgrade=YES
SkipApplications=YES

OrgName=isource
EventShare=\\MDT\DS1$\Logs

Don’t forget Creating the necessary Shares (Migdata & log) with read and modify permission

Update the deployment share

image

We will completely regenerate the boot image again

image

image

 

Also updating the WIM boot file in WDS

image

We select the boot image we generated from the deployment share

image

image

image

RUN IT…

image

image

image

image

There is our data back from the XP

image

 

image

2 thoughts on “Windows 8 Migration & Deployment Using MDT 2012 update 1

  1. excellent points altogether, you simply won a logo new reader.
    What could you suggest in regards to your put up that
    you made a few days in the past? Any positive?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s