You are here:   Research
  |  Login

Welcome to my blog, quickest way to find articles is usually to search for them.

Search in All Title Contents

Dynamically select OS Image in the MDT Lite Touch Task Sequence

Aug 12 2017

Earlier this week I got a question on how to have a single MDT Lite Touch task sequence support a dynamic selection of OS Image.

Now, typically I recommend having a 1:1 relationship between task sequence and OS Image, but you can certainly have MDT dynamically pick an OS Image based on a variable you define in CustomSettings.ini. It just requires a little trick  :)



In this scenario I’m setting a custom variable named CustomImageVariable to dynamically select an OS Image.

This means I have multiple Install Operating System actions in my task sequence, each of them with a condition. For example CustomImageVariable=1607 (see below).


An Install Operating System action configured with a condition.

The tricks

If you only do the above configuration, MDT will select the first OS Image that is configured with the task sequence. This is done even before the Install Operating System is run, so to force MDT use the image you want, you need to clear the OSGUID variable before the various Install Operating System actions. Here is how:


Adding a Set Task Sequence Variable action to clear the OSGUID variable.


Finally you need to have your CustomSettings.ini file dynamically set the CustomImageVariable variable. Here is an example with CustomSettings.ini being configured to set it differently depending on default gateway (network).


Priority=DefaultGateWay, Default






Written by Johan Arwidmark

Happy deployment, and thanks for reading!

What our lawyers makes us say:

This information is provided "AS IS" with no warranties, confers no rights and is not supported by the authors or Deployment Artist.

Copyright © 2017 by Deployment Artist (the company behind deployment research). All rights reserved. No part of the information on this web site may be reproduced or posted in any form or by any means without the prior written permission of the publisher.

Shorthand: Don't pass off our work as yours, it's not nice.

Blog Archive