Easy Steps to Copy SCCM Task Sequence for Deployment

In this post, you will learn to copy SCCM Task Sequence. Copying an existing SCCM task sequence, This action is useful to create a new task sequence based on an existing task sequence that is useful to test something or when you need to perform testing on different scenarios or create a similar task sequence.

Instead of creating a task sequence from scratch, you can use the helpful management options. The site creates a new task sequence and appends -Package ID to the name. A copied task sequence contains the same setting configurations as the original task sequence.

After you copy an existing SCCM task sequence, it’s best to rename the task sequence by providing the appropriate name, and Edit or Modify the Task Sequence based on requirements. You must deploy the task sequence.

When you make a copy of a task sequence in a folder, the copy is listed in that folder until you refresh the task sequence node. After the refresh, the copy appears in the root folder.

Patch My PC

You can export the ConfigMgr Task Sequence (with or without associated content) from SCCM Console or use PowerShell, which helps you get a list of all associated commands and content based on your selection

Easy Steps to Copy SCCM Task Sequence

A task sequence performs multiple steps or tasks on a Configuration Manager client computer without user intervention. Let’s follow the steps to create a copy of an existing task sequence in Configuration Manager.

  • Select an existing Task Sequence (For Example, Deploy Windows 10 21H2) in the Task Sequences node you want to copy. Right-click on the task sequence and choose Copy.
Select Task Sequence - Easy Steps to Copy SCCM Task Sequence 1
Select Task Sequence – Easy Steps to Copy SCCM Task Sequence 1

A display bar will appear for Copying selected task sequences started to put a new task sequence name. It will be a few seconds to complete.

Copying Selected Task Sequences - Easy Steps to Copy SCCM Task Sequence 2
Copying Selected Task Sequences – Easy Steps to Copy SCCM Task Sequence 2

Once the process completes, It creates a task sequence and appends -Package ID to the name. While the process copies all steps to the new task sequence, it doesn’t copy any active deployments.

Adaptiva

However, You can edit the name and other parameters by navigating to task sequence properties.

New Task Sequence - Easy Steps to Copy SCCM Task Sequence 3
New Task Sequence – Easy Steps to Copy SCCM Task Sequence 3

Here you see the task sequence has been copied successfully, You can proceed to modify and deploy it to collections to perform your requirements.

Task Sequence Copied Success - Easy Steps to Copy SCCM Task Sequence 4
Task Sequence Copied Success – Easy Steps to Copy SCCM Task Sequence 4

Copy SCCM Task Sequence Using PowerShell

Now, let’s quickly look at options to automate the making of a copy of the selected task sequence with the PowerShell Commands or SCCM PowerShell cmdlets. You can Launch the SCCM PowerShell Commandlets from the console.

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

Connect Via Windows PowerShell - Copy SCCM Task Sequence Using PowerShell 5
Connect Via Windows PowerShell – Copy SCCM Task Sequence Using PowerShell 5

If you get the following warning about the untrusted publisher, Type A, and press Enter.

Do you want to run software from this untrusted publisher?
File \Program Files\Microsoft Configuration
Manager\AdminConsole\bin\Microsoft.ConfigurationManagement.PowerShell.Types.ps1xml is published by CN=Microsoft
Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US and is not trusted on your system. Only run scripts
 from trusted publishers.
[V] Never run  [D] Do not run  [R] Run once  [A] Always run  [?] Help (default is "D"): A

The Copy-CMTaskSequence cmdlet creates a copy of an existing task sequence in Configuration Manager. This command makes a copy of the task sequence with the name Deploy Windows 10 21H2.

You can use the following parameters to Create a copy of an existing task sequence in Configuration Manager –

  • -Id: Specifies a task sequence ID.
  • Name: Specifies a task sequence name.
$newTS = Copy-CMTaskSequence -Name "Deploy Windows 10 21H2"
Copy-CMTaskSequence - Copy SCCM Task Sequence Using PowerShell 6
Copy-CMTaskSequence – Copy SCCM Task Sequence Using PowerShell 6

Author

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.