Skip to content
Quickly Get Condition On SCCM Task Sequence Step

Quickly Get Condition On SCCM Task Sequence Step

Written By Jitesh Kumar
Last Updated June 29, 2022
Posted In SCCM
SHARE

Let’s learn how to get condition on sccm task sequence step. This post shows how to get the condition on the steps or group of the task sequences. Conditions are options on each step that can be set to determine if a step will run or not during the task sequence.

The task sequence evaluates the conditions before running the step on the device. Conditions can be simple or very complex, depending on your requirements. It only runs the step if the conditions evaluate true. If a condition evaluates false, then the task sequence skips the group or step.

There are several conditions are available to evaluate the added steps, The conditions are the same as for step conditions. The rule evaluates to true when the value set for the variable meets the specified condition. Specify one or more variables to set for a rule that evaluates to true, or set variables without using a rule.

You can also use the Get-CMTaskSequenceStepCondition PowerShell cmdlet to get a condition on a task sequence step. The task sequence evaluates the condition before it runs the step or group.

Patch My PC

Suppose you use groups to combine multiple steps that share a common condition. A task sequence group default fails when any step or embedded group within the group fails. If you want the task sequence to continue when a step or embedded group fails, set the Continue on error option on the step or group. 

How to Get Condition On SCCM Task Sequence Step

Let’s see the following steps to find the task sequence step has conditions in SCCM –

  • Launch Configuration Manager console, go to the Software Library workspace, expand Operating Systems, and select the Task Sequences node.
  • In the Task Sequence list, select the task sequence you want to edit. Select Edit to modify.
Select Task Sequence > Edit - Get Condition On SCCM Task Sequence Step
Select Task Sequence > Edit – Get Condition On SCCM Task Sequence Step

Search the task sequence editor: It is not easy to find specific steps if you have a large task sequence with many groups and steps. This action lets you more quickly locate steps in the task sequence.

Click on the Scope drop-down button. Here you can scope your search using the following types, and It enables all scopes by default:

  • Step Name
  • Step Description
  • Step Type
  • Group Name
  • Group Description
  • Variable Name
  • Conditions
  • Other content, for example, strings like variable values or command lines

You can also filter for all steps with the following configured options, and It doesn’t enable either filter by default.

  • Continue On Error
  • Has Conditions (I selected this option to get a condition on a task sequence step)
Select Scope - Has Conditions
Select Scope – Has Conditions

The task sequence editor window highlights the steps matching your search criteria when selecting the scope. Here you can see that the steps are highlighted that have conditions.

Search Higlights - Task Sequence Condition Step
Search Highlights – Task Sequence Condition Step

Enter a search term to start. The editor window highlights the steps that match your search criteria when you search. For Example: Here I searched for Apply, and you were able to see multiple task sequence steps starting with the name “Apply.”

The Task Sequence editor highlighted the step has conditions based on the selection you have made to filter.

Search - SCCM Task Sequence Condition Step
Search – SCCM Task Sequence Condition Step

You can click on the step to validate the options. Here’s how you can see the settings on the Options tab of this task sequence step has conditions that must be met to run the step.

Note: When you add conditions on the Options tab of this step, the task sequence step or group will only run if the specified conditions are met otherwise, task sequence execution skips the step or group and jumps to the next step.

Task Sequence Step Options - Condition
Task Sequence Step Options – Condition

PowerShell Command – Get SCCM Task Sequence Step Condition

Now, let’s quickly look at options to check to task sequence step condition with the PowerShell Commands or SCCM PowerShell cmdlets. You can Launch the SCCM PowerShell Commandlets from the console itself.

Click on the Drop-Down option on the top left side corner of the console and click on Connect via Windows PowerShell option. 

PowerShell - Get SCCM Task Sequence Step Condition
PowerShell – Get SCCM Task Sequence Step Condition

Get-CMTaskSequenceStepCondition : Use this cmdlet to get a condition on a task sequence step. The task sequence evaluates the condition before it runs the step or group.

For example, To get the default condition on the Post-Processing group of an in-place upgrade task sequence –

$tsname = "Default IPU"
$tsgroup = "Post-Processing"
$ts = Get-CMTaskSequence -Name $tsname

$ts | Get-CMTaskSequenceGroup -StepName $tsgroup | Get-CMTaskSequenceStepCondition

Author

Written by

Jitesh has over 5 years of working experience in the IT Industry. He writes and shares his experiences related to Microsoft device management technologies and IT Infrastructure management. His primary focus area is Windows 10 Deployment solution with Configuration Manager, Microsoft Deployment Toolkit (MDT), and Microsoft Intune.

Discussion

Join the discussion

Your email address will not be published. Required fields are marked *

Related guides

Intune

Windows 11 KB5101650 KB5099414 July 2026 Patch and 3 Zero Day Vulnerabilities and 570 Flaws

Key Takeaways Windows 11 KB5101650 KB5099414 July 2026 Patch and 3 Zero Day Vulnerabilities and 570 Flaws! In the July 2026 Patch, Microsoft introduced new features designed to improve the overall Windows experience. The update adds enhancements to Windows Update for more flexible update management and introduces Point-in-Time Restore, providing an additional recovery option for […]

AC Anoop C Nair 9 min read
Intune

2026 June KB5094126 KB5093998 Windows 11 Patch | 3 Zero Day Vulnerabilities and 200 Flaws

Key Takeaways 2026 June KB5094126 KB5093998 Windows 11 Patch | 3 Zero Day Vulnerabilities and 200 Flaws! The June 2026 Windows 11 Patch Tuesday update brings several improvements to File Explorer. It adds support for additional archive formats, including UU, CPIO, XAR, and NuGet Packages (NUPKG). The update also preserves View and Sort preferences in […]

AC Anoop C Nair 10 min read
Intune

2026 May KB5089549 KB5087420 Windows 11 Patch | 0 Zero Day Vulnerabilities and 120 Flaws

Key Takeaways The Windows 11 May 2026 Patch KB5089549 KB5087420 Update brings important security fixes, performance improvements, and reliability enhancements across the operating system. The update introduces new features such as Xbox Mode for gaming, File Explorer improvements, enhanced input and sharing experiences, better taskbar and Windows Hello reliability, and additional enterprise management capabilities for […]

AC Anoop C Nair 8 min read
SCCM

ConfigMgr 2603 Introduces New Early Update Enrollment Process

Key Takeaways In this post we are discussing the ConfigMgr 2603 Introduces New Early Update Enrollment Process. Microsoft has officially released Configuration Manager version 2603 to the Early Update Ring, giving organizations an opportunity to test upcoming improvements before the global production rollout. The release is targeted at enterprises running ConfigMgr version 2409 or later […]

AC Anoop C Nair 3 min read