使用Windows 自動(dòng)安裝工具包 (AIK)快速描述Windows 自動(dòng)安裝工具包 (Windows AIK)可以很方便得創(chuàng )建基于WinPE的WIM鏡像文件.WIM格式鏡像可以方便得轉換為iso格式并刻錄到CD或DVD中.
WIM文件還可以通過(guò)使用Deployment Services(自動(dòng)化部署服務(wù),簡(jiǎn)稱(chēng)ADS)以通過(guò)網(wǎng)絡(luò )引導系統啟動(dòng).
微軟官網(wǎng)還提供了從U盤(pán)或本地硬盤(pán)上的WIM文件啟動(dòng)的方法.
下文將詳細說(shuō)明如何使系統從WIM文件啟動(dòng),并添加到啟動(dòng)菜單里:
首先把wim鏡像文件置于 C:\Sources\boot.wim
1.從Vista安裝光盤(pán)中復制 boot\boot.sdi 到 C:\boot (該文件夾為隱藏文件夾)
2.通過(guò)以下命令創(chuàng )建BCD記錄. 下面的"{ramdiskoptions}" 即為我們將添加的啟動(dòng)項目的GUID所對應的名稱(chēng).
復制內容到剪貼板
代碼:
bcdedit /create {ramdiskoptions} /d "Ramdisk options"復制內容到剪貼板
代碼:
bcdedit /set {ramdiskoptions} ramdisksdidevice partition=c:復制內容到剪貼板
代碼:
bcdedit /set {ramdiskoptions} ramdisksdipath \boot\boot.sdi3.創(chuàng )建啟動(dòng)項目
復制內容到剪貼板
代碼:
bcdedit -create /d "Windows PE boot" /application OSLOADER4.上一步驟將生成一個(gè)GUID號碼. 下面"NewGUID"就是代表這一串數字. 執行下列命令以配置新增的啟動(dòng)項.
*別忘了替換下面的NewGUID復制內容到剪貼板
代碼:
bcdedit /set {NewGUID} device ramdisk=[c:]\sources\boot.wim,{ramdiskoptions}復制內容到剪貼板
代碼:
bcdedit /set {NewGUID} path \windows\system32\boot\winload.exe復制內容到剪貼板
代碼:
bcdedit /set {NewGUID} osdevice ramdisk=[c:]\sources\boot.wim,{ramdiskoptions}復制內容到剪貼板
代碼:
bcdedit /set {NewGUID} systemroot \windows復制內容到剪貼板
代碼:
bcdedit /set {NewGUID} winpe yes復制內容到剪貼板
代碼:
bcdedit /set {NewGUID} detecthal yes復制內容到剪貼板
代碼:
bcdedit /displayorder {NewGUID} /addlastok~完成~現在你重啟系統,就可以看到一個(gè)新的啟動(dòng)項目"Windows PE boot",選擇此項即可從c:\sources\boot.wim啟動(dòng)~
原文鏈接