Differences
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 | ||
winpe [2009/08/17 07:09] tal.aloni modified the script to allow executing it in a bat file |
winpe [2010/01/19 17:39] billmc added note regarding x64 support |
||
---|---|---|---|
Line 12: | Line 12: | ||
Install the AIK onto a working Windows system (the "technician computer"). The installation requires around 1GB of disk space. | Install the AIK onto a working Windows system (the "technician computer"). The installation requires around 1GB of disk space. | ||
- | |||
===== Setting up WinPE ===== | ===== Setting up WinPE ===== | ||
- | Open the Windows PE Tools Command Prompt (//Start// -> //All Programs// -> //Microsoft Windows AIK// -> //Windows PE Tools Command Prompt//) and enter the following commands (some of which are case-sensitive): | + | Open the Windows PE Tools Command Prompt (//Start// -> //All Programs// -> //Microsoft Windows AIK// -> //Windows PE Tools Command Prompt//) and enter the following commands (some of which are case-sensitive). Note that if you intending to install a 64 bit version of Windows, the second command below should specify "amd64" instead of "x86" (amd64 is a generic reference to 64 bit support which includes support for both AMD and Intel based 64bit hardware): |
mkdir C:\Temp | mkdir C:\Temp | ||
Line 33: | Line 32: | ||
%BCDEDIT% -set {ramdiskoptions} ramdisksdidevice boot | %BCDEDIT% -set {ramdiskoptions} ramdisksdidevice boot | ||
%BCDEDIT% -set {ramdiskoptions} ramdisksdipath \Boot\boot.sdi | %BCDEDIT% -set {ramdiskoptions} ramdisksdipath \Boot\boot.sdi | ||
- | for /f "tokens=3" %%a in ('%BCDEDIT% -create -d "Windows PE" -application osloader') do set GUID=%%a | + | for /f "tokens=3" %a in ('%BCDEDIT% -create -d "Windows PE" -application osloader') do set GUID=%a |
%BCDEDIT% -set %GUID% systemroot \Windows | %BCDEDIT% -set %GUID% systemroot \Windows | ||
%BCDEDIT% -set %GUID% detecthal Yes | %BCDEDIT% -set %GUID% detecthal Yes | ||
Line 43: | Line 42: | ||
%BCDEDIT% -set {bootmgr} displayorder %GUID% | %BCDEDIT% -set {bootmgr} displayorder %GUID% | ||
del /Q bcdedit.exe | del /Q bcdedit.exe | ||
+ | |||
+ | Note: When using inside a batch file, replace %a with %%a (twice) in the "for" command parameters. | ||
===== Transferring WinPE to a TFTP server ===== | ===== Transferring WinPE to a TFTP server ===== | ||
Line 78: | Line 79: | ||
Congratulations on a successful boot of Windows PE! | Congratulations on a successful boot of Windows PE! | ||
- |