45

Deployment Day Session 2 MDT 2012 Advanced

Embed Size (px)

DESCRIPTION

More info on http://www.techdays.be

Citation preview

Page 1: Deployment Day Session 2 MDT 2012 Advanced
Page 2: Deployment Day Session 2 MDT 2012 Advanced

Migrate XP to Windows 7 Without Loosing any User or Application Settings

Rhonda Layfield

Deployment Done Right

Page 3: Deployment Day Session 2 MDT 2012 Advanced

This Session Assumes…• MDT 2012 is installed• Deployment Share has been created• You have added Windows 7 as an OS to

deploy in the Deployment Workbench

Page 4: Deployment Day Session 2 MDT 2012 Advanced

What We Will Cover• MDTs Hidden Secrets• Advanced Features– Not so well connected machines–Machines not connected at all

• Migrate XP machine to Windows 7

Page 5: Deployment Day Session 2 MDT 2012 Advanced

MDT Hidden Secrets• Properties of a Deployment Share• Compare 2010 U1 to 2012

Page 6: Deployment Day Session 2 MDT 2012 Advanced

DEMOHidden Secrets

Page 7: Deployment Day Session 2 MDT 2012 Advanced

ADVANCED MDT 2012

Page 8: Deployment Day Session 2 MDT 2012 Advanced

MDT Components• The MDT components are:

– Operating Systems– Applications– Drivers– Packages– Task Sequences

• To use some of the Advanced Features of MDT you will need to group MDT components together

• The way you group MDT components is by creating a “Selection Profile”

Page 9: Deployment Day Session 2 MDT 2012 Advanced

MDT’s Selection Profiles• The MDT components you group will determine what

you can do with the selection profile:– Group drivers and packages to inject into the MDT

generated Windows Pre Installation Environments (WinPEs)– Group drivers to inject into an OS task sequence– Control which MDT components are included in “Media”– Group MDT components to replicate (and keep in sync)

linked deployment shares

Page 10: Deployment Day Session 2 MDT 2012 Advanced

Linked Deployment Shares

LDS

Page 11: Deployment Day Session 2 MDT 2012 Advanced

WAN Links

Not So Well Connected Clients

MDT DS

Brussels

Nivelles Antwerp

OSApplication Drivers Task Sequences

OSApplication Drivers Task Sequences

OSApplication Drivers Task Sequences

Page 12: Deployment Day Session 2 MDT 2012 Advanced

Linked Deployment Shares (LDS)

• LDS allows you to copy a subset (or all if you choose) of components to replicate to another machine

• Even Windows 7 can host a LDS• But, if you host the LDS on a server you can

integrate WDS• To create a LDS• Begin on the target computer

Page 13: Deployment Day Session 2 MDT 2012 Advanced

Problems• Get out of sync• DFS-R replication– Boot.ini file

• Forget a component

Page 14: Deployment Day Session 2 MDT 2012 Advanced

DEMOCreate a LDS

Page 15: Deployment Day Session 2 MDT 2012 Advanced

Deploy OSs From a UFD

Page 16: Deployment Day Session 2 MDT 2012 Advanced

Branch Offices

MDT DS

Brussels

Nivelles Antwerp

Good WAN Link

Unreliable WAN Link

Page 17: Deployment Day Session 2 MDT 2012 Advanced

Media Deployment

Bare Metal

MDT Deployment Image

Pro No Network Connectivity

Con No Version Control

Page 18: Deployment Day Session 2 MDT 2012 Advanced

DEMOCreate Media

Page 19: Deployment Day Session 2 MDT 2012 Advanced

Prepare Media

• Open an elevated command prompt– DISKPART

• List disk (record the number of the external device)• Select disk N (N is the disk number• Select disk 2• Clean• create partition primary• select partition 1• Active• format fs=ntfs• Assign• exit • Close the command prompt

Page 20: Deployment Day Session 2 MDT 2012 Advanced

Preparing Media Completed

• Open Windows Explorer• Turn on show hidden files• Navigate to the Media “Content” folder• Copy the entire Content folder

– Boot folder– Deploy folder– EFI folder– Autorun.inf– Bootmgr– Bootmgr.efi

Page 21: Deployment Day Session 2 MDT 2012 Advanced

Problems With Media• Forget a component• No way to password protect the UFD• Do not format NTFS– Not bootable

Page 22: Deployment Day Session 2 MDT 2012 Advanced

XP MIGRATIONXP to Windows 7

Page 23: Deployment Day Session 2 MDT 2012 Advanced

MDT Network Deployment

MDT 2012 Deployment Server

MDT WinPE

11 Copy WinPEBoot Target22

XPWinPE

Store Users Data and Settings

Page 24: Deployment Day Session 2 MDT 2012 Advanced

MDT Network Deployment

MDT 2012 Deployment Server

Connect to MDT Server and Download ImageConnect to MDT Server and Download Image

WinPE

Restore Users Data and Settings

W7

Page 25: Deployment Day Session 2 MDT 2012 Advanced

DEMOMigrate XP to Win 7

Page 26: Deployment Day Session 2 MDT 2012 Advanced

Get MDT Deployment Server Ready

• Add an Operating System–Windows 7

• Add Drivers• Add Applications• Create a Task Sequence

Page 27: Deployment Day Session 2 MDT 2012 Advanced

But Wait There is More…• Re-install existing applications from XP

to Win 7 automatically• Extend the basic features of MDT• It would look like this…

Page 28: Deployment Day Session 2 MDT 2012 Advanced

XP Migration “Refresh” Scenario

MDT 2010 U1 Deployment Server

XP SP2/SP3XP SP2/SP3

11 Begin MDT DeploymentBegin MDT Deployment

Format Hard driveFormat Hard drive44

Windows 7 InstalledWindows 7 Installed55

Get list of Applications InstalledGet list of Applications Installed22

77User and Application Data and

Settings are Restored from serverUser and Application Data and

Settings are Restored from server

33User and Application Data and Settings are stored on server

User and Application Data and Settings are stored on server

W7

Applications are InstalledApplications are Installed66

Page 29: Deployment Day Session 2 MDT 2012 Advanced

To Set This Up• Gather application information from XP– Need the uninstall registry keys

• Add applications to MDT Deployment Workbench– With the uninstall registry key

• Set up MDT to extend the functionality

Page 30: Deployment Day Session 2 MDT 2012 Advanced

Gather Application Information• Log on as a standard user for read only mode• HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall

Uninstall key name

Page 31: Deployment Day Session 2 MDT 2012 Advanced

Gather Application Information• .Exe’s are easy – the application name is obvious• .Msi’s are displayed as GUID’s – look for the DisplayName

.EXE

.MSI

Page 32: Deployment Day Session 2 MDT 2012 Advanced

Copy Key Name to Notepad

Gather Application Information

Page 33: Deployment Day Session 2 MDT 2012 Advanced

• This is what you will get:– HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\

Uninstall\{FC7BACF0-1FFA-4605-B3B4-A66AB382752D}

• This is the piece you want:– HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\

Uninstall\{FC7BACF0-1FFA-4605-B3B4-A66AB382752D}

• If your doing a lot of applications at one time:XMLNotepad = {FC7BACF0-1FFA-4605-B3B4-A66AB382752D}NetMon 3.3 = {365C5A10-6561-454F-B975-56EA878D0A06}Office 2007 = {90120000-002A-0000-1000-0000000FF1CE}

Gather Application Information

Page 34: Deployment Day Session 2 MDT 2012 Advanced

DEMOGather Application Information

Page 35: Deployment Day Session 2 MDT 2012 Advanced

Applications And MDT• Performed on the MDT deployment server• Within the Deployment Workbench

• Add an application• Open the properties of the application• Go to the Details tab• Input the Uninstall registry key name from

your Notepad file

Page 36: Deployment Day Session 2 MDT 2012 Advanced

DEMOAdd Application data to MDT Server

Page 37: Deployment Day Session 2 MDT 2012 Advanced

Extend MDT Functionality• Download LTIAppDetect.vbs from

– http://www.deploymentdr.com/Download.html

• Copy the LTIAppDetect.vbs script to your deployment share’s Scripts folder

Page 38: Deployment Day Session 2 MDT 2012 Advanced

Configure MDT• Configure MDT to look for applications• Edit the properties of your deployment share

– From within the Deployment Workbench• Properties of your deployment share

– Rules tab

[Settings]Priority=DefaultProperties=MyCustomProperty

[Default]OSInstall=YSkipAppsOnUpgrade=YESSkipCapture=YESSkipAdminPassword=NOSkipProductKey=YES

Page 39: Deployment Day Session 2 MDT 2012 Advanced

Configure MDT• Add LTIAppDetect.vbs

[Settings]Priority=DefaultProperties=MyCustomProperty [Default]UserExit=LTIAppDetect.vbsOSInstall=YSkipAppsOnUpgrade=YESSkipCapture=YESSkipAdminPassword=NOSkipProductKey=YES

Page 40: Deployment Day Session 2 MDT 2012 Advanced

MANDATORY APPLICATIONS

Page 41: Deployment Day Session 2 MDT 2012 Advanced

Make Applications Mandatory• If you don’t want a person to be able to de-select an

application during deployment…• Edit LTIAppDetect.vbs script• Set oApplications = oEnvironment.ListItem("Applications")

To:

• Set oApplications = oEnvironment.ListItem("MandatoryApplications")

Page 42: Deployment Day Session 2 MDT 2012 Advanced

Clean Up Active Directory Users and Computers

• If you rename your newly migrated machine the old name still exists in AD

• So, you might want to clean that up by deleting the old machine name

Page 43: Deployment Day Session 2 MDT 2012 Advanced

What We Covered• MDTs Properties of a deployment share• Advanced Features

– Not so well connected machines (LDS)– Machines not connected at all (Media)

• Migrate XP machine to Windows 7 – Maintaining users data and settings– Re-installing applications automatically

Page 44: Deployment Day Session 2 MDT 2012 Advanced

Get In Touch With Me…• Let me know how your deployments are

going:– [email protected]

• Follow me on Twitter– [email protected]

• Available for consulting and training

Page 45: Deployment Day Session 2 MDT 2012 Advanced

Up Next• Windows Deployment Services (WDS)• Comparison between WDS and MDT

2012