How to automate SCCM 2012 Task Sequence Media Creation

Just recently I went through the CM12 Console Task Sequence media creation wizard several times a day, so at some point I thought, this is a good candidate for automation.

If you have CU1 for SCCM 2012 SP1 already installed, you can take advantage of the new cmdlet New-CMTaskSequenceMedia Below an example.

CreateTaskMedia.ps1

If you haven’t installed CU1 yet, no worries. the command line tool CreateMedia.exe located in the SCCM Administrator Console’s bin directory does the same thing.

CreateTaskmedia.cmd

A detailed description of the command line options available for CreateMedia.exe is documented here.

All Task Sequence Media creation task activities are logged here:

"C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\AdminUILog\CreateTsMedia.log"

Leave a Reply

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