How do I automate the selection of Task Sequences in MDT?
Applies to: Microsoft Deployment Toolkit (MDT) 8456 and later
Last updated: May 2025
Problem
You want to skip the Task Sequence selection screen during deployment and automatically assign a specific Task Sequence based on predefined rules or conditions.
Solution
You can automate Task Sequence selection using the CustomSettings.ini file by setting the TaskSequenceID property, either globally or conditionally (e.g., by model, role, or location).
Step-by-Step Guide
1. Determine the Task Sequence ID
- In Deployment Workbench > Task Sequences, right-click your desired Task Sequence > Properties.
- Note the Task Sequence ID (e.g.,
WIN11ENT64).
2. Edit CustomSettings.ini
- Open
<DeploymentShare>\Control\CustomSettings.ini - Add or modify the
TaskSequenceIDentry under the relevant section
Example – Simple Automation:
[Settings]
Priority=Default
[Default]
TaskSequenceID=WIN11ENT64
This will automatically select the WIN11ENT64 Task Sequence without user input.
3. Use Conditions for Advanced Logic (Optional)
You can automate Task Sequence selection based on things like hardware model, location, or user-defined roles.
Example – Based on Computer Model:
[Settings]
Priority=Model, Default
[Latitude 5430]
TaskSequenceID=WIN11ENT64
[OptiPlex 7000]
TaskSequenceID=WIN10PRO64
[Default]
TaskSequenceID=WIN11STD64
To find the model name:
- Use a command line on the target machine: cmdCopyEdit
wmic computersystem get model
4. Suppress the Selection Page (Optional)
To completely remove the Task Sequence screen from the wizard:
- Add
SkipTaskSequence=YESunder the relevant section:
[Default]
TaskSequenceID=WIN11ENT64
SkipTaskSequence=YES
Testing
- Boot into MDT and verify that the deployment skips the Task Sequence selection screen and automatically proceeds with the correct sequence.
- Check
BDD.logorZTIGather.logif automation fails.
Notes
- If you change the
TaskSequenceID, make sure the Task Sequence exists and is spelled correctly. - Combine with other skip options (
SkipApplications,SkipUserData, etc.) for fully automated deployments.





