<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Sysprep a Windows 7 Machine – Start to Finish V2</title>
	<atom:link href="http://blog.brianleejackson.com/sysprep-a-windows-7-machine-%e2%80%93-start-to-finish-v2/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.brianleejackson.com/sysprep-a-windows-7-machine-%e2%80%93-start-to-finish-v2</link>
	<description></description>
	<lastBuildDate>Sat, 07 Jan 2012 05:14:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: anointminus</title>
		<link>http://blog.brianleejackson.com/sysprep-a-windows-7-machine-%e2%80%93-start-to-finish-v2/comment-page-11#comment-12988</link>
		<dc:creator>anointminus</dc:creator>
		<pubDate>Sat, 07 Jan 2012 05:14:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.brianleejackson.com/?p=837#comment-12988</guid>
		<description>reg add HKLM\System\Setup /v CmdLine /t REG_SZ /d &quot;mshta C:\Windows\System32\Sysprep\EditUnattend.hta&quot; /f



Computer Deployment




Set WshShell = CreateObject(&quot;Wscript.Shell&quot;)

Sub Window_onLoad
window.resizeTo 450,400

&#039;turn off setup flag in registry so we can query wmi
WshShell.RegWrite &quot;HKLM\SYSTEM\Setup\SystemSetupInProgress&quot;, 0, &quot;REG_DWORD&quot;

&#039;query wmi for serial number
Const wbemFlagReturnImmediately = &amp;h10
Const wbemFlagForwardOnly = &amp;h20
strComputer = &quot;.&quot;
   Set objWMIService = GetObject(&quot;winmgmts:\\&quot; &amp; strComputer &amp; &quot;\root\CIMV2&quot;)
   Set colItems = objWMIService.ExecQuery(&quot;SELECT * FROM Win32_BIOS&quot;, &quot;WQL&quot;, _
                                          wbemFlagReturnImmediately + wbemFlagForwardOnly)

   For Each objItem In colItems
      serialNumber = objItem.SerialNumber
   Next

&#039;turn setup flag back on
WshShell.RegWrite &quot;HKLM\SYSTEM\Setup\SystemSetupInProgress&quot;, 1, &quot;REG_DWORD&quot;

&#039;put the serial number that was retrieved in the textbox
ComputerNameArea.Value = serialNumber

End Sub 

Sub modUnattend

run_button.Disabled = True

Set fso = CreateObject(&quot;Scripting.FileSystemObject&quot;)

base = Wshshell.ExpandEnvironmentStrings(&quot;%SystemRoot%&quot;)
unattendFile = base &amp; &quot;\Panther\unattend.xml&quot;


   computerName = ComputerNameArea.Value
   domainName = DomainNameArea.Value
   userName = UserNameArea.Value
   domainAdminPass = PasswordArea.Value
   OUName = OUNameArea.Value

 Set xmlDoc = CreateObject(&quot;Microsoft.XMLDOM&quot;)
 xmlDoc.load unattendFile
 
 &#039;Iterate through Unattend.xml searching for nodes and properties to replace
 Set oNodes = xmlDoc.documentElement.selectNodes(&quot;/unattend/settings/component/ComputerName&quot;)
 For each n in oNodes
  n.text = computerName
  xmlDoc.save unattendFile
 Next

 Set oNodes = xmlDoc.documentElement.selectNodes(&quot;/unattend/settings/component/Identification/Credentials/Domain&quot;)
 For each n in oNodes
  n.text = domainName
  xmlDoc.save unattendFile
 Next

 Set oNodes = xmlDoc.documentElement.selectNodes(&quot;/unattend/settings/component/Identification/Credentials/Password&quot;)
 For each n in oNodes
  n.text = domainAdminPass
  xmlDoc.save unattendFile
 Next

 Set oNodes = xmlDoc.documentElement.selectNodes(&quot;/unattend/settings/component/Identification/Credentials/Username&quot;)
 For each n in oNodes
  n.text = userName
  xmlDoc.save unattendFile
 Next

 Set oNodes = xmlDoc.documentElement.selectNodes(&quot;/unattend/settings/component/Identification/JoinDomain&quot;)
 For each n in oNodes
  n.text = domainName
  xmlDoc.save unattendFile
 Next

 Set oNodes = xmlDoc.documentElement.selectNodes(&quot;/unattend/settings/component/Identification/MachineObjectOU&quot;)
 For each n in oNodes
  n.text = OUName
  xmlDoc.save unattendFile
 Next

&#039;launch the continuation of setup in a hidden window and wait for return
&#039;if we dont wait, closing mshta, closes windeploy.exe
WshShell.Run &quot;%WINDIR%\System32\oobe\windeploy.exe&quot;, 0, True
idTimer = window.setTimeout(&quot;closeHTA&quot;, 5000, &quot;VBScript&quot;)
End Sub

Sub closeHTA
window.close
End Sub

Sub commandLine
WshShell.Run &quot;%WINDIR%\System32\cmd.exe&quot;, 1, True
End Sub





Computer Name:



Domain Name:



Container OU:


    Desktops
    Laptops




User Name:



Password:


 



Note: The following characters are invalid for use in the computer name: &quot;  `~!@#$%^&amp;*()=+[]{}\&#124;;:&#039;&quot;,/?.  &quot;
You will not recieve any warning regarding incorrectly supplied parameters during setup. If any of them are incorrect, setup completion
may take a long time.
</description>
		<content:encoded><![CDATA[<p>reg add HKLM\System\Setup /v CmdLine /t REG_SZ /d &#8220;mshta C:\Windows\System32\Sysprep\EditUnattend.hta&#8221; /f</p>
<p>Computer Deployment</p>
<p>Set WshShell = CreateObject(&#8220;Wscript.Shell&#8221;)</p>
<p>Sub Window_onLoad<br />
window.resizeTo 450,400</p>
<p>&#8216;turn off setup flag in registry so we can query wmi<br />
WshShell.RegWrite &#8220;HKLM\SYSTEM\Setup\SystemSetupInProgress&#8221;, 0, &#8220;REG_DWORD&#8221;</p>
<p>&#8216;query wmi for serial number<br />
Const wbemFlagReturnImmediately = &amp;h10<br />
Const wbemFlagForwardOnly = &amp;h20<br />
strComputer = &#8220;.&#8221;<br />
   Set objWMIService = GetObject(&#8220;winmgmts:\\&#8221; &amp; strComputer &amp; &#8220;\root\CIMV2&#8243;)<br />
   Set colItems = objWMIService.ExecQuery(&#8220;SELECT * FROM Win32_BIOS&#8221;, &#8220;WQL&#8221;, _<br />
                                          wbemFlagReturnImmediately + wbemFlagForwardOnly)</p>
<p>   For Each objItem In colItems<br />
      serialNumber = objItem.SerialNumber<br />
   Next</p>
<p>&#8216;turn setup flag back on<br />
WshShell.RegWrite &#8220;HKLM\SYSTEM\Setup\SystemSetupInProgress&#8221;, 1, &#8220;REG_DWORD&#8221;</p>
<p>&#8216;put the serial number that was retrieved in the textbox<br />
ComputerNameArea.Value = serialNumber</p>
<p>End Sub </p>
<p>Sub modUnattend</p>
<p>run_button.Disabled = True</p>
<p>Set fso = CreateObject(&#8220;Scripting.FileSystemObject&#8221;)</p>
<p>base = Wshshell.ExpandEnvironmentStrings(&#8220;%SystemRoot%&#8221;)<br />
unattendFile = base &amp; &#8220;\Panther\unattend.xml&#8221;</p>
<p>   computerName = ComputerNameArea.Value<br />
   domainName = DomainNameArea.Value<br />
   userName = UserNameArea.Value<br />
   domainAdminPass = PasswordArea.Value<br />
   OUName = OUNameArea.Value</p>
<p> Set xmlDoc = CreateObject(&#8220;Microsoft.XMLDOM&#8221;)<br />
 xmlDoc.load unattendFile</p>
<p> &#8216;Iterate through Unattend.xml searching for nodes and properties to replace<br />
 Set oNodes = xmlDoc.documentElement.selectNodes(&#8220;/unattend/settings/component/ComputerName&#8221;)<br />
 For each n in oNodes<br />
  n.text = computerName<br />
  xmlDoc.save unattendFile<br />
 Next</p>
<p> Set oNodes = xmlDoc.documentElement.selectNodes(&#8220;/unattend/settings/component/Identification/Credentials/Domain&#8221;)<br />
 For each n in oNodes<br />
  n.text = domainName<br />
  xmlDoc.save unattendFile<br />
 Next</p>
<p> Set oNodes = xmlDoc.documentElement.selectNodes(&#8220;/unattend/settings/component/Identification/Credentials/Password&#8221;)<br />
 For each n in oNodes<br />
  n.text = domainAdminPass<br />
  xmlDoc.save unattendFile<br />
 Next</p>
<p> Set oNodes = xmlDoc.documentElement.selectNodes(&#8220;/unattend/settings/component/Identification/Credentials/Username&#8221;)<br />
 For each n in oNodes<br />
  n.text = userName<br />
  xmlDoc.save unattendFile<br />
 Next</p>
<p> Set oNodes = xmlDoc.documentElement.selectNodes(&#8220;/unattend/settings/component/Identification/JoinDomain&#8221;)<br />
 For each n in oNodes<br />
  n.text = domainName<br />
  xmlDoc.save unattendFile<br />
 Next</p>
<p> Set oNodes = xmlDoc.documentElement.selectNodes(&#8220;/unattend/settings/component/Identification/MachineObjectOU&#8221;)<br />
 For each n in oNodes<br />
  n.text = OUName<br />
  xmlDoc.save unattendFile<br />
 Next</p>
<p>&#8216;launch the continuation of setup in a hidden window and wait for return<br />
&#8216;if we dont wait, closing mshta, closes windeploy.exe<br />
WshShell.Run &#8220;%WINDIR%\System32\oobe\windeploy.exe&#8221;, 0, True<br />
idTimer = window.setTimeout(&#8220;closeHTA&#8221;, 5000, &#8220;VBScript&#8221;)<br />
End Sub</p>
<p>Sub closeHTA<br />
window.close<br />
End Sub</p>
<p>Sub commandLine<br />
WshShell.Run &#8220;%WINDIR%\System32\cmd.exe&#8221;, 1, True<br />
End Sub</p>
<p>Computer Name:</p>
<p>Domain Name:</p>
<p>Container OU:</p>
<p>    Desktops<br />
    Laptops</p>
<p>User Name:</p>
<p>Password:</p>
<p>Note: The following characters are invalid for use in the computer name: &#8221;  `~!@#$%^&amp;*()=+[]{}\|;:&#8217;&#8221;,/?.  &#8221;<br />
You will not recieve any warning regarding incorrectly supplied parameters during setup. If any of them are incorrect, setup completion<br />
may take a long time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike shull</title>
		<link>http://blog.brianleejackson.com/sysprep-a-windows-7-machine-%e2%80%93-start-to-finish-v2/comment-page-11#comment-12417</link>
		<dc:creator>mike shull</dc:creator>
		<pubDate>Mon, 14 Nov 2011 21:58:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.brianleejackson.com/?p=837#comment-12417</guid>
		<description>Having some issues.
I am using WAIK version 3

These are not available when I add amd64_Microsoft-Windows-Deployment_6.1.7600.16385_neutral  to specialize

Order: 1
path: net user administrator /active:yes
WillReboot: Never
RunSynchronousCommand[Order=&quot;1&quot;]

RunSynchronous

AND you can not add amd64_Microsoft-Windows-Shell-Setup_6.1.7600.16385_neutral 
to odbe system the selection is grayed out when you right click.

Any thoughts?</description>
		<content:encoded><![CDATA[<p>Having some issues.<br />
I am using WAIK version 3</p>
<p>These are not available when I add amd64_Microsoft-Windows-Deployment_6.1.7600.16385_neutral  to specialize</p>
<p>Order: 1<br />
path: net user administrator /active:yes<br />
WillReboot: Never<br />
RunSynchronousCommand[Order="1"]</p>
<p>RunSynchronous</p>
<p>AND you can not add amd64_Microsoft-Windows-Shell-Setup_6.1.7600.16385_neutral<br />
to odbe system the selection is grayed out when you right click.</p>
<p>Any thoughts?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Perry Driscoll</title>
		<link>http://blog.brianleejackson.com/sysprep-a-windows-7-machine-%e2%80%93-start-to-finish-v2/comment-page-11#comment-9788</link>
		<dc:creator>Perry Driscoll</dc:creator>
		<pubDate>Thu, 13 Oct 2011 09:34:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.brianleejackson.com/?p=837#comment-9788</guid>
		<description>Hi,

I have tryed deleting the computer name line but still get no promt at install. Is there anyway around this? 
I have used Mysysprep which prompts for computer name but then does not add the machine to the network.

Any help would be great it seems to be one or the other at the moment.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I have tryed deleting the computer name line but still get no promt at install. Is there anyway around this?<br />
I have used Mysysprep which prompts for computer name but then does not add the machine to the network.</p>
<p>Any help would be great it seems to be one or the other at the moment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Farzan Qureshi</title>
		<link>http://blog.brianleejackson.com/sysprep-a-windows-7-machine-%e2%80%93-start-to-finish-v2/comment-page-11#comment-5563</link>
		<dc:creator>Farzan Qureshi</dc:creator>
		<pubDate>Wed, 14 Sep 2011 03:17:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.brianleejackson.com/?p=837#comment-5563</guid>
		<description>Hi,

I followed all the steps. The language bar customizations does not appear on the target machine :(</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I followed all the steps. The language bar customizations does not appear on the target machine <img src='http://blog.brianleejackson.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Liz</title>
		<link>http://blog.brianleejackson.com/sysprep-a-windows-7-machine-%e2%80%93-start-to-finish-v2/comment-page-11#comment-5562</link>
		<dc:creator>Liz</dc:creator>
		<pubDate>Mon, 12 Sep 2011 22:55:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.brianleejackson.com/?p=837#comment-5562</guid>
		<description>I haven&#039;t made it through all the comments yet, but just wanted to say I already had my model image all set up so I skipped the audit section. I set up my default profile following the method described here by CascadeRob:

http://social.technet.microsoft.com/Forums/en-US/w7itprogeneral/thread/0be9b1f0-a21f-4889-9568-6ec455689aa9/

Just make sure to follow all the steps. In addition I discovered that the first registry key found in step 10 is the Wallpaper setting – in order to retain that setting I saved my wallpaper image in the Public Pictures Library while I was setting up the dummy profile to copy, then rather than deleting the Wallpaper key I change the username to %username% - worked perfectly. I’ve also experimented with loading the default ntuser.dat hive to make other minor default profile changes, like setting the IE home page to our website.

Oh, and I don’t use the CopyProfile setting in the unattend.xml file.</description>
		<content:encoded><![CDATA[<p>I haven&#8217;t made it through all the comments yet, but just wanted to say I already had my model image all set up so I skipped the audit section. I set up my default profile following the method described here by CascadeRob:</p>
<p><a href="http://social.technet.microsoft.com/Forums/en-US/w7itprogeneral/thread/0be9b1f0-a21f-4889-9568-6ec455689aa9/" rel="nofollow">http://social.technet.microsoft.com/Forums/en-US/w7itprogeneral/thread/0be9b1f0-a21f-4889-9568-6ec455689aa9/</a></p>
<p>Just make sure to follow all the steps. In addition I discovered that the first registry key found in step 10 is the Wallpaper setting – in order to retain that setting I saved my wallpaper image in the Public Pictures Library while I was setting up the dummy profile to copy, then rather than deleting the Wallpaper key I change the username to %username% &#8211; worked perfectly. I’ve also experimented with loading the default ntuser.dat hive to make other minor default profile changes, like setting the IE home page to our website.</p>
<p>Oh, and I don’t use the CopyProfile setting in the unattend.xml file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Della Zavala</title>
		<link>http://blog.brianleejackson.com/sysprep-a-windows-7-machine-%e2%80%93-start-to-finish-v2/comment-page-11#comment-5559</link>
		<dc:creator>Della Zavala</dc:creator>
		<pubDate>Tue, 06 Sep 2011 10:12:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.brianleejackson.com/?p=837#comment-5559</guid>
		<description>you can also check out spotmaupowersuite.com. that&#039;s a pretty awesome tool for stuff like this</description>
		<content:encoded><![CDATA[<p>you can also check out spotmaupowersuite.com. that&#8217;s a pretty awesome tool for stuff like this</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: machine soda</title>
		<link>http://blog.brianleejackson.com/sysprep-a-windows-7-machine-%e2%80%93-start-to-finish-v2/comment-page-11#comment-5558</link>
		<dc:creator>machine soda</dc:creator>
		<pubDate>Mon, 05 Sep 2011 13:48:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.brianleejackson.com/?p=837#comment-5558</guid>
		<description>Nous venons de couldnt quittent votre site Web avant de vous laisser savoir que nous avons vraiment apprécié les informations utiles que vous offrez à vos visiteurs ... sera bientôt de retour pour vérifier sur des slideshows nouveaux post-vous!</description>
		<content:encoded><![CDATA[<p>Nous venons de couldnt quittent votre site Web avant de vous laisser savoir que nous avons vraiment apprécié les informations utiles que vous offrez à vos visiteurs &#8230; sera bientôt de retour pour vérifier sur des slideshows nouveaux post-vous!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cthao</title>
		<link>http://blog.brianleejackson.com/sysprep-a-windows-7-machine-%e2%80%93-start-to-finish-v2/comment-page-11#comment-5557</link>
		<dc:creator>cthao</dc:creator>
		<pubDate>Thu, 01 Sep 2011 18:37:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.brianleejackson.com/?p=837#comment-5557</guid>
		<description>how do I perfrom windowsupdate in audit mode?   It looks like it is disabled in Audit mode.

I like to have an image with the latest Winodws/Office update, configured the profile and setting in audit mode but it looks like Windows update keeps giving me error in audit mode.</description>
		<content:encoded><![CDATA[<p>how do I perfrom windowsupdate in audit mode?   It looks like it is disabled in Audit mode.</p>
<p>I like to have an image with the latest Winodws/Office update, configured the profile and setting in audit mode but it looks like Windows update keeps giving me error in audit mode.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mitz</title>
		<link>http://blog.brianleejackson.com/sysprep-a-windows-7-machine-%e2%80%93-start-to-finish-v2/comment-page-11#comment-5550</link>
		<dc:creator>Mitz</dc:creator>
		<pubDate>Mon, 22 Aug 2011 15:14:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.brianleejackson.com/?p=837#comment-5550</guid>
		<description>Nice tutorial.....tested with windows 7 sp1 .... worked great.

Thanks</description>
		<content:encoded><![CDATA[<p>Nice tutorial&#8230;..tested with windows 7 sp1 &#8230;. worked great.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: IamSam</title>
		<link>http://blog.brianleejackson.com/sysprep-a-windows-7-machine-%e2%80%93-start-to-finish-v2/comment-page-11#comment-5543</link>
		<dc:creator>IamSam</dc:creator>
		<pubDate>Thu, 28 Jul 2011 14:29:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.brianleejackson.com/?p=837#comment-5543</guid>
		<description>Has this changed with Windows 7 SP1?</description>
		<content:encoded><![CDATA[<p>Has this changed with Windows 7 SP1?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

