32
Automating Reference Images Henrik Rading @HenrikRading Blog.coretech.dk/hra Kent Agerlund @Agerlund Blog.coretech.dk/kea

Automating Reference ImagesAutomating Reference Images Henrik Blog.coretech.dk/hra Kent Blog.coretech.dk/kea

Embed Size (px)

DESCRIPTION

Chief Technical Coretech Global Blog.coretech. dk/author/kea System Management consultant since 1996 Enterprise Mobility MVP City, Country Kent Agerlund Copenhagen, Denmark

Citation preview

Page 1: Automating Reference ImagesAutomating Reference Images Henrik Blog.coretech.dk/hra Kent Blog.coretech.dk/kea

Automating Reference Images

Henrik [email protected]/hra

Kent [email protected]/kea

Page 2: Automating Reference ImagesAutomating Reference Images Henrik Blog.coretech.dk/hra Kent Blog.coretech.dk/kea

#MMSMOA

@HenrikRading

Senior Consultant @ Coretech Global

Blog.coretech.dk/hra

15+ years of deploying Windows

Microsoft certified since 1998

Karlslunde, Denmark

Henrik Rading

Page 3: Automating Reference ImagesAutomating Reference Images Henrik Blog.coretech.dk/hra Kent Blog.coretech.dk/kea

#MMSMOA

@Agerlund

Chief Technical Architect @ Coretech Global

Blog.coretech.dk/author/kea

System Management consultant since 1996

Enterprise Mobility MVP

City, Country

Kent Agerlund

Copenhagen, Denmark

Page 4: Automating Reference ImagesAutomating Reference Images Henrik Blog.coretech.dk/hra Kent Blog.coretech.dk/kea

Enough talk....entering demo mode

Page 5: Automating Reference ImagesAutomating Reference Images Henrik Blog.coretech.dk/hra Kent Blog.coretech.dk/kea

How do you maintain your images?A question with many answers…

Page 6: Automating Reference ImagesAutomating Reference Images Henrik Blog.coretech.dk/hra Kent Blog.coretech.dk/kea

A simple question we ask customers How do you build and maintain your images?

Page 7: Automating Reference ImagesAutomating Reference Images Henrik Blog.coretech.dk/hra Kent Blog.coretech.dk/kea

Unfortunately not all answers are equally good…

Ask Freddy… no one else knows! Oooh no! Freddy gone..ask the person who took over.....who’s that

Page 8: Automating Reference ImagesAutomating Reference Images Henrik Blog.coretech.dk/hra Kent Blog.coretech.dk/kea

Unfortunately not all answers are equally good…

Well, I believe we have it documented somewhere…

Page 9: Automating Reference ImagesAutomating Reference Images Henrik Blog.coretech.dk/hra Kent Blog.coretech.dk/kea

Unfortunately not all answers are equally good…

We have absolutely no idea, and dare not touch it!

Page 10: Automating Reference ImagesAutomating Reference Images Henrik Blog.coretech.dk/hra Kent Blog.coretech.dk/kea

What we hope to hear…

We have it fully automated!

Automation!

Page 11: Automating Reference ImagesAutomating Reference Images Henrik Blog.coretech.dk/hra Kent Blog.coretech.dk/kea

The formula to success:

++ = Image

Factory

Page 12: Automating Reference ImagesAutomating Reference Images Henrik Blog.coretech.dk/hra Kent Blog.coretech.dk/kea

Why don’t we use ConfigMgr

ConfigMgr Ecosyste

m

Isolated

Consistency

Rapid Engineeri

ng

Versatility

Page 13: Automating Reference ImagesAutomating Reference Images Henrik Blog.coretech.dk/hra Kent Blog.coretech.dk/kea

DemoWhat happens during setup

Page 14: Automating Reference ImagesAutomating Reference Images Henrik Blog.coretech.dk/hra Kent Blog.coretech.dk/kea

Image TypesA short explanation

Page 15: Automating Reference ImagesAutomating Reference Images Henrik Blog.coretech.dk/hra Kent Blog.coretech.dk/kea

Image typesThin

Operating system from original

media

Windows Updates

.NET FrameworksC++ Runtimes

HybridThick/Fat

Operating system from original

media

Windows Updates

.NET FrameworksC++ RuntimesAll Applications

Application Updates

Customization & Settings

Operating system from original

media

Windows Updates

.NET FrameworksC++ Runtimes

Select Applications

Application Updates

Page 16: Automating Reference ImagesAutomating Reference Images Henrik Blog.coretech.dk/hra Kent Blog.coretech.dk/kea

DemoMDT configuration

Page 17: Automating Reference ImagesAutomating Reference Images Henrik Blog.coretech.dk/hra Kent Blog.coretech.dk/kea

WorkflowsUnderstand what you want to do

Page 18: Automating Reference ImagesAutomating Reference Images Henrik Blog.coretech.dk/hra Kent Blog.coretech.dk/kea

Get an overview before you begin

New Updates released

Build new reference computer

Capture Image

Copy to Configuration

Manager

Test and Validate

Release to production

Page 19: Automating Reference ImagesAutomating Reference Images Henrik Blog.coretech.dk/hra Kent Blog.coretech.dk/kea

Design your workflow

StartDetermin

e build type

Get Task Sequence

IDsQueue up build job

Starting the process:

Page 20: Automating Reference ImagesAutomating Reference Images Henrik Blog.coretech.dk/hra Kent Blog.coretech.dk/kea

Build flow

Create new

Hyper-V Guest

Start guest

shortly to get MAC Address

Link MAC to TS ID

and start guest again

Monitor deployme

nt progress through

MDT Monitoring

Perform post build

tasks

Page 21: Automating Reference ImagesAutomating Reference Images Henrik Blog.coretech.dk/hra Kent Blog.coretech.dk/kea

Post actions

Remove Hyper-V guest

Copy image to OS folder in MDT

Copy Image to

ConfigMgr Image

Package

Page 22: Automating Reference ImagesAutomating Reference Images Henrik Blog.coretech.dk/hra Kent Blog.coretech.dk/kea

Queue ManagerStart Queue

Manager

yes

ImageFactory.xml

no End

Sessions available? yes

Loop while queue contains items or

existing jobs in progress

Start new build thread

yes

Queue contains items?

no

Display build progress

Build running?yes no

yes

Queue contains items?

Data input from build threads

Page 23: Automating Reference ImagesAutomating Reference Images Henrik Blog.coretech.dk/hra Kent Blog.coretech.dk/kea

DemoDeep dive into the code

Page 24: Automating Reference ImagesAutomating Reference Images Henrik Blog.coretech.dk/hra Kent Blog.coretech.dk/kea

Hybrids from Thin imagesReduce build time by reusing thin images

Page 25: Automating Reference ImagesAutomating Reference Images Henrik Blog.coretech.dk/hra Kent Blog.coretech.dk/kea

One thin image - Multiple hybrids

Build and capture thin image Updat

e Thin image in MDT

Build new hybrid images based on

captured thin image

Windows 10 with Office 2013

Windows 10 with Office 2016

Copy hybrid images to ConfigMgr

content source

PS10045B

PS10037D

Page 26: Automating Reference ImagesAutomating Reference Images Henrik Blog.coretech.dk/hra Kent Blog.coretech.dk/kea

Test before pushing to production!

\Pre-production\WIN10ENTX64

ImgFactory$\DS\Captures

File System (content source)Image Factory Configuration Manager

Pre-productionProduction

OS Image Package

PS100311

Task SequencePS10050A

\Production\WIN10ENTX64

OS Image Package

PS100310Task

SequencePS100500

Task SequencePS10050A

Page 27: Automating Reference ImagesAutomating Reference Images Henrik Blog.coretech.dk/hra Kent Blog.coretech.dk/kea

DemoPutting it all together

Page 28: Automating Reference ImagesAutomating Reference Images Henrik Blog.coretech.dk/hra Kent Blog.coretech.dk/kea

Known issues

Page 29: Automating Reference ImagesAutomating Reference Images Henrik Blog.coretech.dk/hra Kent Blog.coretech.dk/kea

Known issues...Setup script

Sharing folders will fail if language is different than US english.

Change line 509

From:

$language = Get-Culture | Select-Object -ExpandProperty 'name' To:

$language = Get-UICulture | Select-Object -ExpandProperty 'name'

Page 30: Automating Reference ImagesAutomating Reference Images Henrik Blog.coretech.dk/hra Kent Blog.coretech.dk/kea

Known issues....#PercentComplete error - Correct Line 887 change #from: If ($InProgress.PercentComplete -eq 100) { #to: If (($InProgress.PercentComplete -eq 100) -or ($InProgress.CurrentStep -eq "")-or ($InProgress.CurrentStep -eq $null)){

Page 31: Automating Reference ImagesAutomating Reference Images Henrik Blog.coretech.dk/hra Kent Blog.coretech.dk/kea

What’s next

We have something that is better than free beer........well almost

Stop by the booth and get your free Image factory solution after the session

Page 32: Automating Reference ImagesAutomating Reference Images Henrik Blog.coretech.dk/hra Kent Blog.coretech.dk/kea

Evaluations: Please provide session feedback by clicking the EVAL button in the scheduler app (also download slides). One lucky winner will receive a free ticket to the next MMS!Session Title: Automating Reference Images

Discuss…Ask your questions-real world answers!Plenty of time to engage, share knowledge.

SPON

SORS