Automating Reference Images MMSMOA

Download Report

Transcript Automating Reference Images MMSMOA

Automating Reference Images
Henrik Rading
@HenrikRading
Blog.coretech.dk/hra
Kent Agerlund
@Agerlund
Blog.coretech.dk/kea
Henrik Rading
Karlslunde, Denmark
Senior
Consultant @
Coretech Global
#MMSMOA
15+ years of
deploying
Windows
Blog.coretech.dk
/hra
@HenrikRading
Microsoft
certified since
1998
Kent Agerlund
City, Country
Copenhagen, Denmark
Chief Technical
Architect @
Coretech Global
#MMSMOA
System
Management
consultant
since 1996
Blog.coretech.
dk/author/kea
@Agerlund
Enterprise
Mobility MVP
Enough talk....entering demo mode
How do you maintain your images?
A question with many answers…
A simple question we ask customers
How do you build and maintain your images?
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
Unfortunately not all answers are equally good…
Well, I believe we have it documented somewhere…
Unfortunately not all answers are equally good…
We have absolutely no idea, and dare not touch it!
What we hope to hear…
We have it fully automated!
The formula to success:
+
+
Image
=
Factory
Why don’t we use ConfigMgr
Consistency
Versatility
ConfigMgr
Ecosystem
Rapid
Engineering
Isolated
Demo
What happens during setup
Image Types
A short explanation
Image types
Thick/Fat
Hybrid
Thin
Customization &
Settings
Application Updates
Application Updates
All Applications
Select Applications
C++ Runtimes
C++ Runtimes
C++ Runtimes
.NET Frameworks
.NET Frameworks
.NET Frameworks
Windows Updates
Windows Updates
Windows Updates
Operating system from
original media
Operating system from
original media
Operating system from
original media
Demo
MDT configuration
Workflows
Understand what you want to do
Get an overview before you begin
New Updates
released
Release to
production
Build new reference
computer
Test and Validate
Capture Image
Copy to
Configuration
Manager
Design your workflow
Starting the process:
Start
Determine
build type
Get Task
Sequence IDs
Queue up
build job
Build flow
Create new
Hyper-V Guest
Start guest
shortly to get
MAC Address
Link MAC to TS
ID and start
guest again
Monitor
deployment
progress
through MDT
Monitoring
Perform post
build tasks
Post actions
Remove
Hyper-V guest
Copy image to
OS folder in
MDT
Copy Image to
ConfigMgr
Image Package
Queue Manager
Start Queue
Manager
Queue contains
items?
no
End
yes
Loop while queue
contains items or
existing jobs in
progress
ImageFactory.xml
yes
Data input from
build threads
Display build
progress
Queue contains
items?
Start new build
thread
yes
Sessions
available?
yes
no
yes
Build running?
no
Demo
Deep dive into the code
Hybrids from Thin images
Reduce build time by reusing thin images
One thin image - Multiple hybrids
Build and capture thin
image
Update
Thin
image
in MDT
Build new hybrid
images based on
captured thin image
Copy hybrid
images to
ConfigMgr
content source
Windows 10 with Office
2013
PS10045B
Windows 10 with Office
2016
PS10037D
Test before pushing to production!
Image Factory
ImgFactory$
\DS\Captures
File System (content source)
\Pre-production
\WIN10ENTX64
Configuration Manager
OS Image
Package
PS100310
Task Sequence
PS100500
OS Image
Package
PS100311
Task Sequence
PS10050A
Pre-production
Production
\Production
\WIN10ENTX64
Demo
Putting it all together
Known issues
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'
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)){
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
Discuss…
Ask your questions-real world answers!
Plenty of time to engage, share knowledge.
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!
SPONSORS
Session Title: Automating Reference Images