Being able to document Task Sequences is a handy thing, but doing it manually is incredibly tedious, error prone, and likely to miss details.
There is a process that has been around for a while now, so I figured I’d just post it here for easy reference as I keep forgetting where to find it. This process was developed for ConfigMgr 2007, but there is also a way to do it for 2012 as well.
First, the following TechNet blog post has the template you will need. Go to the bottom of the post and download the tsDocumentorv2.xsl file:
That post also has the instructions for doing a 2007 task sequence.
For a 2012 task sequence, there are a couple of options. One mentioned in the comments of the link above, and another from a TechNet forum question
- One using Powershell:
Chrispy 29 Aug 2013 7:27 PM
I think I may have found an easier (and quicker) way to create the XML file.
1) Load the SCCM PowerShell module
2) Connect to your site
3) $TS = Get-CMTaskSequence -Name “<Your Task Sequence Name” | select -ExpandProperty Sequence
4) Write-Output ‘<?xml-stylesheet type=”text/xsl” href=”tsDocumentorv2.xsl”?>’ | Out-File “C:\temp\TaskSequence.xml”
5) Write-Output $TS | Out-File “C:\temp\TaskSequence.xml” -Append
6) Ensure you have a copy of the stylesheet in the same directory as your xml file
7) Open the xml file in Internet Explorer
- And one using the consoles “export” function:
1. Export ConfigMgr 2012 Task Sequence to .zip file
2. Extract .zip file
3.Browse to SMS_TaskSequencePackage\packageid
4.Copy tsDocumentorv2.xls to this directory
5. open object.xml from SMS_TaskSequencePackage\packageid and search for “cdata”
6. copy everything between <![CDATA[ and ]]>
7. paste it into a new text file.
8. add <?xml-stylesheet type=”text/xsl” href=”tsDocumentorv2.xsl”?> to the top line
9. Save with a .xml file extension into SMS_TaskSequencePackage\packageid directory
10. Open in IE (if using IE 9 or 10, be sure to use compatibility mode.