Disable SCCM Task Sequence Deployment – 2 Easy Ways

In this post, I will show you how to disable SCCM task sequence deployment. You can disable the task sequence deployment from ConfigMgr console and via PowerShell.

A task sequence in SCCM allows you to deploy an operating system with a series of steps. You define the SCCM task sequence conditions wherever it is required.

When the task sequence is run, the actions of each step are performed at the command-line level without requiring user intervention.

If you have accidentally deployed a task sequence to a device collection as required or available, you can quickly disable the SCCM task sequence deployment. You can also completely remove the task sequence from deployments too.

There are two ways to disable a deployed task sequence – using PowerShell and from Configuration Manager console. This post details both the steps of disabling the task sequence.

Task Sequence – Disable vs Delete

When you don’t require a task sequence anymore, you can either disable it or delete it. Disabling a task sequence is much better than deleting it. Deleting a task sequence should be avoided because you cannot recover a deleted task sequence without a backup.

You can disable a task sequence either from the Configuration Manager console or using Set-CMTaskSequence PowerShell cmdlet with -EnableTaskSequence parameter.

Similar to disabling a task sequence, you can also disable application deployments in SCCM. This new feature was first introduced in SCCM 2103. When you disable SCCM application deployment, it immediately tells the client to update its policy from the site.

When you notice failures or errors with task sequence deployments, you can temporarily disable the task sequence, resolve the issues and enable it back.

What happens when you disable task sequence?

When you disable SCCM task sequence deployment, it immediately tells the client to update its policy from the site and temporarily disables all deployments that contain this task sequence.

Configuration Manager allows you to manage the task sequences by providing several options. Each option is unique and serves a purpose.

If you go to task sequence properties, you see an option called – Disable this task sequence on computers where it is deployed. Enabling this option will temporarily disable all deployments that contain this task sequence. It also removes the task sequence from the list of deployments available to run. The task sequence doesn’t run until you enable it. By default, this option is disabled.

Disable SCCM Task Sequence Deployment using Console

The easiest way to disable task sequence deployment is using SCCM console:

  • Launch the ConfigMgr (SCCM) console.
  • Go to Software Library\Overview\Operating Systems\Task Sequences.
  • Right-click a deployed SCCM task sequence and select Disable.
Disable SCCM Task Sequence Deployment
Disable SCCM Task Sequence Deployment

When you disable a task sequence, you see a warning.

Are you sure you want to disable these task sequences? The task sequences will not be displayed or run on the computers where they are deployed. Any parent task sequences or task sequence deployment types referencing this task sequence will also be affected. Click OK to disable these task sequences. Otherwise, click Cancel.

To proceed with disabling the SCCM task sequence, select OK.

Disable SCCM Task Sequence Deployment
Disable SCCM Task Sequence Deployment

When you disable a task sequence using ConfigMgr console, you can verify or check whether it’s disabled or not. You must add the Enabled column to the SCCM console, and now you see Enabled = NO which confirms the SCCM task sequence has been disabled successfully.

Verify the Task Sequence Status
Verify the Task Sequence Status

Disable this task sequence on computers where it is deployed

Another way to disable the task sequence deployment is from the task sequence properties. Right-click a task sequence that you wish to disable and select Properties. In the ConfigMgr task sequence properties window, click Advanced tab. Check the option Disable this tasks sequence on computers where it is deployed. Click Apply and OK.

You won’t see a warning box when you disable the TS using this method.

Interesting Read – Learn how to suppress task sequence notifications in SCCM.

Disable this task sequence on computers where it is deployed
Disable this task sequence on computers where it is deployed

Disable SCCM Task Sequence using PowerShell

You can disable SCCM task sequence using PowerShell. Using the Set-CMTaskSequence PowerShell cmdlet with -EnableTaskSequence parameter, you can enable or disable a task sequence deployment.

Launch the ConfigMgr console, in the top-left corner click the down-arrow and select connect via Windows PowerShell.

ConfigMgr Console - Connect to PowerShell
ConfigMgr Console – Connect to PowerShell

Run the following PowerShell command to disable the task sequence deployment.

Set-CMTaskSequence -Name "Task Sequence Name" -EnableTaskSequence 0
  • EnableTaskSequence 0 – Disables the task sequence.
  • EnableTaskSequence 1 – Enables the task sequence.

Note: The Disable-CMTaskSequence cmdlet is deprecated, don’t use this command. You can use the Set-CMTaskSequence cmdlet to disable a task sequence.

Disable SCCM Task Sequence using PowerShell
Disable SCCM Task Sequence using PowerShell

Re-Enable Task Sequence Deployment

If you have disabled a task sequence, you can re-enable it from Configuration Manager console:

  • Launch the ConfigMgr console.
  • Go to Software Library\Overview\Operating Systems\Task Sequences.
  • Right-click a disabled task sequence and select Enable.
Re-Enable Task Sequence Deployment
Re-Enable Task Sequence Deployment

Leave a Comment