In this post, you will learn how to export SCCM task sequence. After preparing or deploying a task sequence, you can export ConfigMgr task sequence that helps you to get a list of all associated steps and content based on your selection of all task sequences.
The exported task sequences can be imported to another environment instead of creating them from scratch that will be a time-saver for SCCM Admin and reduce the manual efforts, error in the production environment in case you wanted to shift from the test environment to production. You can export and import task sequences with or without their related objects. This referenced content includes the following objects –
- OS images
- Boot images
- Packages like the client install package
- Driver packages
- Applications with dependencies
- Other task sequences referenced with the Run task sequence step
You can export a task sequence either from the Configuration Manager console or use PowerShell cmdlet Export-CMTaskSequence to export a task sequence from Configuration Manager. If you want to export the task sequence with content, change -WithContent set this parameter to $true to export all content for the task sequence and dependencies and -WithDependence set this parameter to $true to export all task sequence dependencies.
- Easy Ways to Suppress SCCM Task Sequence Notifications
- How to Check ConfigMgr Task Sequence Size | SCCM
- Easy Steps to Disable SCCM Task Sequence Deployment
How to Check Task Sequence Dependencies in SCCM
Let’s follow the steps below to check the referenced content added to the task sequence –
- Launch SCCM console. Navigate to Software Library > Operating Systems > Task Sequences.
- Select the Task Sequence from the list and select References tab at bottom.
Here you see the list of referenced content type packages, applications, boot images or OS images details added in task sequence for operating system deployment.
Document Task Sequences📝- Often times, after creating an MDT or SCCM task sequence, you need to document it for yourself or your customers. You can follow the post to create Task Sequence Documentation Automatically
Export SCCM Task Sequence from Configuration Manager Console
You can follow the steps below to export the task sequences using the SCCM console. In the Configuration Manager console, go to the Software Library workspace, expand Operating Systems, and then select the Task Sequences node.
In the Task Sequence list, select the task sequences that you want to export. If you select more than one task sequence, they’re all stored in one export file. Select Export. This action starts the Export Task Sequence Wizard.
- On the General page, specify the following settings:
- File: Specify the location and name of the export file. If you enter the file name directly, be sure to include the .zip extension to the file name. If you browse for the export file, the wizard automatically adds this file name extension.
If you don’t want to export task sequence dependencies, deselect the option to Export all task sequence dependencies. By default, the wizard scans for all the related objects and exports them with the task sequence. These dependencies include any applications and child task sequences.
If you don’t want to copy the content from the package source to the export location, deselect the option to Export all content for the selected task sequences and dependencies. If you select this option, the Import Task Sequence Wizard uses the import path as the new package source location.
Administrator comments: Add a description of the task sequences to export.
On the Review Relates Objects page, SCCM start validating task sequences that may take a few moments depending on the speed of your network connection.
#With Option Selected – Export all content for the task sequence and dependencies.
Once the selected task sequence is validated, You can see the referenced content lists appears. You can review and click Next to continue.
#Without Option – Export all content for the task sequence and dependencies.
Once the selected task sequence is validated, You will not see the referenced content lists as we haven’t selected the option in the below scenario. You can review the task sequence package and click Next to continue.
- On the Summary page, Review the settings. Click Next.
- Wait for a moment, while exporting is in progress. After successfully completion, You will see the prompt The task “Export Task Sequence Wizard” completed sucessfully. Click Close to exit the wizard.
The wizard creates the following output files in a specified file location –
- If you don’t export content: a .zip file.
- If you export content: a .zip file and a folder named export_files, where export is the name of the .zip file that contains the exported content.
If you include content when you export a task sequence, make sure that you copy the .zip file and the export_files folder, or the import fails.
About Author -> 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, Windows 11 Deployment solution with Configuration Manager, Microsoft Deployment Toolkit (MDT), and Microsoft Intune.