This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
howto:winpe [2016/07/06 18:57] mcb30 |
howto:winpe [2017/05/10 15:48] mcb30 |
||
---|---|---|---|
Line 89: | Line 89: | ||
===== Advanced topics ===== | ===== Advanced topics ===== | ||
- | |||
- | You can customise your Windows PE images using the ''ImageX'' and ''DISM'' tools, which are part of the [[#windows_assessment_and_deployment_toolkit_adk|Windows ADK]] (or [[#windows_automated_installation_kit_aik|AIK]]). A Linux version of ''imagex'' is also available as part of the ''[[http://sourceforge.net/projects/wimlib/|wimlib]]'' package. | ||
==== Adding a startup batch file ==== | ==== Adding a startup batch file ==== | ||
Line 107: | Line 105: | ||
[LaunchApps] | [LaunchApps] | ||
- | "%SYSTEMDRIVE%\install.bat" | + | "install.bat" |
- | Use ''ImageX'' to add these files to the Windows PE image: | + | Copy ''install.bat'' and ''winpeshl.ini'' to your web server and edit your ''boot.ipxe'' script to load these files: |
- | imagex /mountrw C:\temp\winpe\amd64\media\sources\boot.wim 1 C:\temp\winpe\amd64\mount | + | #!ipxe |
- | copy /y install.bat C:\temp\winpe\amd64\mount\ | + | |
- | copy /y winpeshl.ini C:\temp\winpe\amd64\mount\Windows\System32\ | + | cpuid --ext 29 && set arch amd64 || set arch x86 |
- | imagex /unmount /commit C:\temp\winpe\amd64\mount | + | kernel wimboot |
+ | initrd install.bat install.bat | ||
+ | initrd winpeshl.ini winpeshl.ini | ||
+ | initrd ${arch}/media/Boot/BCD BCD | ||
+ | initrd ${arch}/media/Boot/boot.sdi boot.sdi | ||
+ | initrd ${arch}/media/sources/boot.wim boot.wim | ||
+ | boot | ||
- | Copy the updated ''boot.wim'' file to your web server. When you boot into Windows PE, it should now automatically connect to your file server and run the Windows installer. | + | When you boot into Windows PE, it should now automatically connect to your file server and run the Windows installer. |
{{ :clipart:nic.jpeg?158x148|A network card}} | {{ :clipart:nic.jpeg?158x148|A network card}} | ||
Line 122: | Line 126: | ||
==== Adding a network card driver ==== | ==== Adding a network card driver ==== | ||
- | You can customise your Windows PE image to include drivers for your network card, if your card is not already supported by Windows PE. | + | You can customise your Windows PE image to include drivers for your network card, if your card is not already supported by Windows PE. You will need the ''ImageX'' and ''DISM'' tools, which are part of the [[#windows_assessment_and_deployment_toolkit_adk|Windows ADK]] (or [[#windows_automated_installation_kit_aik|AIK]]). A Linux version of ''imagex'' is also available as part of the ''[[http://sourceforge.net/projects/wimlib/|wimlib]]'' package. |
Download the drivers for your network card, and extract the driver to ''C:\temp\winpe\drivers''. If you are using the ADK then you will need to download a driver compatible with Windows 8; if you are using the AIK then you will need a driver compatible with Windows 7. | Download the drivers for your network card, and extract the driver to ''C:\temp\winpe\drivers''. If you are using the ADK then you will need to download a driver compatible with Windows 8; if you are using the AIK then you will need a driver compatible with Windows 7. | ||
Line 149: | Line 153: | ||
{{ :screenshots:winpe_iscsi_prompt.png?600x334 |WinPE installation prompt}} | {{ :screenshots:winpe_iscsi_prompt.png?600x334 |WinPE installation prompt}} | ||
- | Press F12 to begin the installation process. If you have already added a [[#adding_a_startup_batch_file|startup batch file]] as described above, then the Windows installer will start automatically. If not, then connect to your Windows (or [[http://www.samba.org|Samba]]) file server and run the Windows installer manually. | + | Press F12 to begin the installation process. If you have already added a [[#adding_a_startup_batch_file|startup batch file]] as described above, then the Windows installer will start automatically. If not, then connect to your file server and run the Windows installer manually. |
Proceed to install Windows as usual. When you reach the ”Where do you want to install Windows?” screen, you should see the iSCSI disk appear as a possible install location: | Proceed to install Windows as usual. When you reach the ”Where do you want to install Windows?” screen, you should see the iSCSI disk appear as a possible install location: |