<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[gOxiA=苏繁=SuFan Blog]]></title> 
<link>https://maytide.net/index.php</link> 
<description><![CDATA[gOxiA,苏繁,sufan,Microsoft MVP]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[gOxiA=苏繁=SuFan Blog]]></copyright>
<item>
<link>https://maytide.net/read.php/955.htm</link>
<title><![CDATA[[Windows PE] 创建 Windows Vista / PE2.0 双引导]]></title> 
<author>gOxiA &lt;sufan_cn@msn.com&gt;</author>
<category><![CDATA[Windows Client]]></category>
<pubDate>Fri, 21 Mar 2008 13:40:58 +0000</pubDate> 
<guid>https://maytide.net/read.php/955.htm</guid> 
<description>
<![CDATA[ 
	<p>相信不少朋友都希望能将 PE2.0 安装到硬盘当中，作维护修复或干脆当一个 Windows 来使用，这里需要注意的是微软对 PE2.0 是有限制的，如连续运行的时间限制，等等！而这一切都是未来防止某些人非法利用 PE2.0。今天我们主要以技术为主，帮助用户实现 Vista / PE2.0 双引导，可以满足用户在遭遇系统故障或其他不可预见的故障时能够轻松地进行修复维护工作。<br />首先我们需要先安装 WAIK，之后进入 WAIK 命令行环境，运行：<br />copype.cmd x86 c:&#92;winpe_x86<br />如果有特殊需要，我们可以对该 PE 进行定制，要进行定制需要先 mount winpe.wim，为此：<br />imagex /mountrw c:&#92;winpe_x86&#92;winpe.wim 1 c:&#92;winpe_x86&#92;mount<br />之后根据需要进行定制：<br />peimg /install=*HTA* c:&#92;winpe_x86&#92;mount&#92;windows<br />peimg /install=*WMI* c:&#92;winpe_x86&#92;mount&#92;windows<br />peimg /install=*MDAC* c:&#92;winpe_x86&#92;mount&#92;windows<br />peimg /install=*SCRIPT* c:&#92;winpe_x86&#92;mount&#92;windows<br />peimg /install=*XML* c:&#92;winpe_x86&#92;mount&#92;windows<br />也可以使用 peimg 命令安装所需的驱动，最后 unmount 映像：<br />imagex /unmount c:&#92;winpe_x86&#92;mount /commit<br />copy c:&#92;winpe_x86&#92;winpe.wim c:&#92;winpe_x86&#92;iso&#92;sources&#92;boot.wim<br />定制 PE2.0 后将 ISO 目录拷贝到目标目录，这里我在C盘上建立一个名为 WinPE 的目录，存放用于硬盘引导 PE2.0 所需的文件。为此将c:&#92;winpe_x86&#92;iso 目录下的所有文件拷贝到 c:&#92;winpe 目录下。<br />最后我们就需要在引导文件中添加该PE2.0的引导信息。<br />首先在 BCD 中创建这个 RAMDISK 驱动器的相关信息，为此：<br />bcdedit /export C:&#92;BCD_BAK <br />bcdedit -store c:&#92;boot&#92;bcd /create &#123;ramdiskoptions&#125; /d &quot;Ramdisk Options&quot;<br />bcdedit /set &#123;ramdiskoptions&#125; ramdisksdidevice partition=c:<br />bcdedit /set &#123;ramdiskoptions&#125; ramdisksdipath &#92;winpe&#92;boot&#92;boot.sdi<br />然后在 BCD 中添加新的引导选择，为此：<br />bcdedit -create /d &quot;WinPE 2.0&quot; /application OSLOADER<br />通过 bcdedit/enum all &#124; more 命令获取 WinPE 2.0 的 GUID 值并复制下来以备后用。<br />最后创建 WinPE 引导对象，为此：<br />bcdedit /set &#123;WinPE2.0's GUID&#125; device ramdisk=[c:]&#92;winpe&#92;sources&#92;boot.wim,&#123;ramdiskoptions&#125;<br />bcdedit /set &#123;WinPE2.0's GUID&#125; osdevice ramdisk=[c:]&#92;winpe&#92;sources&#92;boot.wim,&#123;ramdiskoptions&#125;<br />bcdedit /set &#123;WinPE2.0's GUID&#125; path &#92;windows&#92;system32&#92;boot&#92;winload.exe<br />bcdedit /set &#123;WinPE2.0's GUID&#125; systemroot &#92;windows<br />bcdedit /set &#123;WinPE2.0's GUID&#125; detecthal yes<br />bcdedit /set &#123;WinPE2.0's GUID&#125; winpe yes<br />bcdedit /displayorder &#123;current&#125; &#123;WinPE2.0's GUID&#125;<br /><br />OK，大功告成！接下来可以测试一下了！</p>
]]>
</description>
</item>
</channel>
</rss>