{"id":773,"date":"2014-01-11T14:51:28","date_gmt":"2014-01-11T13:51:28","guid":{"rendered":"http:\/\/labalec.fr\/erwan\/?p=773"},"modified":"2014-03-01T15:25:04","modified_gmt":"2014-03-01T14:25:04","slug":"how-to-install-windows-7-or-8-thru-winpe-via-pxe","status":"publish","type":"post","link":"https:\/\/labalec.fr\/erwan\/?p=773","title":{"rendered":"How to install Windows (7 or 8) thru WINPE, via PXE"},"content":{"rendered":"<p>There are times where you may not have a dvd drive or media available, or else, you may also want to perform some tasks before triggering the windows setup.<\/p>\n<p><span style=\"text-decoration: underline;\">Agenda<\/span><\/p>\n<ul>\n<li>Prepare winpe with <a href=\"http:\/\/reboot.pro\/topic\/18744-quickpe\/\" target=\"_blank\">QuickPE<\/a><\/li>\n<li>Prepare the <a href=\"http:\/\/ipxe.org\/\" target=\"_blank\">ipxe<\/a> script<\/li>\n<li>Prepare the PXE server with <a href=\"http:\/\/reboot.pro\/topic\/18488-tiny-pxe-server\/\" target=\"_blank\">TinyPxe Server<\/a><\/li>\n<li><span style=\"line-height: 1.5em;\">Boot to winpe and Install windows<\/span><\/li>\n<li>Reboot and complete the installation on the local drive<\/li>\n<\/ul>\n<p><strong style=\"line-height: 1.5em;\">Prepare winpe with QuickPE<\/strong><\/p>\n<p>You can either use MS WAIK (winpe3), or MS ADK (winpe4) or an existing windows setup DVD or ISO file.<br \/>\nLaunch _run_me.cmd and make your choice.<\/p>\n<p><a href=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2013\/08\/quickpe_menu.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-438\" alt=\"quickpe_menu\" src=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2013\/08\/quickpe_menu-300x151.png\" width=\"300\" height=\"151\" srcset=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2013\/08\/quickpe_menu-300x151.png 300w, https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2013\/08\/quickpe_menu.png 684w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><strong>Prepare the ipxe script<\/strong><\/p>\n<p>The following will attach an iscsi drive and will boot your winpe<\/p>\n<p><code><br \/>\n#!ipxe<br \/>\ndhcp net0<br \/>\nset boot-url http:\/\/${dhcp-server}<br \/>\ninitrd ${boot-url}\/images\/winpe4.iso<br \/>\nkernel ${boot-url}\/memdisk iso raw<br \/>\nboot<br \/>\n<\/code><\/p>\n<p><strong>Prepare the PXE server with TinyPxe Server<\/strong><\/p>\n<p>Use ipxe-undionly.kpxe as \u00ab\u00a0boot file name\u00a0\u00bb and the above script (name it install.ipxe) as \u00ab\u00a0filename if user-class=iPXE\u00a0\u00bb<\/p>\n<p><a href=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2013\/08\/tinypxeserver.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-440\" alt=\"tinypxeserver\" src=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2013\/08\/tinypxeserver-260x300.png\" width=\"260\" height=\"300\" srcset=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2013\/08\/tinypxeserver-260x300.png 260w, https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2013\/08\/tinypxeserver.png 480w\" sizes=\"auto, (max-width: 260px) 100vw, 260px\" \/><\/a><\/p>\n<p><strong>Boot to Winpe<\/strong><\/p>\n<p>Now lets network boot (pxe as first device in the bios).<br \/>\nComputer will pxe boot, load ipxe, then load your script.<br \/>\nThe script will boot into winpe.<\/p>\n<p><span style=\"line-height: 1.5em;\">Now we are ready to perform the installation : map a drive thanks to PeNetwork (in the tinyshell launchbar) and map a network share containing your windows installation files.<br \/>\nYou could eventually script this part (in batch file) :<br \/>\n<code><br \/>\nnet use \\\\servername\\sharename \/user:username password<br \/>\n\\\\servername\\sharename\\setup.exe<br \/>\n<\/code><br \/>\n<\/span><\/p>\n<p>Note1 : CloneDisk can also mount a virtual dvd drive from an iso file (only in winpe4).<\/p>\n<p>Note2 : Rather than launching the setup.exe from the windows DVD, you can also apply a wim file to the target drive using imagex (or clonedisk).<br \/>\nIf so, then remember that you need to prepare the drive (partition active, boot sector &#8230;).<br \/>\nExample code using imagex (we&rsquo;ll assume the partition has been made active already) :<br \/>\n<code><br \/>\nImagex \/apply \\\\servername\\sharename\\install.wim 1 c:<br \/>\nbcdboot c:\\windows \/s c:<br \/>\nbootsect \/nt60 c: \/mbr<br \/>\n<\/code><\/p>\n<p>Launch the windows setup and let it run.<\/p>\n<p><strong style=\"line-height: 1.5em;\">Reboot to local drive<\/strong><\/p>\n<p>Windows should the complete the installation, and reboot one last to your windows desktop.<\/p>\n<p>See below a video demonstrating the above steps.<br \/>\n<div style=\"width: 695px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-773-1\" width=\"695\" height=\"391\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/x-ms-wmv\" src=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2014\/01\/win7_pxe.wmv?_=1\" \/><a href=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2014\/01\/win7_pxe.wmv\">https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2014\/01\/win7_pxe.wmv<\/a><\/video><\/div><\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are times where you may not have a dvd drive or media available, or else, you may also want to perform some tasks before triggering the windows setup. Agenda Prepare winpe with QuickPE Prepare the ipxe script Prepare the PXE server with TinyPxe Server Boot to winpe and Install windows Reboot and complete the <a href='https:\/\/labalec.fr\/erwan\/?p=773' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,45,28],"tags":[],"class_list":["post-773","post","type-post","status-publish","format-standard","hentry","category-boot","category-pxe","category-tinypxe-server","category-16-id","category-45-id","category-28-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"_links":{"self":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/773","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=773"}],"version-history":[{"count":13,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/773\/revisions"}],"predecessor-version":[{"id":806,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/773\/revisions\/806"}],"wp:attachment":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=773"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=773"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=773"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}