Start > All Programs > Microsoft Windows AIK > Deployment Tools Command Prompt -> Right-Click > Run as administrator > Yes
diskpart
create vdisk file=d:\winpe.vhd type=fixed maximum=1024
select vdisk file=d:\winpe.vhd
attach vdisk
create partition primary
assign
format quick label=vhd
exit
imagex /apply "c:\program files\windows aik\tools\petools\x86\winpe.wim" 1 e:
diskpart
select vdisk file=d:\winpe.vhd
detach vdisk
exit
bcdedit /create /d "vhd" /application osloader
bcdedit /set {GUID} device vhd=[d:]\winpe.vhd
bcdedit /set {GUID} osdevice vhd=[d:]\winpe.vhd
bcdedit /set {GUID} path \windows\system32\winload.exe
bcdedit /set {GUID} systemroot \windows
bcdedit /set {GUID} detecthal yes
bcdedit /set {GUID} winpe yes
bcdedit /displayorder {GUID} /addlast
e: is the Drive Letter assigned to the attached VDISK.
{GUID} is returned following the command:
bcdedit /create /d "vhd" /application osloader
d: is the partition holding the .vhd file. In the BCD, [d:] may be replaced by [locate].
Compared to other methods of booting the unmodified winpe.wim volume image - from Boot Manager select to the appearance of the Command Prompt:
vhd - 34 seconds
wim - 33 seconds
flat - 32 seconds
(... give or take a second or two ...
Regards
This post has been edited by allanf: 03 May 2009 - 10:09 AM



Help
Back to top










