<?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>Fermin Sanchez Central</title><link>http://blogs.technet.com/ferminsa/default.aspx</link><description>Tools and stuff I come across during my work as a consultant for Microsoft Switzerland. </description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>How to create the ultimate USB multi boot disk</title><link>http://blogs.technet.com/ferminsa/archive/2009/03/26/how-to-create-the-ultimate-usb-multi-boot-disk.aspx</link><pubDate>Thu, 26 Mar 2009 09:56:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3218326</guid><dc:creator>ferminsa</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.technet.com/ferminsa/comments/3218326.aspx</comments><wfw:commentRss>http://blogs.technet.com/ferminsa/commentrss.aspx?PostID=3218326</wfw:commentRss><description>&lt;P&gt;Since I'm preparing myself for the new Windows 7 and Windows Server 2008 R2 operating systems, I tend to download new builds fairly often and was looking for a quick way to install an operating system on a physical machine without burning DVDs all the time. The obvious answer: I created my own USB boot key that lets me boot multiple operating systems. &lt;/P&gt;
&lt;P&gt;What do you need? &lt;/P&gt;
&lt;UL style="MARGIN-LEFT: 54pt"&gt;
&lt;LI&gt;A "Technician PC" to create the USB key – I did it on a workstation running Windows 7 build 7000, but Vista (and possibly&amp;nbsp;XP? Not tested, though)&amp;nbsp;will also do. &lt;/LI&gt;
&lt;LI&gt;The Windows Advanced Installation Kit (WAIK). You can get it from various sources like Technet or &lt;A href="http://www.microsoft.com/downloads/details.aspx?FamilyID=C7D4BC6D-15F3-4284-9123-679830D629F2&amp;amp;displaylang=en" mce_href="http://www.microsoft.com/downloads/details.aspx?FamilyID=C7D4BC6D-15F3-4284-9123-679830D629F2&amp;amp;displaylang=en"&gt;from here&lt;/A&gt;. &lt;/LI&gt;
&lt;LI&gt;A USB key. I'm creating my "monster WIM file" as we speak, and it's already 4.3 GB. You should get an 8 GB (or better)&amp;nbsp;key that's fairly new (for read/write speed). &lt;/LI&gt;
&lt;LI&gt;The sources. In other words, you need the x:\sources\install.wim (x: being your CD drive) file of the operating systems you'd like to install. &lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;BR&gt;Step 1: Preparing the USB key &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Since the WIM file I'm creating (see Step 2) will be larger than 4 GB, the USB stick needs to be formatted with NTFS. In a command prompt with administrative rights, do the following (&lt;SPAN style="COLOR: red"&gt;&lt;STRONG&gt;"clean" will permanently erase the contents of your USB key!!&lt;/STRONG&gt;&lt;/SPAN&gt;): &lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 9pt"&gt;diskpart&lt;BR&gt;list disk&lt;BR&gt;select disk 1&lt;BR&gt;clean&lt;BR&gt;create partition primary&lt;BR&gt;select partition 1&lt;BR&gt;active&lt;BR&gt;format fs=ntfs quick&lt;BR&gt;assign&lt;BR&gt;exit &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;The above assumes that the "list disk" command showed you two disks, "Disk 0" being your internal hard disk and "Disk 1" being the USB stick. Your system might be different. &lt;SPAN style="COLOR: red"&gt;&lt;STRONG&gt;"clean" will permanently erase the contents of your USB key!! &lt;/STRONG&gt;&lt;/SPAN&gt;Ony my system, the "assign" command put my USB key on drive H:, this could also be different on yours. &lt;/P&gt;
&lt;P&gt;Next, copy the contents for example of a &lt;STRIKE&gt;Vista&lt;/STRIKE&gt; &lt;STRONG&gt;Windows 7 (*)&lt;/STRONG&gt;&amp;nbsp;CD&amp;nbsp;to your USB key: &lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 9pt"&gt;xcopy f:\*.* /s /e /f h:\ &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Your USB key is now ready to go. &lt;BR&gt;(*) = I found Windows 7 to work best for me. Just use Beta 1 or, when available, RC.&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;&lt;STRONG&gt;Step 2: Creating the "Monster WIM" &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;The WIM format introduced with Windows Vista is basically a container for one or more OS images. You can have a look into such a container by starting the WAIK command prompt (see your Windows start menu after installing WAIK) and entering the command "imagex.exe /info x:\sources\install.wim" (assuming x: is your DVD drive). The output will look something like this (some output snipped): &lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 9pt"&gt;C:\Windows\system32&amp;gt;imagex.exe /info f:\sources\install.wim &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 9pt"&gt;ImageX Tool for Windows&lt;BR&gt;Copyright (C) Microsoft Corp. All rights reserved. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 9pt"&gt;&lt;BR&gt;WIM Information:&lt;BR&gt;----------------&lt;BR&gt;GUID: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{a99a2697-00aa-47fb-a514-86e22cc1a7a6}&lt;BR&gt;&lt;STRONG&gt;Image Count: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;6&lt;/STRONG&gt;&lt;BR&gt;Compression: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;LZX&lt;BR&gt;Part Number: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1/1&lt;BR&gt;Attributes:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;0xc&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Integrity info&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Relative path junction &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 9pt"&gt;Available Image Choices:&lt;BR&gt;------------------------&lt;BR&gt;&amp;lt;WIM&amp;gt;&lt;BR&gt;&amp;lt;TOTALBYTES&amp;gt;2643418299&amp;lt;/TOTALBYTES&amp;gt;&lt;BR&gt;&amp;lt;IMAGE INDEX="&lt;STRONG&gt;1&lt;/STRONG&gt;"&amp;gt;&lt;BR&gt;(snip)&lt;BR&gt;&amp;lt;NAME&amp;gt;Windows 7 SERVERSTANDARD&amp;lt;/NAME&amp;gt;&lt;BR&gt;&amp;lt;DESCRIPTION&amp;gt;Windows 7 SERVERSTANDARD&amp;lt;/DESCRIPTION&amp;gt;&lt;BR&gt;&amp;lt;FLAGS&amp;gt;ServerStandard&amp;lt;/FLAGS&amp;gt;&lt;BR&gt;&amp;lt;HARDLINKBYTES&amp;gt;3637973169&amp;lt;/HARDLINKBYTES&amp;gt;&lt;BR&gt;&amp;lt;DISPLAYNAME&amp;gt;&lt;STRONG&gt;Windows Server 2008 R2 Standard (Full Installation)&amp;lt;/&lt;/STRONG&gt;DISPLAYNAME&amp;gt;&lt;BR&gt;(snip)&lt;BR&gt;&amp;lt;/IMAGE&amp;gt;&lt;BR&gt;&amp;lt;IMAGE INDEX="&lt;STRONG&gt;2&lt;/STRONG&gt;"&amp;gt;&lt;BR&gt;(snip)&lt;BR&gt;&amp;lt;NAME&amp;gt;Windows 7 SERVERSTANDARDCORE&amp;lt;/NAME&amp;gt;&lt;BR&gt;&amp;lt;DESCRIPTION&amp;gt;Windows 7 SERVERSTANDARDCORE&amp;lt;/DESCRIPTION&amp;gt;&lt;BR&gt;&amp;lt;FLAGS&amp;gt;ServerStandardCore&amp;lt;/FLAGS&amp;gt;&lt;BR&gt;&amp;lt;HARDLINKBYTES&amp;gt;995178928&amp;lt;/HARDLINKBYTES&amp;gt;&lt;BR&gt;&amp;lt;DISPLAYNAME&amp;gt;&lt;STRONG&gt;Windows Server 2008 R2 Standard (Server Core Installation)&lt;/STRONG&gt;&amp;lt;/DISPLAYNAME&amp;gt;&lt;BR&gt;&amp;lt;/IMAGE&amp;gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;As you can see in the partial output above, the WIM contains 6 images; I've included the more important parts of the first two images. Creating the actual WIM is now straightforward enough: &lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 9pt"&gt;imagex.exe /export f:\sources\install.wim 1 d:\temp\install.wim 1 "Windows Server 2008 R2 Standard (FULL)"&lt;BR&gt;imagex.exe /export f:\sources\install.wim 1 d:\temp\install.wim 2 "Windows Server 2008 R2 Standard (CORE)" &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Now insert the next DVD, say with Windows Server 2008 x64, and repeat the process (run "imagex.exe /info …" to see which images to get): &lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 9pt"&gt;imagex.exe /export f:\sources\install.wim 1 d:\temp\install.wim 2 "Windows Server 2008 Enterprise x64 (FULL)"&lt;BR&gt;imagex.exe /export f:\sources\install.wim 1 d:\temp\install.wim 5 "Windows Server 2008 Enterprise x64 (CORE)"&lt;/SPAN&gt;&lt;BR&gt;&lt;BR&gt;You don't have to worry about numbering in your newly created WIM file; imagex.exe will assign them automatically in ascending order. If you want to get rid of an image in your WIM, use: &lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 9pt"&gt;imagex.exe /delete d:\temp\install.wim 1 &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;&lt;STRONG&gt;Step 3: Copying the new WIM file to the USB key &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;All that remains to do is replacing the "install.wim" on your USB key with your customized one: &lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 9pt"&gt;copy d:\temp\install.wim h:\sources &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Select "Yes" if prompted to overwrite the existing install.wim. &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Conclusion &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;That's it, you should now be able to boot from the USB key (provided your computer's BIOS supports this and it has been enabled) and start installing away. To dramatically increase performance during the export of the images, either mount the source OS DVDs using a .ISO mount tool or copy the install.wim to your local hard disk. You may also want to experiment with different USB key drives to find one that is fast enough for your needs. &lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3218326" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/ferminsa/archive/tags/Windows+Deployment/default.aspx">Windows Deployment</category></item><item><title>iscsicpl.exe included in R2 Core/Hyper-V Server Beta!!</title><link>http://blogs.technet.com/ferminsa/archive/2009/02/21/iscsicpl-exe-included-in-r2-core-hyper-v-server-beta.aspx</link><pubDate>Sat, 21 Feb 2009 18:32:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3205298</guid><dc:creator>ferminsa</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.technet.com/ferminsa/comments/3205298.aspx</comments><wfw:commentRss>http://blogs.technet.com/ferminsa/commentrss.aspx?PostID=3205298</wfw:commentRss><description>One of the major pains seems to be going away in R2: iSCSIcpl.exe is included in R2 Core and R2 Hyper-V Server! That means no more "iscsicli AddTargetPortal 192.168.1.1 3260 * 1 * * * * * * * * * *" and other stuff that has you staring crosseyed at your screen... Of course there is no guarantee that it will still be in later versions or RTM.&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3205298" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/ferminsa/archive/tags/Hyper-V/default.aspx">Hyper-V</category><category domain="http://blogs.technet.com/ferminsa/archive/tags/iSCSI/default.aspx">iSCSI</category></item><item><title>Remote Volume GUIDs driving you crazy?</title><link>http://blogs.technet.com/ferminsa/archive/2008/11/27/remote-volume-guids-driving-you-crazy.aspx</link><pubDate>Fri, 28 Nov 2008 01:13:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3160466</guid><dc:creator>ferminsa</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.technet.com/ferminsa/comments/3160466.aspx</comments><wfw:commentRss>http://blogs.technet.com/ferminsa/commentrss.aspx?PostID=3160466</wfw:commentRss><description>&lt;P&gt;I was maybe half an hour away from giving up on my Hyper-V Server Core box and doing a "Full" install. The solution, once you know it, is simple... the problem was there seemed no way to reattach a previously created virtual machine. I hadn't done an export, so "import" wasn't an option. Usually, what you do in this situation is you create a new virtual machine and attach the old VHD file. Since I'm planning to use Failover Clustering, the VHD files reside on a iSCSI SAN and instead of drive letters, I'm using Volume GUIDs. &lt;/P&gt;
&lt;P&gt;Almost all has to be done remotely, because the Hyper-V box is a Core machine. &lt;/P&gt;
&lt;P&gt;First, how do I get the GUID of the volume where my VHD file is stored? On the Server Core box, open a command line and type "mountvol". You will see something like this: &lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.technet.com/photos/ferminsa/images/3160470/500x243.aspx" mce_src="http://blogs.technet.com/photos/ferminsa/images/3160470/500x243.aspx"&gt;&lt;/P&gt;
&lt;P&gt;It's obviously neither "C:" nor "D:"... so which is it? The most intuitive thing would be to copy/paste the path(s) and prepend them with "dir ", then go through them in order. However:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.technet.com/photos/ferminsa/images/3160468/500x240.aspx" mce_src="http://blogs.technet.com/photos/ferminsa/images/3160468/500x240.aspx"&gt;&lt;/P&gt;
&lt;P&gt;No such luck. Try the same, but add an &lt;STRONG&gt;additional&lt;/STRONG&gt;&amp;nbsp;backslash at the end this time: &lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.technet.com/photos/ferminsa/images/3160469/500x115.aspx" mce_src="http://blogs.technet.com/photos/ferminsa/images/3160469/500x115.aspx"&gt;&lt;/P&gt;
&lt;P&gt;There you go. Now the process of remotely attaching the VHD file in Hyper-V Manager is straightforward:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.technet.com/photos/ferminsa/images/3160467/original.aspx" mce_src="http://blogs.technet.com/photos/ferminsa/images/3160467/original.aspx"&gt;&lt;/P&gt;
&lt;P&gt;What still won't work is using the remote tools to browse a path that contains a Volume GUID:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.technet.com/photos/ferminsa/images/3160473/original.aspx" mce_src="http://blogs.technet.com/photos/ferminsa/images/3160473/original.aspx"&gt;&lt;/P&gt;
&lt;P&gt;If you want to remotely browse remote volumes, you should clear the path and then click browse:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.technet.com/photos/ferminsa/images/3160471/500x372.aspx" mce_src="http://blogs.technet.com/photos/ferminsa/images/3160471/500x372.aspx"&gt;&lt;/P&gt;
&lt;P&gt;Once the disk&amp;nbsp;has been&amp;nbsp;attached, you can inspect it, even though it uses a Volume GUID instead of a drive letter:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.technet.com/photos/ferminsa/images/3160472/408x375.aspx" mce_src="http://blogs.technet.com/photos/ferminsa/images/3160472/408x375.aspx"&gt;&lt;/P&gt;
&lt;P&gt;In conclusion, one more "\"&amp;nbsp;can sometimes be&amp;nbsp;all the difference in the world...&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3160466" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/ferminsa/archive/tags/Server+Core/default.aspx">Server Core</category><category domain="http://blogs.technet.com/ferminsa/archive/tags/Hyper-V/default.aspx">Hyper-V</category><category domain="http://blogs.technet.com/ferminsa/archive/tags/Volume+GUID/default.aspx">Volume GUID</category></item><item><title>How to patch Windows Server 2008 Core using WSUS</title><link>http://blogs.technet.com/ferminsa/archive/2008/11/26/how-to-patch-windows-server-2008-core-using-wsus.aspx</link><pubDate>Wed, 26 Nov 2008 13:43:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3159783</guid><dc:creator>ferminsa</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.technet.com/ferminsa/comments/3159783.aspx</comments><wfw:commentRss>http://blogs.technet.com/ferminsa/commentrss.aspx?PostID=3159783</wfw:commentRss><description>&lt;P&gt;Using the script from &lt;A class="" href="http://msdn.microsoft.com/en-us/library/aa387102(VS.85).aspx" mce_href="http://msdn.microsoft.com/en-us/library/aa387102(VS.85).aspx"&gt;here&lt;/A&gt;, I can patch my Core box. I've added some code (&lt;STRONG&gt;bold&lt;/STRONG&gt;) so I don't have to look up the return codes (which can be found &lt;A class="" href="http://msdn.microsoft.com/en-us/library/aa387095(VS.85).aspx" mce_href="http://msdn.microsoft.com/en-us/library/aa387095(VS.85).aspx"&gt;here&lt;/A&gt;).&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRONG&gt;Dim myResultCode(5)&lt;BR&gt;myResultCode(0) = "Not started"&lt;BR&gt;myResultCode(1) = "In Progress"&lt;BR&gt;myResultCode(2) = "Succeeded"&lt;BR&gt;myResultCode(3) = "Succeeded, but with errors"&lt;BR&gt;myResultCode(4) = "Failed"&lt;BR&gt;myResultCode(5) = "Aborted"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Set updateSession = CreateObject("Microsoft.Update.Session")&lt;BR&gt;Set updateSearcher = updateSession.CreateupdateSearcher()&lt;/P&gt;
&lt;P&gt;WScript.Echo "Searching for updates..." &amp;amp; vbCRLF&lt;/P&gt;
&lt;P&gt;Set searchResult = _&lt;BR&gt;updateSearcher.Search("IsInstalled=0 and Type='Software'")&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;WScript.Echo "List of applicable items on the machine:"&lt;/P&gt;
&lt;P&gt;For I = 0 To searchResult.Updates.Count-1&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set update = searchResult.Updates.Item(I)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WScript.Echo I + 1 &amp;amp; "&amp;gt; " &amp;amp; update.Title&lt;BR&gt;Next&lt;/P&gt;
&lt;P&gt;If searchResult.Updates.Count = 0 Then&lt;BR&gt;&amp;nbsp;WScript.Echo "There are no applicable updates."&lt;BR&gt;&amp;nbsp;WScript.Quit&lt;BR&gt;End If&lt;/P&gt;
&lt;P&gt;WScript.Echo vbCRLF &amp;amp; "Creating collection of updates to download:"&lt;/P&gt;
&lt;P&gt;Set updatesToDownload = CreateObject("Microsoft.Update.UpdateColl")&lt;/P&gt;
&lt;P&gt;For I = 0 to searchResult.Updates.Count-1&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set update = searchResult.Updates.Item(I)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WScript.Echo I + 1 &amp;amp; "&amp;gt; adding: " &amp;amp; update.Title &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; updatesToDownload.Add(update)&lt;BR&gt;Next&lt;/P&gt;
&lt;P&gt;WScript.Echo vbCRLF &amp;amp; "Downloading updates..."&lt;/P&gt;
&lt;P&gt;Set downloader = updateSession.CreateUpdateDownloader() &lt;BR&gt;downloader.Updates = updatesToDownload&lt;BR&gt;downloader.Download()&lt;/P&gt;
&lt;P&gt;WScript.Echo&amp;nbsp; vbCRLF &amp;amp; "List of downloaded updates:"&lt;/P&gt;
&lt;P&gt;For I = 0 To searchResult.Updates.Count-1&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set update = searchResult.Updates.Item(I)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If update.IsDownloaded Then&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WScript.Echo I + 1 &amp;amp; "&amp;gt; " &amp;amp; update.Title &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;BR&gt;Next&lt;/P&gt;
&lt;P&gt;Set updatesToInstall = CreateObject("Microsoft.Update.UpdateColl")&lt;/P&gt;
&lt;P&gt;WScript.Echo&amp;nbsp; vbCRLF &amp;amp; _&lt;BR&gt;"Creating collection of downloaded updates to install:" &lt;/P&gt;
&lt;P&gt;For I = 0 To searchResult.Updates.Count-1&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set update = searchResult.Updates.Item(I)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If update.IsDownloaded = true Then&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WScript.Echo I + 1 &amp;amp; "&amp;gt; adding:&amp;nbsp; " &amp;amp; update.Title &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; updatesToInstall.Add(update)&amp;nbsp;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;BR&gt;Next&lt;/P&gt;
&lt;P&gt;WScript.Echo&amp;nbsp; vbCRLF &amp;amp; "Would you like to install updates now? (Y/N)"&lt;BR&gt;strInput = WScript.StdIn.Readline&lt;BR&gt;WScript.Echo &lt;/P&gt;
&lt;P&gt;If (strInput = "N" or strInput = "n") Then &lt;BR&gt;&amp;nbsp;WScript.Quit&lt;BR&gt;ElseIf (strInput = "Y" or strInput = "y") Then&lt;BR&gt;&amp;nbsp;WScript.Echo "Installing updates..."&lt;BR&gt;&amp;nbsp;Set installer = updateSession.CreateUpdateInstaller()&lt;BR&gt;&amp;nbsp;installer.Updates = updatesToInstall&lt;BR&gt;&amp;nbsp;Set installationResult = installer.Install()&lt;BR&gt;&amp;nbsp;&lt;BR&gt;&amp;nbsp;'Output results of install&lt;BR&gt;&amp;nbsp;&lt;STRONG&gt;RetCode = installationResult.ResultCode&lt;/STRONG&gt;&lt;BR&gt;&amp;nbsp;WScript.Echo "Installation Result: " &amp;amp; _&lt;BR&gt;&amp;nbsp;&lt;STRONG&gt;RetCode &amp;amp; " (" &amp;amp; myResultCode(RetCode) &amp;amp; ")"&lt;BR&gt;&lt;/STRONG&gt;&amp;nbsp;WScript.Echo "Reboot Required: " &amp;amp; _ &lt;BR&gt;&amp;nbsp;installationResult.RebootRequired &amp;amp; vbCRLF &lt;BR&gt;&amp;nbsp;WScript.Echo "Listing of updates installed " &amp;amp; _&lt;BR&gt;&amp;nbsp; "and individual installation results:" &lt;BR&gt;&amp;nbsp;&lt;BR&gt;&amp;nbsp;For I = 0 to updatesToInstall.Count - 1&lt;BR&gt;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;RetCode = installationResult.GetUpdateResult(i).ResultCode&lt;BR&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;WScript.Echo I + 1 &amp;amp; "&amp;gt; " &amp;amp; _&lt;BR&gt;&amp;nbsp;&amp;nbsp;updatesToInstall.Item(i).Title &amp;amp; _&lt;BR&gt;&amp;nbsp;&amp;nbsp;": " &amp;amp; &lt;STRONG&gt;RetCode &amp;amp; " (" &amp;amp; myResultCode(RetCode ) &amp;amp; ")"&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&lt;BR&gt;&amp;nbsp;Next&lt;/P&gt;
&lt;P&gt;End If&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P mce_keep="true"&gt;Copy the content, save it to "c:\tools\wu.vbs" on your core box and run it: "cscript c:\tools\wu.vbs":&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;IMG style="WIDTH: 500px; HEIGHT: 307px" height=307 src="http://blogs.technet.com/photos/ferminsa/images/3159784/500x307.aspx" width=500 mce_src="http://blogs.technet.com/photos/ferminsa/images/3159784/500x307.aspx"&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3159783" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/ferminsa/archive/tags/Server+Core/default.aspx">Server Core</category></item><item><title>Hello world</title><link>http://blogs.technet.com/ferminsa/archive/2008/11/18/hello-world.aspx</link><pubDate>Tue, 18 Nov 2008 18:38:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3155836</guid><dc:creator>ferminsa</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.technet.com/ferminsa/comments/3155836.aspx</comments><wfw:commentRss>http://blogs.technet.com/ferminsa/commentrss.aspx?PostID=3155836</wfw:commentRss><description>This is just the kick-off entry to my&amp;nbsp;blog. Don't expect daily updates ...&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3155836" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/ferminsa/archive/tags/blog/default.aspx">blog</category></item></channel></rss>