<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Logging All the Configuration Manager Task Sequence Variables</title><link>http://blogs.technet.com/b/deploymentguys/archive/2008/08/29/outputting-all-the-configuration-manager-task-sequence-variables.aspx</link><description>When debugging a MDT based Configuration Manager Task Sequence, it is often helpful to know what certain built-in Configuration Manager variables are set to during a step in the task sequence. For instance, you may want to see if _SMSTSLastActionRetCode</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Logging All the Configuration Manager Task Sequence Variables</title><link>http://blogs.technet.com/b/deploymentguys/archive/2008/08/29/outputting-all-the-configuration-manager-task-sequence-variables.aspx#3454696</link><pubDate>Wed, 21 Sep 2011 14:28:09 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3454696</guid><dc:creator>Michael Murgolo</dc:creator><description>&lt;p&gt;PK, the oLogging object is initialized in ZTIUtility.vbs (a collection of utility classes used by most MDT scripts). &amp;nbsp;As you can see the attached MDT-style script references this in the line &amp;quot;&amp;lt;script language=&amp;quot;VBScript&amp;quot; src=&amp;quot;ZTIUtility.vbs&amp;quot;/&amp;gt;&amp;quot;. &amp;nbsp;ZTIUtility.vbs must be in the same folder as the attached script for this to work.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3454696" width="1" height="1"&gt;</description></item><item><title>re: Logging All the Configuration Manager Task Sequence Variables</title><link>http://blogs.technet.com/b/deploymentguys/archive/2008/08/29/outputting-all-the-configuration-manager-task-sequence-variables.aspx#3454677</link><pubDate>Wed, 21 Sep 2011 13:21:13 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3454677</guid><dc:creator>PK</dc:creator><description>&lt;p&gt;Seems there is a disconnect. Where are we initializing &amp;quot;oLogging&amp;quot; object before we can call &amp;quot;oLogging.CreateEntry&amp;quot;. I can&amp;#39;t see what can this object can possibly be and what is the &amp;quot;, LogTypeInfo&amp;quot; doing there. Someone has to revisit this article and write probably few more lines to make all these meaningful.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3454677" width="1" height="1"&gt;</description></item><item><title>re: Logging All the Configuration Manager Task Sequence Variables</title><link>http://blogs.technet.com/b/deploymentguys/archive/2008/08/29/outputting-all-the-configuration-manager-task-sequence-variables.aspx#3366690</link><pubDate>Mon, 08 Nov 2010 22:11:30 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3366690</guid><dc:creator>I'm 80% there</dc:creator><description>&lt;p&gt;I realize that this is 2 years old, but this is exactly what I&amp;#39;m looking for (I think). I&amp;#39;ve downloaded the OutputTSVariable script and copied it to my Toolkit package (and updated my distribution point), but I don&amp;#39;t know what do do now.&lt;/p&gt;
&lt;p&gt;What do I do to my task sequence to execute this script?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3366690" width="1" height="1"&gt;</description></item><item><title>Logging Configuration Manager Task Sequence Variables</title><link>http://blogs.technet.com/b/deploymentguys/archive/2008/08/29/outputting-all-the-configuration-manager-task-sequence-variables.aspx#3439477</link><pubDate>Sat, 05 Jun 2010 04:05:16 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3439477</guid><dc:creator>Chris Nackers Blog</dc:creator><description>&lt;p&gt;When troubleshooting TS’s or when you simply want to know what is all being used in the TS, it can be&lt;/p&gt;
&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3439477" width="1" height="1"&gt;</description></item><item><title>re: Logging All the Configuration Manager Task Sequence Variables</title><link>http://blogs.technet.com/b/deploymentguys/archive/2008/08/29/outputting-all-the-configuration-manager-task-sequence-variables.aspx#3281602</link><pubDate>Thu, 17 Sep 2009 12:36:36 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3281602</guid><dc:creator>Joachim</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I tried to implement something very similair but in Powershell and got lost. Are you able to provide the same script snippet in Powershell?&lt;/p&gt;
&lt;p&gt;Here is my first part to get the variables. I am able to create a list of variables but what is the syntax to get the values?&lt;/p&gt;
&lt;p&gt;$TSEnv=New-Object -comobject Microsoft.SMS.TSEnvironment&amp;quot;&lt;/p&gt;
&lt;p&gt;foreach ($TSVar in $TSEnv.GetVariables()&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;$TSVar #That's only the name!!&lt;/p&gt;
&lt;p&gt;$TSVar._SMSLogPath # VALUE ?!????&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;Another issue is I want to set application variables. The problem is the same. I am not sure about the Syntax. In a VBScript&lt;/p&gt;
&lt;p&gt;$TSVar(&amp;quot;OSDComputerName&amp;quot;) works. But what about Powershell?&lt;/p&gt;
&lt;p&gt;$TSEnv(&amp;quot;Variable&amp;quot;)=xyz&lt;/p&gt;
&lt;p&gt;$TSEnv.Variable=xvz or can I access the variables via the standard $env variable?&lt;/p&gt;
&lt;p&gt;$env:Variable&lt;/p&gt;
&lt;p&gt;Any suggestion would be nice.&lt;/p&gt;
&lt;p&gt;Best Regards&lt;/p&gt;
&lt;p&gt;Joachim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3281602" width="1" height="1"&gt;</description></item><item><title>re: Logging All the Configuration Manager Task Sequence Variables</title><link>http://blogs.technet.com/b/deploymentguys/archive/2008/08/29/outputting-all-the-configuration-manager-task-sequence-variables.aspx#3137368</link><pubDate>Thu, 16 Oct 2008 19:37:42 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3137368</guid><dc:creator>Dave</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I've tried putting this on a network share and calling from a task sequence, but it's not really working for me. &amp;nbsp;It had a probem with this line &amp;quot;&amp;lt;script language=&amp;quot;VBScript&amp;quot; src=&amp;quot;ZTIUtility.vbs&amp;quot;/&amp;gt;&amp;quot; and even when removed, I couldn't find OutputTSVariables.log anywhere. &amp;nbsp;I even tried outputting to a text file from the vbs, but it's always empty.&lt;/p&gt;
&lt;p&gt;All I'm really looking for is a way in the task sequence to map a drive to the local DP. &amp;nbsp;It shows up in smsts.log and I've found references to %SMSDP% but it doesn't work. &amp;nbsp;Help?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Dave&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3137368" width="1" height="1"&gt;</description></item><item><title>re: Logging All the Configuration Manager Task Sequence Variables</title><link>http://blogs.technet.com/b/deploymentguys/archive/2008/08/29/outputting-all-the-configuration-manager-task-sequence-variables.aspx#3134576</link><pubDate>Thu, 09 Oct 2008 16:55:26 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3134576</guid><dc:creator>DeploymentGuys</dc:creator><description>&lt;p&gt;So apologies to all - credit to Frank Rojas for discovering this. The posted script had a typo - it was using a curly quote instead of straight quote and was probably when it was copied and pasted. Remember there is also a new and improved version in the second installment of this post.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3134576" width="1" height="1"&gt;</description></item><item><title>BlogMS Weekly Articles Published - 25th August 2008 to 31st August 2008</title><link>http://blogs.technet.com/b/deploymentguys/archive/2008/08/29/outputting-all-the-configuration-manager-task-sequence-variables.aspx#3115279</link><pubDate>Mon, 01 Sep 2008 13:56:47 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3115279</guid><dc:creator>BlogMS - Official Microsoft Team Blogs</dc:creator><description>&lt;p&gt;183 Microsoft Team blogs searched, 87 blogs have new articles in the past 7 days. 205 new articles found&lt;/p&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3115279" width="1" height="1"&gt;</description></item><item><title>BlogMS Weekly Articles Published - 25th August 2008 to 31st August 2008</title><link>http://blogs.technet.com/b/deploymentguys/archive/2008/08/29/outputting-all-the-configuration-manager-task-sequence-variables.aspx#3115194</link><pubDate>Mon, 01 Sep 2008 11:25:33 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3115194</guid><dc:creator>BlogMS - Official Microsoft Team Blogs</dc:creator><description>&lt;p&gt;183 Microsoft Team blogs searched, 87 blogs have new articles in the past 7 days. 205 new articles found&lt;/p&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3115194" width="1" height="1"&gt;</description></item></channel></rss>