<?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 : WinPE</title><link>http://blogs.technet.com/svengruenitz/archive/tags/WinPE/default.aspx</link><description>Tags: WinPE</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>WDS Client DHCP issues… Here is one solution</title><link>http://blogs.technet.com/svengruenitz/archive/2008/06/30/wds-client-dhcp-issues-here-is-one-solution.aspx</link><pubDate>Mon, 30 Jun 2008 16:07:32 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3080868</guid><dc:creator>svengru</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.technet.com/svengruenitz/comments/3080868.aspx</comments><wfw:commentRss>http://blogs.technet.com/svengruenitz/commentrss.aspx?PostID=3080868</wfw:commentRss><description>&lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;I was on the road last Friday and help one of my partners to setup a network based deployment for his PC production floor.    &lt;br /&gt;It all worked fine until we hit this error message:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.technet.com/blogfiles/svengruenitz/WindowsLiveWriter/WDSClientDHCPissuesHereisonesolution_C6A1/wdsdhcperror_2.jpg"&gt;&lt;img title="wdsdhcperror" style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="290" alt="wdsdhcperror" src="http://blogs.technet.com/blogfiles/svengruenitz/WindowsLiveWriter/WDSClientDHCPissuesHereisonesolution_C6A1/wdsdhcperror_thumb.jpg" width="616" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Great :-( &lt;/p&gt;  &lt;p&gt;So the first assumption was that the network card &lt;strong&gt;driver is missing in the WDS Windows PE image&lt;/strong&gt;.     &lt;br /&gt;I added the latest driver using the following steps:&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Exported the current boot image from WDS server (right click on the boot image and select “Export Image”) to c:\PE\wds.wim &lt;/li&gt;    &lt;li&gt;Checked that the OPK (AIK will work as well) for Windows Vista was installed &lt;/li&gt;    &lt;li&gt;Opened the “Windows PE Tools Command Prompt” and changed to the c:\PE directory &lt;/li&gt;    &lt;li&gt;Created a “mount” directory (“&lt;font color="#000080"&gt;mkdir mount&lt;/font&gt;” will do) &lt;/li&gt;    &lt;li&gt;Mounted the exported wds.wim image: “&lt;font color="#000080"&gt;imagex /mountrw wds.wim 2 mount&lt;/font&gt;”       &lt;br /&gt;It’s important to use the index “2” as the wds.wim will contain 2 images. &lt;/li&gt;    &lt;li&gt;Downloaded and extracted the latest network driver to c:\PE\drvs &lt;/li&gt;    &lt;li&gt;Used the peimg.exe utility to integrate the drivers: “&lt;font color="#000080"&gt;peimg /inf=drvs\*.inf mount\Windows&lt;/font&gt;” &lt;/li&gt;    &lt;li&gt;Unmounted the image and commited the changes: “&lt;font color="#000080"&gt;imagex /unmount /commit mount&lt;/font&gt;” &lt;/li&gt;    &lt;li&gt;Replaced the current WDS image with the new one (right click on the boot image and select “Replace Image”) &lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;Here is a script that would do part 5 to 8:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;em&gt;&lt;font color="#000080"&gt;imagex /mountrw wds.WIM 1 mount          &lt;br /&gt;peimg /inf=drvs\*.inf mount\Windows           &lt;br /&gt;imagex /unmount /commit mount&lt;/font&gt;&lt;/em&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Tested it again… Same error!! So this wasn’t the solution.&lt;/p&gt;  &lt;p&gt;I opened a command prompt window while the error message was displayed by pressing “SHIFT + F10” and then checked the network connectivity.&lt;/p&gt;  &lt;p&gt;“ipconfig” showed that the client does not have an IP address. Some network cards take a very long time to obtain one, so it tested it again after 20 secs and the client had an IP address.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;So the real error was that the client network card took to long to obtain an IP address and then the WDS Client timed out.&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;I checked for a solution online, but was not able to find one, so I had to create one that I am happy to share with you.&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Build your custom WDS Windows PE image:&lt;/strong&gt;&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Opened the “Windows PE Tools Command Prompt” again and typed “&lt;font color="#000080"&gt;copype x86 c:\wdsbootimage&lt;/font&gt;”.       &lt;br /&gt;This created a Windows PE image in “c:\wdsbootimage” &lt;/li&gt;    &lt;li&gt;Mounted the created WinPE.wim to “mount”: “&lt;font color="#000080"&gt;imagex /mountrw WinPE.wim 1 mount&lt;/font&gt;” &lt;/li&gt;    &lt;li&gt;Added all the necessary network and storage drivers to this image (use the steps descried earlier on…) &lt;/li&gt;    &lt;li&gt;Mounted the image exported earlier: “&lt;font color="#000080"&gt;imagex /mount wds.wim 2 mount&lt;/font&gt;” &lt;/li&gt;    &lt;li&gt;Copied the “sources” (c:\pe\mount\sources) folder to the mounted WinPE.wim (c:\wdsbootimage\mount\sources)      &lt;br /&gt;This added the necessary WDS Client setup files to the new image. &lt;/li&gt;    &lt;li&gt;Opened and edited the “startnet.cmd” file in the new image “notepad c:\wdsbootimage\mount\windows\system32\startnet.cmd”      &lt;br /&gt;This files contained one line: “wpeinit”. &lt;/li&gt;    &lt;li&gt;I changed this to:      &lt;p&gt;&lt;em&gt;&lt;font color="#0000a0"&gt;@echo off            &lt;br /&gt;wpeinit &lt;/font&gt;&lt;/em&gt;&lt;/p&gt;      &lt;p&gt;&lt;em&gt;&lt;font color="#0000a0"&gt;@echo Waiting for the WDS server...            &lt;br /&gt;:testagain             &lt;br /&gt;ping -n 1 wds &amp;gt; NUL             &lt;br /&gt;if %errorlevel% == 0 goto pingok &lt;/font&gt;&lt;/em&gt;&lt;/p&gt;      &lt;p&gt;&lt;em&gt;&lt;font color="#0000a0"&gt;REM wait 3 sec. and try it again            &lt;br /&gt;ping -n 3 127.0.0.1 &amp;gt;nul             &lt;br /&gt;goto testagain &lt;/font&gt;&lt;/em&gt;&lt;/p&gt;      &lt;p&gt;&lt;em&gt;&lt;font color="#0000a0"&gt;:pingok &lt;/font&gt;&lt;/em&gt;&lt;/p&gt;      &lt;p&gt;&lt;em&gt;&lt;font color="#0000a0"&gt;x:\sources\setup.exe /wds /wdsserver:WDS&lt;/font&gt;           &lt;br /&gt;&lt;/em&gt;&lt;/p&gt;      &lt;p&gt;This small script will wait until it can ping the WDS server (in this case the server is named “WDS”) and than start the setup in WDS mode.&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Saved the changed startnet.cmd file &lt;/li&gt;    &lt;li&gt;Removed all unnecessary components from the new WDS WinPE image: “&lt;font color="#000080"&gt;peimg /prep mount\windows&lt;/font&gt;” &lt;/li&gt;    &lt;li&gt;Unmounted the image and commit the changes: “&lt;font color="#000080"&gt;imagex /unmount /commit mount&lt;/font&gt;” &lt;/li&gt;    &lt;li&gt;The WinPE.wim file was still around 200MB, so in order to reduce this size I had to export the new image to a new WIM-File:      &lt;br /&gt;”&lt;font color="#000080"&gt;imagex /export WinPE.wim 1 wds.wim “Custom WDS Windows PE&lt;/font&gt;”       &lt;br /&gt;The now created wds.wim was only around 120MB. &lt;/li&gt;    &lt;li&gt;Replaced the current WDS image with the new one (right click on the boot image and select “Replace Image”) &lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;I tested it again and it now worked. :-)&lt;/p&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3080868" 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/WinPE/default.aspx">WinPE</category></item></channel></rss>