<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Task-Sequence on Anything About IT</title><link>https://www.verboon.info/tags/task-sequence/</link><description>Recent content in Task-Sequence on Anything About IT</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sat, 04 Apr 2015 11:49:35 +0000</lastBuildDate><atom:link href="https://www.verboon.info/tags/task-sequence/index.xml" rel="self" type="application/rss+xml"/><item><title>Get-CMTSAgentSetupInfo (Get ConfigMgr Task Sequence Agent Setup Step Info)</title><link>https://www.verboon.info/2015/04/get-cmtsagentsetupinfo-get-configmgr-task-sequence-agent-setup-step-info/</link><pubDate>Sat, 04 Apr 2015 11:49:35 +0000</pubDate><guid>https://www.verboon.info/2015/04/get-cmtsagentsetupinfo-get-configmgr-task-sequence-agent-setup-step-info/</guid><description>&lt;p&gt;We recently performed an upgrade of our ConfigMgr 2012 R2 Infrastructure and due to way how we install the Agent and Agent patches, we had to update the “Setup Windows and ConfigMgr” step within a number of our Task Sequences. I therefore wrote the below Get-CMTSAgentSetupInfo.ps1 PowerShell script which dumps all the ConfigMgr Agent Setup step information from all or specified task sequences.&lt;/p&gt;
&lt;p&gt;The script retrieves the following information:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Task Sequence Name&lt;/p&gt;</description></item><item><title>PowerShell Script to detect ConfigMgr Task Sequence unfriendly Software Updates</title><link>https://www.verboon.info/2013/11/powershell-script-to-detect-configmgr-task-sequence-unfriendly-software-updates/</link><pubDate>Tue, 05 Nov 2013 23:58:55 +0000</pubDate><guid>https://www.verboon.info/2013/11/powershell-script-to-detect-configmgr-task-sequence-unfriendly-software-updates/</guid><description>&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;: 15 Une 2014 - Added &lt;a href="http://support.microsoft.com/kb/2965788"&gt;KB2965788&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you’re dealing with ConfigMgr and OS Deployment task sequences you’re probably aware of the KB article recently published by Microsoft called “&lt;a href="http://support.microsoft.com/kb/2894518"&gt;Task sequence fails in Configuration Manager if software updates require multiple restarts&lt;/a&gt;”.&lt;/p&gt;
&lt;p&gt;Let’s hope the list of KBs causing this issue isn’t going to grow too much over time, in any case we’ve decided that we would continue to review the article whenever we add new patches to our infrastructure. To simplify the task of checking whether one of the affected KBs has slipped into a software update group, I created the below script.&lt;/p&gt;</description></item><item><title>How to automate SCCM 2012 Task Sequence Media Creation</title><link>https://www.verboon.info/2013/04/how-to-automate-sccm-2012-task-sequence-media-creation/</link><pubDate>Mon, 15 Apr 2013 20:46:29 +0000</pubDate><guid>https://www.verboon.info/2013/04/how-to-automate-sccm-2012-task-sequence-media-creation/</guid><description>&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;If you have &lt;a href="http://support.microsoft.com/kb/2817245/en-us"&gt;CU1&lt;/a&gt; for SCCM 2012 SP1 already installed, you can take advantage of the new cmdlet **New-CMTaskSequenceMedia **Below an example.&lt;/p&gt;
&lt;p&gt;CreateTaskMedia.ps1&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#282a36;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-powershell" data-lang="powershell"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#8be9fd;font-style:italic"&gt;import-module&lt;/span&gt; (&lt;span style="color:#8be9fd;font-style:italic"&gt;$Env:SMS_ADMIN_UI_PATH&lt;/span&gt;.Substring(&lt;span style="color:#bd93f9"&gt;0&lt;/span&gt;,&lt;span style="color:#8be9fd;font-style:italic"&gt;$Env:SMS_ADMIN_UI_PATH&lt;/span&gt;.Length-&lt;span style="color:#bd93f9"&gt;5&lt;/span&gt;) + &lt;span style="color:#f1fa8c"&gt;&amp;#39;\ConfigurationManager.psd1&amp;#39;&lt;/span&gt;)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#8be9fd;font-style:italic"&gt;cd &lt;/span&gt;NL1:
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#8be9fd;font-style:italic"&gt;New-CMTaskSequenceMedia&lt;/span&gt; -BootableMediaOption -MediaInputType CDDVD -ProtectPassword &lt;span style="color:#8be9fd;font-style:italic"&gt;$false&lt;/span&gt; -BootImageId NL100002 -DistributionPointServerName labsccm01.labhome.local -ManagementPointServerName labsccm01.labhome.local -MediaMode Dynamic -MediaPath C:\Sources\TSMedia\batchcreatedmedia1.iso -MediaSize SizeUnlimited -EnableUnknownSupport &lt;span style="color:#8be9fd;font-style:italic"&gt;$false&lt;/span&gt;  -CreateMediaSelfCertificate &lt;span style="color:#8be9fd;font-style:italic"&gt;$true&lt;/span&gt; -AllowUnattendedDeployment &lt;span style="color:#8be9fd;font-style:italic"&gt;$false&lt;/span&gt; -UserDeviceAffinity DoNotAllow
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;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.&lt;/p&gt;</description></item><item><title>List Task Sequence Variables and Values Script</title><link>https://www.verboon.info/2012/12/list-task-sequence-variables-and-values-script/</link><pubDate>Fri, 21 Dec 2012 13:31:36 +0000</pubDate><guid>https://www.verboon.info/2012/12/list-task-sequence-variables-and-values-script/</guid><description>&lt;p&gt;For years I have been using the following script from &lt;a href="http://www.myitforum.com/articles/42/view.asp?id=11729"&gt;myITforum&lt;/a&gt; to list Task Sequence Environment Variables and Values&lt;/p&gt;
&lt;p&gt;Set oTSEnv = CreateObject(&amp;ldquo;Microsoft.SMS.TSEnvironment&amp;rdquo;) &lt;br&gt;
For Each oVar In oTSEnv.GetVariables &lt;br&gt;
WScript.Echo oVar &amp;amp; &amp;ldquo;=&amp;rdquo; &amp;amp; oTSEnv(oVar) &lt;br&gt;
Next&lt;/p&gt;
&lt;p&gt;Because there are so many variables, the only useful way to use the script is to pipe the output into a file, then open that file and search for the variable and its value.&lt;/p&gt;
&lt;p&gt;So I have created the created the script below that can do the following:&lt;/p&gt;</description></item></channel></rss>