<?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>My personal blog about pre-installation and other topics : OPK</title><link>http://blogs.technet.com/svengruenitz/archive/tags/OPK/default.aspx</link><description>Tags: OPK</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Driver installation and updating made easy: DPInst.exe</title><link>http://blogs.technet.com/svengruenitz/archive/2008/07/02/driver-installation-and-updating-made-easy-dpinst-exe.aspx</link><pubDate>Wed, 02 Jul 2008 15:02:39 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3082335</guid><dc:creator>svengru</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.technet.com/svengruenitz/comments/3082335.aspx</comments><wfw:commentRss>http://blogs.technet.com/svengruenitz/commentrss.aspx?PostID=3082335</wfw:commentRss><description>&lt;p&gt;Installing or updating drivers on a system does always take a long time since you need to run many different driver installers to get all the devices in a system running. How about just running one installer and all your drivers are installed afterwards? A dream? Stop dreaming and do it right now with the Driver Package Installer (DPinst).&lt;/p&gt;  &lt;p&gt;The details are here: &lt;a title="http://msdn.microsoft.com/en-us/library/ms791049.aspx" href="http://msdn.microsoft.com/en-us/library/ms791049.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms791049.aspx&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;DPInst is part of the Windows Driver Kit (WDK). More details here: &lt;a title="http://www.microsoft.com/whdc/devtools/WDK/default.mspx" href="http://www.microsoft.com/whdc/devtools/WDK/default.mspx"&gt;http://www.microsoft.com/whdc/devtools/WDK/default.mspx&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;So, how can you use this tool?&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Download the WDK in order to get the latest version of DPInst (can be found under the “DIFx” tools) &lt;/li&gt;    &lt;li&gt;Create a new directory e.g. “c:\drivers” and copy DPInst.exe to that directory     &lt;br /&gt;Note: There is a different version for x86 and x64&lt;/li&gt;    &lt;li&gt;Create a dpinst.xml file to control DPinst.     &lt;br /&gt;All possible settings can be found here: &lt;a title="http://msdn.microsoft.com/en-us/library/ms791067.aspx" href="http://msdn.microsoft.com/en-us/library/ms791067.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms791067.aspx&lt;/a&gt;      &lt;br /&gt;An example can look like this:&lt;/li&gt;    &lt;p&gt;&lt;font color="#000080"&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; ?&amp;gt;       &lt;br /&gt;&amp;#160; &amp;lt;dpinst&amp;gt; &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font color="#000080"&gt;&amp;lt;suppressAddRemovePrograms/&amp;gt;&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font color="#000080"&gt;&amp;lt;!-- The following search and subDirectory elements direct       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; DPInst to search all subdirectories (under the DPInst working directory) to locate driver        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; packages. --&amp;gt;        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;search&amp;gt;        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;subDirectory&amp;gt;*&amp;lt;/subDirectory&amp;gt;        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/search&amp;gt; &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font color="#000080"&gt;&amp;lt;!-- The following language element localizes its child elements       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; for the English (Standard) language. The child elements        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; customize the text that appears on the DPInst wizard pages. --&amp;gt;        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;language code=&amp;quot;0x0409&amp;quot;&amp;gt;        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;dpinstTitle&amp;gt;Device Driver Updater&amp;lt;/dpinstTitle&amp;gt;        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;welcomeTitle&amp;gt;Welcome to the Device Installer!&amp;lt;/welcomeTitle&amp;gt;        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;welcomeIntro&amp;gt;This wizard will walk you through updating the drivers for your device.&amp;lt;/welcomeIntro&amp;gt;        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;installHeaderTitle&amp;gt;Installing the software for your device...&amp;lt;/installHeaderTitle&amp;gt;        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;lt;finishTitle&amp;gt;Congratulations! You finished installing your device drivers.&amp;lt;/finishTitle&amp;gt;        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;/language&amp;gt; &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font color="#000080"&gt;&amp;#160;&amp;#160;&amp;#160; &amp;lt;scanHardware/&amp;gt;&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font color="#000080"&gt;&amp;lt;/dpinst&amp;gt;&lt;/font&gt;&lt;/p&gt;    &lt;li&gt;Create sub directories for drivers and place the driver files (.inf, .sys, cat, .dll, etc.) into these directories.     &lt;br /&gt;My example looks like this:      &lt;br /&gt;&lt;a href="http://blogs.technet.com/blogfiles/svengruenitz/WindowsLiveWriter/Driverinstallationandupdatingmadeeas.exe_B768/image_2.png"&gt;&lt;img title="image" style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="156" alt="image" src="http://blogs.technet.com/blogfiles/svengruenitz/WindowsLiveWriter/Driverinstallationandupdatingmadeeas.exe_B768/image_thumb.png" width="454" border="0" /&gt;&lt;/a&gt;&amp;#160;&lt;/li&gt;    &lt;li&gt;Copy the complete directory to an external storage drive or network location and execute DPInst.exe to install / update the drivers     &lt;br /&gt;on that machine. This dialogue will be displayed and pressing “Next” will start the installation…      &lt;br /&gt;&lt;a href="http://blogs.technet.com/blogfiles/svengruenitz/WindowsLiveWriter/Driverinstallationandupdatingmadeeas.exe_B768/image_4.png"&gt;&lt;img title="image" style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="249" alt="image" src="http://blogs.technet.com/blogfiles/svengruenitz/WindowsLiveWriter/Driverinstallationandupdatingmadeeas.exe_B768/image_thumb_1.png" width="323" border="0" /&gt;&lt;/a&gt; &lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;Done. :-) This will save a lot of your time.   &lt;br /&gt;    &lt;br /&gt;I created a sample package that contains all necessary files for x86 and x64. You can get it here:    &lt;br /&gt;&amp;#160;&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-68b7c02646a1899d.skydrive.live.com/embedrowdetail.aspx/Public/DPinstsamples.zip" frameborder="0" scrolling="no"&gt;&lt;/iframe&gt;&lt;/p&gt;  &lt;p&gt;This sample also contains a script “installdrvs.cmd” which shows you how to use DPInst in silent mode.   &lt;br /&gt;    &lt;br /&gt;Using DPInst in silent mode as part of your Windows XP or Windows Vista installation does work very well and is faster than using     &lt;br /&gt;a “Driver Path” in an unattend file as it will only install the drivers that match your hardware and not all drivers present in the driver directory.    &lt;br /&gt;So one example would be to add a driver folder containing DPinst,the dpinst.xml file and all drivers to the $OEM$\$1\ folder     &lt;br /&gt;(This will be on the C:\ driver after the installation) and then call installdrvs.cmd as “RunSynchronousCommand” during “Audit User” phase of     &lt;br /&gt;the Windows Vista setup.&amp;#160; Looks like this in System Image Manager:    &lt;br /&gt;&lt;a href="http://blogs.technet.com/blogfiles/svengruenitz/WindowsLiveWriter/Driverinstallationandupdatingmadeeas.exe_B768/image_6.png"&gt;&lt;img title="image" style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="310" alt="image" src="http://blogs.technet.com/blogfiles/svengruenitz/WindowsLiveWriter/Driverinstallationandupdatingmadeeas.exe_B768/image_thumb_2.png" width="723" border="0" /&gt;&lt;/a&gt;     &lt;br /&gt;    &lt;br /&gt;Have fun.&lt;/p&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3082335" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/svengruenitz/archive/tags/OPK/default.aspx">OPK</category><category domain="http://blogs.technet.com/svengruenitz/archive/tags/Vista/default.aspx">Vista</category><category domain="http://blogs.technet.com/svengruenitz/archive/tags/DPinst/default.aspx">DPinst</category><category domain="http://blogs.technet.com/svengruenitz/archive/tags/XP/default.aspx">XP</category><category domain="http://blogs.technet.com/svengruenitz/archive/tags/Drivers/default.aspx">Drivers</category></item><item><title>A guide to use WDS for OEM pre-installations… not really, but some good tips and samples</title><link>http://blogs.technet.com/svengruenitz/archive/2008/07/01/a-guide-to-use-wds-for-oem-pre-installations-not-really-but-some-good-tips-samples.aspx</link><pubDate>Tue, 01 Jul 2008 11:48:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3081537</guid><dc:creator>svengru</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.technet.com/svengruenitz/comments/3081537.aspx</comments><wfw:commentRss>http://blogs.technet.com/svengruenitz/commentrss.aspx?PostID=3081537</wfw:commentRss><description>&lt;p&gt;This is not a complete WDS guide as the title already indicates, but I want to share some examples and best practices.&lt;/p&gt;  &lt;p&gt;The generic WDS install guide can be found here:   &lt;br /&gt;&lt;a title="http://technet2.microsoft.com/windowsserver2008/en/library/7d837d88-6d8e-420c-b68f-a5b4baeb52481033.mspx?mfr=true" href="http://technet2.microsoft.com/windowsserver2008/en/library/7d837d88-6d8e-420c-b68f-a5b4baeb52481033.mspx?mfr=true"&gt;http://technet2.microsoft.com/windowsserver2008/en/library/7d837d88-6d8e-420c-b68f-a5b4baeb52481033.mspx?mfr=true&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;This will help you to setup or optimise your own WDS sever to do OEM pre-installations of Windows Vista and Server 2008.&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;The most common issue I found is that people are not aware of the different answer files that a WDS server uses, so let’s start with this one.&lt;/p&gt;  &lt;p&gt;There are two different answer files:    &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;An unattend.xml file that controls the Windows PE phase (connect to the WDS server, load storage driver, partition the disk, etc.) of the setup      &lt;br /&gt;This one needs to be place in “c:\RemoteInstall\WdsClientUnattend\”.&amp;#160; Than right-click on your WDS server in Server Manager and select properties.       &lt;br /&gt;The following dialogue will be displayed and you can select the unattend file:       &lt;br /&gt;&lt;a href="http://blogs.technet.com/blogfiles/svengruenitz/WindowsLiveWriter/AguidetouseWDSforOEMpreinstallationsnotr_80AA/image_2.png"&gt;&lt;img title="image" style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="599" alt="image" src="http://blogs.technet.com/blogfiles/svengruenitz/WindowsLiveWriter/AguidetouseWDSforOEMpreinstallationsnotr_80AA/image_thumb.png" width="698" border="0" /&gt;&lt;/a&gt;&amp;#160; &lt;br /&gt;Change the settings as displayed and select the unattend file that you created and placed in “c:\RemoteInstall\WdsClientUnattend\”.       &lt;br /&gt;I created a sample unattend.xml file for you that you can download here:       &lt;br /&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-68b7c02646a1899d.skydrive.live.com/embedrowdetail.aspx/Public/WDS-Samples/WdsClientUnattend/unattend.xml" frameborder="0" scrolling="no"&gt;&lt;/iframe&gt;      &lt;br /&gt;You need to edit this file using &amp;quot;System Image Manager” (part of the OPK) to change your server, username &amp;amp; password details.       &lt;br /&gt;This sample includes an entry that points to “c:\RemoteInstall\StorageDriver-x86” for storage driver updates. You need create that directory or delete the entry.       &lt;br /&gt;&lt;/li&gt;    &lt;li&gt;The image unattend file. This file controls the rest of the setup process and is image specific.      &lt;br /&gt;You can still use one answer file for all your images including Windows Vista and Server 2008. There is no need to create separate ones.       &lt;br /&gt;Right-click on an Install Image and select properties. Make the changes as shown below and select an unattend file:       &lt;br /&gt;&lt;a href="http://blogs.technet.com/blogfiles/svengruenitz/WindowsLiveWriter/AguidetouseWDSforOEMpreinstallationsnotr_80AA/image_4.png"&gt;&lt;img title="image" style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="626" alt="image" src="http://blogs.technet.com/blogfiles/svengruenitz/WindowsLiveWriter/AguidetouseWDSforOEMpreinstallationsnotr_80AA/image_thumb_1.png" width="695" border="0" /&gt;&lt;/a&gt;       &lt;br /&gt;I created a sample file as well. This one works for Windows Vista and Server 2008. Get is from here:       &lt;br /&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-68b7c02646a1899d.skydrive.live.com/embedrowdetail.aspx/Public/WDS-Samples/Unattend-for-all-images.zip" frameborder="0" scrolling="no"&gt;&lt;/iframe&gt;      &lt;br /&gt;This Zip-File contains the sample unattend file and a sample “$OEM$” Folder as well. You need to edit the unattend file to change your support information.       &lt;br /&gt;Once you select an image in WDS for an install in unattended mode a new “install” folder that contains the unattend file you selected will be created.       &lt;br /&gt;This is “c:\RemoteInstall\Images\Vista SP1\install\” in my example. This folder contains a folder called “unattend”. In that folder is a copy of the unattend file you just selected.       &lt;br /&gt;Place the “$OEM$” sample in the “install” folder, so that this folder now contains the “unattend” and the “$OEM$” folder. &lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;Try it! You will be able to do a fully unattend installation of Windows Vista or Server 2008 now. This installation will end in Audit Mode, so that you can continue to pre-install more applications.&lt;/p&gt;  &lt;p&gt;The sample “$OEM$” folder also contains a script that will change the unattend file after the installation has finished and the PC enters Audit Mode.    &lt;br /&gt;This new unattend file is copied to ”c:\Windows\Panther” and controls the Sysprep and next OOBE experience.     &lt;br /&gt;This sample will keep all device drivers during the Sysprep Phase and not prompt the end-user for language and region specific settings during OBBE.&lt;/p&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3081537" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/svengruenitz/archive/tags/WDS/default.aspx">WDS</category><category domain="http://blogs.technet.com/svengruenitz/archive/tags/OPK/default.aspx">OPK</category><category domain="http://blogs.technet.com/svengruenitz/archive/tags/OEM/default.aspx">OEM</category></item><item><title>Windows Vista: Start Windows Update via script in Audit Mode</title><link>http://blogs.technet.com/svengruenitz/archive/2008/06/30/windows-vista-start-windows-update-via-script-in-audit-mode.aspx</link><pubDate>Mon, 30 Jun 2008 17:01:26 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3080901</guid><dc:creator>svengru</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.technet.com/svengruenitz/comments/3080901.aspx</comments><wfw:commentRss>http://blogs.technet.com/svengruenitz/commentrss.aspx?PostID=3080901</wfw:commentRss><description>&lt;p&gt;Windows Update is not enabled by default in Audit Mode.&lt;/p&gt;  &lt;p&gt;This CMD script will enable it and check for updates:&lt;/p&gt;  &lt;p&gt;&lt;em&gt;&lt;font color="#000080"&gt;NET STOP &amp;quot;Windows Update&amp;quot;       &lt;br /&gt;REG ADD &amp;quot;HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update&amp;quot; /v AUOptions /t REG_DWORD /d 00000004        &lt;br /&gt;REG ADD &amp;quot;HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update&amp;quot; /v ScheduledInstallDay /t REG_DWORD /d 00000000        &lt;br /&gt;REG ADD &amp;quot;HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update&amp;quot; /v ScheduledInstallTime /t REG_DWORD /d 00000003        &lt;br /&gt;NET START &amp;quot;Windows Update&amp;quot;        &lt;br /&gt;WUAUCLT /DETECTNOW&lt;/font&gt;&lt;/em&gt;&lt;/p&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3080901" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/svengruenitz/archive/tags/OPK/default.aspx">OPK</category><category domain="http://blogs.technet.com/svengruenitz/archive/tags/Vista/default.aspx">Vista</category><category domain="http://blogs.technet.com/svengruenitz/archive/tags/Windows+Update/default.aspx">Windows Update</category></item></channel></rss>