<?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>The Deployment Guys : BDD 2007</title><link>http://blogs.technet.com/deploymentguys/archive/tags/BDD+2007/default.aspx</link><description>Tags: BDD 2007</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Back to basics #1 – Locking the computer during deployment</title><link>http://blogs.technet.com/deploymentguys/archive/2008/10/01/back-to-basics-1-locking-the-computer-during-deployment.aspx</link><pubDate>Wed, 01 Oct 2008 10:26:01 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3130590</guid><dc:creator>DeploymentGuys</dc:creator><slash:comments>9</slash:comments><comments>http://blogs.technet.com/deploymentguys/comments/3130590.aspx</comments><wfw:commentRss>http://blogs.technet.com/deploymentguys/commentrss.aspx?PostID=3130590</wfw:commentRss><wfw:comment>http://blogs.technet.com/deploymentguys/rsscomments.aspx?PostID=3130590</wfw:comment><description>&lt;p&gt;This is the first post in a series that will cover some of the more simple/basic tricks that you can do with MDT, but that are often overlooked.&amp;#160; I’ll be the first to admit that a couple of them I only learnt recently, even though I have been using BDD/MDT for years.&lt;/p&gt;  &lt;p&gt;During the deployment of a computer, MDT will auto-logon Windows using the local Administrator account in order to run its task sequence; during this time, the computer is left logged on as administrator with the desktop unlocked for all to see.&amp;#160; Consequently, anyone who happens to walk past the computer during its deployment can use it with full administrative access.&lt;/p&gt;  &lt;p&gt;The best way to protect your computer systems from any unwanted access is to simply lock the computer during the Windows phase of the deployment.&amp;#160; To do this, just add a “Run Command Line” action to your task sequence, and place the following command in the command line of this action:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;strong&gt;rundll32 user32.dll,LockWorkStation&lt;/strong&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.technet.com/blogfiles/deploymentguys/WindowsLiveWriter/Backtobasics1_7D7E/image_2.png"&gt;&lt;img title="image" style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="222" alt="image" src="http://blogs.technet.com/blogfiles/deploymentguys/WindowsLiveWriter/Backtobasics1_7D7E/image_thumb.png" width="644" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;You can place the action at any point in the task sequence, as long as it is executed from within Windows rather than during any Windows PE stage.&amp;#160; It doesn’t matter if you have any reboot actions in the task sequence because, even though the workstation is locked, it will still reboot; just remember that you’ll need to execute the command again after reboot in order to lock the computer again.&amp;#160; Bear in mind though that you won’t be able to see the summary screen at the end of deployment so you won’t know when it has finished.&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;em&gt;This post was contributed by &lt;strong&gt;Daniel Oxley&lt;/strong&gt; a consultant with Microsoft Services Spain&lt;/em&gt;&lt;/p&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3130590" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/deploymentguys/archive/tags/BDD+2007/default.aspx">BDD 2007</category><category domain="http://blogs.technet.com/deploymentguys/archive/tags/Microsoft+Deployment/default.aspx">Microsoft Deployment</category><category domain="http://blogs.technet.com/deploymentguys/archive/tags/Deployment/default.aspx">Deployment</category><category domain="http://blogs.technet.com/deploymentguys/archive/tags/Tips+and+Tricks/default.aspx">Tips and Tricks</category></item><item><title>Documenting Your Task Sequences Automagically</title><link>http://blogs.technet.com/deploymentguys/archive/2008/08/17/documenting-your-task-sequences-automagically.aspx</link><pubDate>Sun, 17 Aug 2008 08:53:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3107239</guid><dc:creator>DeploymentGuys</dc:creator><slash:comments>8</slash:comments><comments>http://blogs.technet.com/deploymentguys/comments/3107239.aspx</comments><wfw:commentRss>http://blogs.technet.com/deploymentguys/commentrss.aspx?PostID=3107239</wfw:commentRss><wfw:comment>http://blogs.technet.com/deploymentguys/rsscomments.aspx?PostID=3107239</wfw:comment><description>&lt;P&gt;Often times, after creating an MDT or SCCM task sequence, you need to document it for yourself or your customers. Usually, this involves creating a table with the groups and steps, extracting their descriptions, identifying conditions and denoting the step actions and variables and then having&amp;nbsp;format it all nicely and with indents denoting hierarchy.&amp;nbsp;All of this information is usually already&amp;nbsp;in the XML of the task sequence and all you're really doing is formatting. You can automatically format XML documents by using an XSL transform with the right logic. In order to do this:&lt;/P&gt;
&lt;P&gt;1. Copy the attached file at the bottom of the post to the same folder as your task sequence.&lt;/P&gt;
&lt;P&gt;2. Open your task sequence in your favourite text editor.&lt;/P&gt;
&lt;P&gt;3. After the first line which should look something like this:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&amp;lt;?xml version="1.0"?&amp;gt; or &amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;&lt;/P&gt;
&lt;P&gt;enter the following as the second line:&lt;/P&gt;
&lt;P&gt;&amp;lt;?xml-stylesheet type="text/xsl" href="tsDocumentorv1.xsl"?&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;4. Save your task sequence file and open it in Internet Explorer. Presto! The XSL takes care of formatting, indents and sizing. &lt;/P&gt;
&lt;P&gt;Your Task Sequence should look like this:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.technet.com/blogfiles/deploymentguys/WindowsLiveWriter/DocumentingyourTaskSequencesAutomagicall_162E/image_2.png" mce_href="http://blogs.technet.com/blogfiles/deploymentguys/WindowsLiveWriter/DocumentingyourTaskSequencesAutomagicall_162E/image_2.png"&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=340 alt=image src="http://blogs.technet.com/blogfiles/deploymentguys/WindowsLiveWriter/DocumentingyourTaskSequencesAutomagicall_162E/image_thumb.png" width=712 border=0 mce_src="http://blogs.technet.com/blogfiles/deploymentguys/WindowsLiveWriter/DocumentingyourTaskSequencesAutomagicall_162E/image_thumb.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;You can even change the styles of groups and steps easily.&lt;/P&gt;
&lt;P&gt;1. Open up the tsDocumentorv1.xsl file&lt;/P&gt;
&lt;P&gt;2. Edit the following section:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&amp;lt;STYLE TYPE="text/css"&amp;gt; &lt;BR&gt;&amp;nbsp; TD.group { background-color:teal;color:white } &lt;BR&gt;&amp;nbsp; TD.step { background-color:beige } &lt;BR&gt;&amp;lt;/STYLE&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Change the colours or any other css properties you choose!&lt;/P&gt;
&lt;P&gt;The XSL should work with task sequences created with BDD 2007, MDT 2008 and SCCM 2007.&lt;/P&gt;
&lt;P&gt;Please try it out and post comments.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;This post was contributed by &lt;/EM&gt;&lt;STRONG&gt;&lt;I&gt;Aly Shivji&lt;/I&gt;&lt;/STRONG&gt;&lt;EM&gt; a consultant with Microsoft Services - U.S. East Region. Credit to &lt;STRONG&gt;Michael Murgolo&lt;/STRONG&gt; for initial idea and effort.&lt;/EM&gt;&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3107239" width="1" height="1"&gt;</description><enclosure url="http://blogs.technet.com/deploymentguys/attachment/3107239.ashx" length="6849" type="text/xml" /><category domain="http://blogs.technet.com/deploymentguys/archive/tags/BDD+2007/default.aspx">BDD 2007</category><category domain="http://blogs.technet.com/deploymentguys/archive/tags/Microsoft+Deployment/default.aspx">Microsoft Deployment</category><category domain="http://blogs.technet.com/deploymentguys/archive/tags/SCCM+2007/default.aspx">SCCM 2007</category><category domain="http://blogs.technet.com/deploymentguys/archive/tags/ConfigMgr/default.aspx">ConfigMgr</category><category domain="http://blogs.technet.com/deploymentguys/archive/tags/Configuration+Manager/default.aspx">Configuration Manager</category><category domain="http://blogs.technet.com/deploymentguys/archive/tags/Tips+and+Tricks/default.aspx">Tips and Tricks</category></item><item><title>Useful Script Number 6 - Pausing the Task Sequence</title><link>http://blogs.technet.com/deploymentguys/archive/2008/07/07/useful-script-number-6-pausing-the-task-sequence.aspx</link><pubDate>Mon, 07 Jul 2008 19:59:18 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3084983</guid><dc:creator>DeploymentGuys</dc:creator><slash:comments>5</slash:comments><comments>http://blogs.technet.com/deploymentguys/comments/3084983.aspx</comments><wfw:commentRss>http://blogs.technet.com/deploymentguys/commentrss.aspx?PostID=3084983</wfw:commentRss><wfw:comment>http://blogs.technet.com/deploymentguys/rsscomments.aspx?PostID=3084983</wfw:comment><description>&lt;p&gt;Have you ever wanted to pause the task sequence in MDT 2008 or ConfigMgr 2007 for a few seconds while something catches up...? I had a requirement to do this recently where I ran a &lt;a href="http://blogs.technet.com/deploymentguys/archive/2008/04/18/useful-script-number-3-turning-the-windows-vista-sidebar-on-and-off.aspx"&gt;task to close and cancel the Windows Sidebar&lt;/a&gt; at the start of the State Restore phase of the task sequencer and then turn the Windows Sidebar back on again at the end of the State Restore phase - I was doing this as the Windows Sidebar can sometimes get in the way of some customisation scripts and you can also see peculiar VB messages when 2007 Office System updates are applied. When the Windows Sidebar is turned back on, there is a couple of seconds before the Sidebar actually appears - yet my task for turning on the Sidebar had returned and the task sequence had moved on...it made be think that there may be other situations where a slight delay in returning to the task sequence may be useful - sure you could add sleep commands to the scripts that your running as commands - but that doesn't help with the tasks that are not scripted - so here is an MDT based script that will pause the task sequence for a specified number of seconds (specified on the command line)&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;I first have a couple of variables to store the time to pause (strTime) and the script name (strSName - for logging purposes) and the integer argument for the sleep method&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;font face="Courier New"&gt;Dim strTime, strSName, IntTime&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font face="Courier"&gt;&lt;font face="Courier New"&gt;ZTIProcess=1&lt;/font&gt; &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;...I then use a call to ZTIUtility.wsf to set the script name to the strSName variable - this is then used to insert the script name at the start of each line in the log.&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;font face="Courier"&gt;&lt;font face="Courier New"&gt;strSName=oUtility.ScriptName&lt;/font&gt; &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;...then it's another call to ZTIUtility.wsf to use the arguments class - this makes passing input to the script via the command line easy - in this case I am setting a command line input called &amp;quot;Time&amp;quot; &lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;font face="Courier New"&gt;strTime = oUtility.Arguments(&amp;quot;Time&amp;quot;) &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font face="Courier"&gt;&lt;font face="Courier New"&gt;oLogging.CreateEntry strSName &amp;amp; &amp;quot;: Starting Actions ********************************************* &amp;quot;,LogTypeInfo&lt;/font&gt; &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;...then I check that Time has been specified as a command line input (exit if not) or set the IntTime to number of seconds from the command line x 1000 to get milliseconds&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;font face="Courier New"&gt;If strTime=&amp;quot;&amp;quot; Then      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; oLogging.CreateEntry strSName &amp;amp; &amp;quot;: No pause time was specified on the command line.&amp;quot;,LogTypeError       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; ZTIProcess=90       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; Exit Function       &lt;br /&gt;Else       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; oLogging.CreateEntry strSName &amp;amp; &amp;quot;: Pause time has been set to &amp;quot; &amp;amp; strTime &amp;amp; &amp;quot; seconds&amp;quot;,LogTypeInfo&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font face="Courier"&gt;&lt;font face="Courier New"&gt;&amp;#160;&amp;#160;&amp;#160; IntTime = strTime * 1000&amp;#160; &lt;br /&gt;End if&lt;/font&gt; &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;...I then take the intTime (in milliseconds) and add it to the sleep method to pause the script&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&lt;font face="Courier New"&gt;oLogging.CreateEntry strSName &amp;amp; &amp;quot;: Task Sequence will pause for &amp;quot; &amp;amp; int(IntTime/1000) &amp;amp; &amp;quot; seconds&amp;quot;,LogTypeInfo &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font face="Courier New"&gt;wscript.sleep intTime &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font face="Courier New"&gt;oLogging.CreateEntry strSName &amp;amp; &amp;quot;: Task Sequence has been paused for &amp;quot; &amp;amp; int(IntTime/1000) &amp;amp; &amp;quot; seconds - returning control to the Task Sequence now&amp;quot;,LogTypeInfo &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font face="Courier"&gt;&lt;font face="Courier New"&gt;oLogging.CreateEntry strSName &amp;amp; &amp;quot;: Completed Actions ********************************************* &amp;quot;,LogTypeInfo        &lt;br /&gt;ZTIProcess = 0         &lt;br /&gt;End Function&lt;/font&gt; &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;The script is called &lt;strong&gt;CFG-TSPause.wsf&lt;/strong&gt; so the command line to run it would be &lt;strong&gt;CFG-TSPause.wsf /Time:xx&lt;/strong&gt; (where xx = the number of seconds that you want to pause the task sequence for) Drop the script into your &lt;strong&gt;&amp;lt;Deployment Share&amp;gt;\Scripts&lt;/strong&gt; directory. You can then add the script anywhere in your task sequence by adding a &lt;strong&gt;Run Command Line task&lt;/strong&gt; and specifying the script and the command line input for the number of seconds you want to pause.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.technet.com/blogfiles/deploymentguys/WindowsLiveWriter/UsefulScriptNumber6PausingtheTaskSequenc_FCEF/image_2.png"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="519" alt="image" src="http://blogs.technet.com/blogfiles/deploymentguys/WindowsLiveWriter/UsefulScriptNumber6PausingtheTaskSequenc_FCEF/image_thumb.png" width="572" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;As usual, the full script is up on the Deployment Guys SkyDrive:&lt;/p&gt;  &lt;p&gt;&lt;/p&gt; &lt;iframe style="border-right: #dde5e9 1px solid; padding-right: 0px; border-top: #dde5e9 1px solid; padding-left: 0px; padding-bottom: 0px; margin: 3px; border-left: #dde5e9 1px solid; width: 240px; padding-top: 0px; border-bottom: #dde5e9 1px solid; height: 66px; background-color: #ffffff" marginwidth="0" marginheight="0" src="http://cid-7be6feba9e7c999c.skydrive.live.com/embedrowdetail.aspx/DeploymentGuys/CFG-TSPause.zip" frameborder="0" scrolling="no"&gt;&lt;/iframe&gt;  &lt;p&gt;This post was contributed by &lt;b&gt;Richard Smith&lt;/b&gt; a Senior Consultant with Microsoft Services, UK.&lt;/p&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3084983" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/deploymentguys/archive/tags/BDD+2007/default.aspx">BDD 2007</category><category domain="http://blogs.technet.com/deploymentguys/archive/tags/Microsoft+Deployment/default.aspx">Microsoft Deployment</category><category domain="http://blogs.technet.com/deploymentguys/archive/tags/SCCM+2007/default.aspx">SCCM 2007</category><category domain="http://blogs.technet.com/deploymentguys/archive/tags/ConfigMgr/default.aspx">ConfigMgr</category><category domain="http://blogs.technet.com/deploymentguys/archive/tags/Scripts/default.aspx">Scripts</category><category domain="http://blogs.technet.com/deploymentguys/archive/tags/Deployment/default.aspx">Deployment</category><category domain="http://blogs.technet.com/deploymentguys/archive/tags/Tips+and+Tricks/default.aspx">Tips and Tricks</category></item><item><title>Useful Script Number 4 - Silent Installation of Windows AIK 1.1</title><link>http://blogs.technet.com/deploymentguys/archive/2008/04/30/useful-script-number-4-silent-installation-of-windows-aik-1-1.aspx</link><pubDate>Wed, 30 Apr 2008 22:25:49 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3047795</guid><dc:creator>DeploymentGuys</dc:creator><slash:comments>3</slash:comments><comments>http://blogs.technet.com/deploymentguys/comments/3047795.aspx</comments><wfw:commentRss>http://blogs.technet.com/deploymentguys/commentrss.aspx?PostID=3047795</wfw:commentRss><wfw:comment>http://blogs.technet.com/deploymentguys/rsscomments.aspx?PostID=3047795</wfw:comment><description>&lt;p&gt;One of the things that you may need to do - particularly if you are tying to automate the creation of a deployment server in a lab environment - is install the Windows Automated Installation Kit. You may think that because Windows AIK is supplied as .msi files that this would be a simple process, however there is a requirement to manually accept the licensing agreement with no switch to bypass and the msi is coded to only run in full UI mode. Also there is the issue of installing the correct version (x86/x64 versions) on the correct platform.&lt;/p&gt;  &lt;p&gt;With this in mind, back when Windows AIK was released (v1.0), I created a small &lt;a href="http://www.autoitscript.com"&gt;Autoit&lt;/a&gt; script to screen scrape the installation - I have now updated this script for Windows AIK 1.1&lt;/p&gt;  &lt;p&gt;&lt;font face="Courier New"&gt;#Region ;**** Directives created by AutoIt3Wrapper_GUI ****      &lt;br /&gt;#AutoIt3Wrapper_UseUpx=n       &lt;br /&gt;#AutoIt3Wrapper_UseAnsi=y       &lt;br /&gt;#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font face="Courier New"&gt;;Copyright (C) 2008      &lt;br /&gt;;You have a royalty-free right to use, modify, reproduce and distribute the Sample Application Files (and/or any modified version) in any way       &lt;br /&gt;;you find useful, provided that you agree that Microsoft and the author have no warranty, obligations or liability for any Sample Application Files.&lt;/font&gt;&lt;font face="Courier"&gt;      &lt;br /&gt;&lt;font face="Courier New"&gt;;        &lt;br /&gt;; AutoIt Version: 3.2.10.0         &lt;br /&gt;; Language:&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; English         &lt;br /&gt;; Platform:&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Windows         &lt;br /&gt;; Author:&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Richard Smith - Microsoft UK         &lt;br /&gt;; Script Function:         &lt;br /&gt;;&amp;#160;&amp;#160; Gets CPU architecture then install the Windows Automated Installation Kit (Windows AIK 1.1) silently &lt;/font&gt;&lt;/font&gt;    &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;&lt;font face="Courier"&gt;&lt;font face="Courier New"&gt;#include &amp;lt;Constants.au3&amp;gt;&lt;/font&gt; &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font face="Courier New"&gt;;Set variables and constants      &lt;br /&gt;Dim $Item       &lt;br /&gt;Dim $sCmd &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font face="Courier New"&gt;;Check the CPU architecture      &lt;br /&gt;$Item = @ProcessorArch &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font face="Courier New"&gt;; Set the msi to be run based on architecture found      &lt;br /&gt;If $Item = &amp;quot;X86&amp;quot; Then       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; $sCmd = &amp;quot; waikx86.msi&amp;quot;       &lt;br /&gt;ElseIf $Item = &amp;quot;X64&amp;quot; Then       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; $sCmd = &amp;quot; waikamd64.msi&amp;quot;       &lt;br /&gt;ElseIf $Item = &amp;quot;IA64&amp;quot; Then       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; $sCmd = &amp;quot; waikia64.msi&amp;quot;       &lt;br /&gt;Else       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; MsgBox(0,'Error','The processor type is not supported - Setup will now exit')       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; Exit       &lt;br /&gt;EndIf &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font face="Courier New"&gt;;Run the installation command      &lt;br /&gt;Run (&amp;quot;msiexec.exe /i&amp;quot; &amp;amp; $sCmd) &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font face="Courier New"&gt;;Program Installation Automation      &lt;br /&gt;; Wait for the Welcome window       &lt;br /&gt;WinWait(&amp;quot;Windows Automated Installation Kit&amp;quot;, &amp;quot;Welcome to the Windows Automated Installation Kit Setup Wizard&amp;quot;)       &lt;br /&gt;Send(&amp;quot;!n&amp;quot;) &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font face="Courier New"&gt;; Wait for the EULA window to become active      &lt;br /&gt;WinWaitActive(&amp;quot;Windows Automated Installation Kit&amp;quot;, &amp;quot;License Terms&amp;quot;)       &lt;br /&gt;Send(&amp;quot;!a&amp;quot;)       &lt;br /&gt;Send(&amp;quot;!n&amp;quot;) &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font face="Courier New"&gt;; Wait for the Select Install Location window to become active      &lt;br /&gt;WinWaitActive(&amp;quot;Windows Automated Installation Kit&amp;quot;, &amp;quot;Select Installation Folder&amp;quot;)       &lt;br /&gt;Send(&amp;quot;!n&amp;quot;) &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font face="Courier New"&gt;; Wait for the Confirm Install windows to become active      &lt;br /&gt;WinWaitActive(&amp;quot;Windows Automated Installation Kit&amp;quot;, &amp;quot;Confirm Installation&amp;quot;)       &lt;br /&gt;Send(&amp;quot;!n&amp;quot;) &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font face="Courier New"&gt;; Wait for the Install Complete window to become active      &lt;br /&gt;WinWait(&amp;quot;Windows Automated Installation Kit&amp;quot;, &amp;quot;Installation Complete&amp;quot;)       &lt;br /&gt;Send(&amp;quot;!c&amp;quot;) &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font face="Courier New"&gt;; Wait for the Reboot Required window to become active (NO LONGER REQUIRED FOR WAIK VERSION 1.1)      &lt;br /&gt;;WinWait(&amp;quot;Windows Automated Installation Kit&amp;quot;, &amp;quot;&amp;quot;)       &lt;br /&gt;;Send(&amp;quot;!y&amp;quot;) &lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font face="Courier New"&gt;Exit&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;The first part of the script uses an Autoit function - &lt;strong&gt;@ProcessorArch&lt;/strong&gt; to get the processor type of the machine that the script is being run on. Based on the processor found, the script sets the correct .msi file to run.&lt;/p&gt;  &lt;p&gt;The script then uses the Autoit &lt;strong&gt;WinWait&lt;/strong&gt; and &lt;strong&gt;WinWaitActive&lt;/strong&gt; functions to wait for specific screens to appear and then uses the &lt;strong&gt;Send&lt;/strong&gt; function to deliver the correct key stroke to that window.&lt;/p&gt;  &lt;p&gt;As usual the Autoit source script (.au3 file) and the compiled executable (x86 .exe file) are available from the Deployment Guys SkyDrive - the executable must be placed into the Windows AIK 1.1 source directory (where the .msi files are) and run from there.&lt;/p&gt; &lt;iframe style="border-right: #dde5e9 1px solid; padding-right: 0px; border-top: #dde5e9 1px solid; padding-left: 0px; padding-bottom: 0px; margin: 3px; border-left: #dde5e9 1px solid; width: 240px; padding-top: 0px; border-bottom: #dde5e9 1px solid; height: 66px; background-color: #ffffff" marginwidth="0" marginheight="0" src="http://cid-7be6feba9e7c999c.skydrive.live.com/embedrowdetail.aspx/DeploymentGuys/Install_WAIK1.1.zip" frameborder="0" scrolling="no"&gt;&lt;/iframe&gt;  &lt;p&gt;&amp;#160;&lt;i&gt;This post was contributed by &lt;b&gt;Richard Smith &lt;/b&gt;- a Senior Consultant with Microsoft Services, UK.&lt;/i&gt;&lt;/p&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3047795" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/deploymentguys/archive/tags/BDD+2007/default.aspx">BDD 2007</category><category domain="http://blogs.technet.com/deploymentguys/archive/tags/Microsoft+Deployment/default.aspx">Microsoft Deployment</category><category domain="http://blogs.technet.com/deploymentguys/archive/tags/Scripts/default.aspx">Scripts</category><category domain="http://blogs.technet.com/deploymentguys/archive/tags/Deployment/default.aspx">Deployment</category></item><item><title>Getting help when you are really stuck</title><link>http://blogs.technet.com/deploymentguys/archive/2008/04/25/getting-help-when-you-are-really-stuck.aspx</link><pubDate>Fri, 25 Apr 2008 10:42:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3044709</guid><dc:creator>DeploymentGuys</dc:creator><slash:comments>3</slash:comments><comments>http://blogs.technet.com/deploymentguys/comments/3044709.aspx</comments><wfw:commentRss>http://blogs.technet.com/deploymentguys/commentrss.aspx?PostID=3044709</wfw:commentRss><wfw:comment>http://blogs.technet.com/deploymentguys/rsscomments.aspx?PostID=3044709</wfw:comment><description>&lt;P&gt;A lot of people think that because BDD and MDT are free products they are not eligible for support from Microsoft.&amp;nbsp; This question seems to crop up quite often and people are often surprised when I point out the truth!&lt;/P&gt;
&lt;P&gt;So, in true A-Team spirit (i.e. "If you have a problem, if no one else can help, and if you can find them, maybe you can hire the A-Team."):&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;If you have a problem with BDD or MDT, if no one else has been able to help you, maybe you can try Premier Support!&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It is simple, just call the support number which you can find here: &lt;A href="http://www.microsoft.com/services/microsoftservices/srv_premier.mspx" mce_href="http://www.microsoft.com/services/microsoftservices/srv_premier.mspx"&gt;http://www.microsoft.com/services/microsoftservices/srv_premier.mspx&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Make sure that you state that you have a BDD/MDT issue because if you talk about deployment you might be routed to a different queue.&amp;nbsp; Also it is worth mentioning that Premier Support have a different style to the A-Team in that they don't use guns and explosions to fix things.&amp;nbsp; Thanks to the MSDeployment guys who first highlighted this problem on their &lt;A href="http://blogs.technet.com/msdeployment/archive/2008/01/30/how-to-receive-support-for-microsoft-deployment.aspx" mce_href="http://blogs.technet.com/msdeployment/archive/2008/01/30/how-to-receive-support-for-microsoft-deployment.aspx"&gt;blog&lt;/A&gt;.&amp;nbsp; Of course, please carrying commenting on our blog as well!&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;This post was contributed by &lt;STRONG&gt;Daniel Oxley&lt;/STRONG&gt; a consultant with Microsoft Services Spain&lt;/EM&gt;&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3044709" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/deploymentguys/archive/tags/BDD+2007/default.aspx">BDD 2007</category><category domain="http://blogs.technet.com/deploymentguys/archive/tags/Microsoft+Deployment/default.aspx">Microsoft Deployment</category><category domain="http://blogs.technet.com/deploymentguys/archive/tags/Deployment/default.aspx">Deployment</category><category domain="http://blogs.technet.com/deploymentguys/archive/tags/Support/default.aspx">Support</category></item><item><title>BDD 2007 Lite Touch and SMS 2003 Zero Touch Video Walkthroughs</title><link>http://blogs.technet.com/deploymentguys/archive/2008/04/03/bdd-2007-lite-touch-and-sms-2003-zero-touch-video-walkthroughs.aspx</link><pubDate>Thu, 03 Apr 2008 14:51:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3027649</guid><dc:creator>DeploymentGuys</dc:creator><slash:comments>8</slash:comments><comments>http://blogs.technet.com/deploymentguys/comments/3027649.aspx</comments><wfw:commentRss>http://blogs.technet.com/deploymentguys/commentrss.aspx?PostID=3027649</wfw:commentRss><wfw:comment>http://blogs.technet.com/deploymentguys/rsscomments.aspx?PostID=3027649</wfw:comment><description>&lt;H4&gt;&lt;/H4&gt;
&lt;H6&gt;&lt;/H6&gt;
&lt;H6&gt;&lt;/H6&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have had a number of emails and comments requesting the location for the video walkthroughs featuring BDD 2007 Lite Touch and BDD 2007/SMS 2003 Zero Touch Setup, so I have re-posted them to the Deployment Guys SkyDrive for download:&lt;/P&gt;
&lt;P&gt;The BDD 2007 Lite Touch Video Walkthrough download pack (23.5 MB) contains the following videos - view them in the order they are listed to see the overall process.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;1. Lite Touch Configuration.wmv &lt;/LI&gt;
&lt;LI&gt;2. Lite Touch Office 2007 Configuration.wmv &lt;/LI&gt;
&lt;LI&gt;3. Lite Touch Client NEW COMPUTER.wmv &lt;/LI&gt;
&lt;LI&gt;4. Lite Touch Client REFRESH COMPUTER.wmv &lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;&lt;A href="http://www.deploymentforum.com/Library/Webcasts/tabid/129/Default.aspx" mce_href="http://www.deploymentforum.com/Library/Webcasts/tabid/129/Default.aspx"&gt;View all of these walkthroughs on-line at Deployment Forum!&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;The BDD 2007 Zero Touch Video Walkthrough download pack (22.3 MB) contains the following videos - view them in the order they are listed to see the overall process.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;1. Zero Touch Configuration.wmv &lt;/LI&gt;
&lt;LI&gt;2. Zero Touch Client NEW COMPUTER.wmv &lt;/LI&gt;
&lt;LI&gt;3. Zero Touch Client REFRESH COMPUTER.wmv &lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;&lt;A href="http://www.deploymentforum.com/Library/Webcasts/tabid/129/Default.aspx" mce_href="http://www.deploymentforum.com/Library/Webcasts/tabid/129/Default.aspx"&gt;View all of these walkthroughs on-line at Deployment Forum!&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;I&gt;This post was contributed by &lt;B&gt;Richard Smith&lt;/B&gt; a Senior Consultant with Microsoft Services, UK.&lt;/I&gt;&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3027649" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/deploymentguys/archive/tags/BDD+2007/default.aspx">BDD 2007</category><category domain="http://blogs.technet.com/deploymentguys/archive/tags/Video+Walkthrough/default.aspx">Video Walkthrough</category><category domain="http://blogs.technet.com/deploymentguys/archive/tags/Tips+and+Tricks/default.aspx">Tips and Tricks</category></item><item><title>"Up-ping" the uptime of your Lite-Touch server</title><link>http://blogs.technet.com/deploymentguys/archive/2008/03/31/up-ping-the-uptime-of-your-lite-touch-server.aspx</link><pubDate>Mon, 31 Mar 2008 13:10:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3024313</guid><dc:creator>DeploymentGuys</dc:creator><slash:comments>3</slash:comments><comments>http://blogs.technet.com/deploymentguys/comments/3024313.aspx</comments><wfw:commentRss>http://blogs.technet.com/deploymentguys/commentrss.aspx?PostID=3024313</wfw:commentRss><wfw:comment>http://blogs.technet.com/deploymentguys/rsscomments.aspx?PostID=3024313</wfw:comment><description>&lt;P&gt;I like the lite-touch installation (LTI) feature of MDT, it think it's great and is very impressive as it allows clients to easily see the benefit that they will gain by using MDT to create and deploy their images.&amp;nbsp; I can go on-site with a customer to demo the product and have a basic MDT server configured to deploy Windows Vista and Office 2007 (both with the most basic of configurations) over the network in their laboratory, all in one day.&amp;nbsp; Admittedly, the setup won't do much else because it lacks all the details but, as a demo, it works well.&amp;nbsp; However, one thing that LTI does not offer is 'high-availability'; something that Systems Center Configuration Manager excels at.&lt;/P&gt;
&lt;P&gt;In one of my previous posts I wrote about using DNS to create 'distribution points'-like behaviour in LTI scenarios.&amp;nbsp; That post got quite a bit of feedback, so with this post I want to 'steal' another Configuration Manager feature so that it can be applied to a LTI scenario, namely, making your MDT server highly available.&amp;nbsp; With this post you will be able to improve the reliability of your deployments by ensuring that your single point of failure (your MDT server) is always available, simply by clustering your MDT distribution share.&amp;nbsp; As before, I once again recommend Systems Center Configuration Manager as the product of choice if you need a highly-available platform for installing your images as it really is the best option available; the content offered in this post could never replace the functionality offered by Systems Center Configuration Manager.&lt;/P&gt;
&lt;P&gt;Windows clustering has been around for many years now, and most people understand how it works; the basic concept is shown in the image below.&amp;nbsp; An active server provides services to the network with a passive server in standby waiting to take over from the active server if it ever stops responding.&amp;nbsp; The change-over, or more correctly called: failover, happens very quick so most people would not even notice that a server has failed.&amp;nbsp; With each version of the Windows Server operating system Microsoft has improved the cluster service, so I will try and stay as generic as possible with this post.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;A href="http://blogs.technet.com/blogfiles/deploymentguys/WindowsLiveWriter/UppingtheuptimeofyourLiteTouchservers_8CD7/image_6.png" mce_href="http://blogs.technet.com/blogfiles/deploymentguys/WindowsLiveWriter/UppingtheuptimeofyourLiteTouchservers_8CD7/image_6.png"&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=208 alt="a simple diagram showing a typical cluster configuration" src="http://blogs.technet.com/blogfiles/deploymentguys/WindowsLiveWriter/UppingtheuptimeofyourLiteTouchservers_8CD7/image_thumb_2.png" width=387 border=0 mce_src="http://blogs.technet.com/blogfiles/deploymentguys/WindowsLiveWriter/UppingtheuptimeofyourLiteTouchservers_8CD7/image_thumb_2.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;&lt;FONT size=1&gt;Figure1: a generic diagram showing a typical cluster configuration&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;With this in mind, an excellent way to improve the availability of your MDT server is to copy the &lt;STRONG&gt;distribution$&lt;/STRONG&gt; folder onto a cluster!&amp;nbsp; All your client computers would then connect to the virtual name of the cluster and use the distribution point for the installation of your operating system image, rather than connect to the MDT server.&amp;nbsp; The only change that you would need to make would be to edit the bootstrap.ini file from your MDT configuration in order to include the virtual name of the cluster rather than the hostname of the MDT server; you'll need to make this change manually because MDT will put it's own hostname there by default.&amp;nbsp; Note that even if you installed MDT onto one of the nodes of the cluster, it would still place the hostname of that node into the bootstrap.ini file rather than the cluster virtual name.&amp;nbsp; This is because MDT is not a cluster aware application.&lt;/P&gt;
&lt;P&gt;Example of the bootstrap.ini file for use on a cluster:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;[Settings] &lt;BR&gt;Priority=Default &lt;/P&gt;
&lt;P&gt;[Default] &lt;BR&gt;DeployRoot=\\&lt;EM&gt;MYVIRTUALCLUSTER&lt;/EM&gt;\Distribution$&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You will need to create a cluster&amp;nbsp;shared folder&amp;nbsp;resource that shares the folder as "distribution$", without this part it won't work!&amp;nbsp; Also, you will need to manually &lt;SPAN lang=EN-GB style="FONT-SIZE: 10pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Arial','sans-serif'; mso-fareast-font-family: Calibri; mso-ansi-language: EN-GB; mso-fareast-theme-font: minor-latin; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"&gt;synchronise &lt;/SPAN&gt;any changes you make on the MDT server with the files on the cluster, MDT won't do this for you.&lt;/P&gt;
&lt;P&gt;Finally, one important thing to bear in mind is that, in the event of a failover, any existing deployments *might* fail depending on where they are in the process and what they were doing at the time of failover.&amp;nbsp; If a client computer is applying the WIM image when the active server fails, then the process will also fail.&amp;nbsp; If however, the active server fails over during a point in the deployment process when a client computer was not actually using the deployment point then you &lt;EM&gt;may&lt;/EM&gt; find that the process will continue seamlessly, although your mileage will vary with this as it really is an unknown due to various factors in play during failover.&lt;/P&gt;
&lt;P&gt;In a follow-up post I will explain how to work with the files on the cluster directly from MDT, so that&amp;nbsp;MDT can update the&amp;nbsp;files onto the clusters shared storage without the need for you to copy the files over manually when you make changes.&amp;nbsp; Stay tuned!&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;EM&gt;This post was contributed by &lt;STRONG&gt;Daniel Oxley&lt;/STRONG&gt; a consultant with Microsoft Services Spain&lt;/EM&gt;&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3024313" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/deploymentguys/archive/tags/BDD+2007/default.aspx">BDD 2007</category><category domain="http://blogs.technet.com/deploymentguys/archive/tags/Microsoft+Deployment/default.aspx">Microsoft Deployment</category><category domain="http://blogs.technet.com/deploymentguys/archive/tags/Deployment/default.aspx">Deployment</category><category domain="http://blogs.technet.com/deploymentguys/archive/tags/Tips+and+Tricks/default.aspx">Tips and Tricks</category></item><item><title>Useful Script Number 2 - Move the Task Sequence Window</title><link>http://blogs.technet.com/deploymentguys/archive/2008/03/19/useful-script-number-2-move-the-task-sequence-window.aspx</link><pubDate>Wed, 19 Mar 2008 13:33:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3015003</guid><dc:creator>DeploymentGuys</dc:creator><slash:comments>9</slash:comments><comments>http://blogs.technet.com/deploymentguys/comments/3015003.aspx</comments><wfw:commentRss>http://blogs.technet.com/deploymentguys/commentrss.aspx?PostID=3015003</wfw:commentRss><wfw:comment>http://blogs.technet.com/deploymentguys/rsscomments.aspx?PostID=3015003</wfw:comment><description>&lt;P&gt;Have you ever created a build and had to pop up a message to the user/technician? - or had to start an HTA application to request some kind of user input during the build or deployment process? If you have then you will know that the task sequence window sits centre screen and everything else pops up behind. This is because the task sequence windows is fixed to the top of the Z-order so that no other window can overlap it...&lt;/P&gt;
&lt;P&gt;Recently I had to create an DVD based deployment for a customer where I wrote an HTA application that prompted the user to switch DVDs. I hit this issue where my app was popping up behind the task sequence window and users were missing the prompt - so I set about developing a solution - and the solution I came up with was to move the task sequence window to the top left corner of the screen every time the task sequence starts - I soon found that it wasn't as simple as it initially sounded....&lt;/P&gt;
&lt;P&gt;I set about creating a script in Autoit (&lt;A title=http://www.autoitscript.com/ href="http://www.autoitscript.com/" mce_href="http://www.autoitscript.com/"&gt;http://www.autoitscript.com/&lt;/A&gt;) to move the window to the correct co-ordinates based on current screen resolution. I like to use Autoit for window manipulation tasks as it has a whole raft of inbuilt functions for automating desktop tasks - which usually makes it easier and quicker than writing the equivalent in VB script.&lt;/P&gt;
&lt;P&gt;The Autoit code is listed below:&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Courier&gt;#NoTrayIcon &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Courier&gt;;zCFG-MoveTaskWindow &lt;BR&gt;;Version 2.0 March 2008 &lt;BR&gt;;Reruns itself and returns - only works when compiled &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Courier&gt;If $CmdLine[0] = 0 Then &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; Rerun ourself and let this copy return to the task sequencer &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Run('"' &amp;amp; @AutoItExe &amp;amp; '" rerun') &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exit &lt;BR&gt;EndIf &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Courier&gt;Sleep(5000)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; Time for the first script to return &lt;BR&gt;If WinExists("Systems Management Server") Then &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $size = WinGetPos("Systems Management Server") &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mousemove($size[0]+50, $size[1]+50) &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MouseClick("left") &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WinMove("Systems Management Server", "", 0, 0) &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exit &lt;BR&gt;Else &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exit &lt;BR&gt;EndIf&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Courier&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Courier&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Courier&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;The first line &lt;FONT face=Courier&gt;#NoTrayIcon &lt;/FONT&gt;stops the Autoit icon appearing in the system tray when the script runs. The next section:&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Courier&gt;If $CmdLine[0] = 0 Then &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; Rerun ourself and let this copy return to the task sequencer &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Run('"' &amp;amp; @AutoItExe &amp;amp; '" rerun') &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exit &lt;BR&gt;EndIf &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Courier&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;configures the script to re-start itself after returning control to the task sequencer (i will explain why later in the post) before running the code to carry out the window move - having access to Autoit creator and fellow UK MCS consultant Jon Bennett really helps in these situations :-) and Jon came up with this re-spawning code. &lt;/P&gt;
&lt;P&gt;The final section:&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Courier&gt;Sleep(5000)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; Time for the first script to return &lt;BR&gt;If WinExists("Systems Management Server") Then &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $size = WinGetPos("Systems Management Server") &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mousemove($size[0]+50, $size[1]+50) &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MouseClick("left") &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WinMove("Systems Management Server", "", 0, 0) &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exit &lt;BR&gt;Else &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exit &lt;BR&gt;EndIf&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;causes the script to pause for 5 seconds before looking for the existence of the task sequence window (using the Autoit function WinExists). The title of the windows is &lt;STRONG&gt;Systems Management Server&lt;/STRONG&gt;, so if found the script gets its position (using the Autoit function WinGetPos). The script then move the mouse to the location of the window +50 pixels on each axis so that the mouse pointer is inside the task sequence window - it then clicks (Autoit function MouseClick) to select the window before the WinMove function moves it to the top left of the screen&lt;/P&gt;
&lt;P&gt;The reason for re-spawning the script is to return control to the task sequence, which in turn means that the compiled executable that Autoit creates from this script can be added to the task sequencer in the same way that any other script is run:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.technet.com/blogfiles/deploymentguys/WindowsLiveWriter/UsefulScriptNumber2MovetheTaskSequenceWi_945F/1.png" mce_href="http://blogs.technet.com/blogfiles/deploymentguys/WindowsLiveWriter/UsefulScriptNumber2MovetheTaskSequenceWi_945F/1.png"&gt;&lt;IMG style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" height=428 alt=1 src="http://blogs.technet.com/blogfiles/deploymentguys/WindowsLiveWriter/UsefulScriptNumber2MovetheTaskSequenceWi_945F/1_thumb.png" width=522 border=0 mce_src="http://blogs.technet.com/blogfiles/deploymentguys/WindowsLiveWriter/UsefulScriptNumber2MovetheTaskSequenceWi_945F/1_thumb.png"&gt;&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;The script only works when it is compiled so i have added the script (.au3 file) and the compiled Autoit executable (.exe) to the download location below:&lt;/P&gt;&lt;IFRAME style="BORDER-RIGHT: #dde5e9 1px solid; PADDING-RIGHT: 0px; BORDER-TOP: #dde5e9 1px solid; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 3px; BORDER-LEFT: #dde5e9 1px solid; WIDTH: 240px; PADDING-TOP: 0px; BORDER-BOTTOM: #dde5e9 1px solid; HEIGHT: 66px; BACKGROUND-COLOR: #ffffff" marginWidth=0 marginHeight=0 src="http://cid-7be6feba9e7c999c.skydrive.live.com/embedrowdetail.aspx/DeploymentGuys/zCFG-MoveTaskWindow.zip" frameBorder=0 scrolling=no mce_src="http://cid-7be6feba9e7c999c.skydrive.live.com/embedrowdetail.aspx/DeploymentGuys/zCFG-MoveTaskWindow.zip"&gt;&lt;/IFRAME&gt;
&lt;P&gt;&lt;I&gt;This post was contributed by &lt;B&gt;Richard Smith&lt;/B&gt; a Senior Consultant with Microsoft Services, UK.&lt;/I&gt;&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3015003" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/deploymentguys/archive/tags/BDD+2007/default.aspx">BDD 2007</category><category domain="http://blogs.technet.com/deploymentguys/archive/tags/Microsoft+Deployment/default.aspx">Microsoft Deployment</category><category domain="http://blogs.technet.com/deploymentguys/archive/tags/Scripts/default.aspx">Scripts</category></item></channel></rss>