标题:Windows 8.1 Update 创建 WIMBoot 映像 出处:gOxiA=苏繁=SuFan Blog 时间:Wed, 16 Apr 2014 12:48:51 +0000 作者:gOxiA 地址:https://goxia.maytide.net/read.php/1722.htm 内容: Windows 8.1 Update 创建 WIMBoot 映像 Windows 8.1 Update WIMBoot 概述 向大家简要阐述了 WIMBoot 的特性、工作方式以及适用环境,而今天 gOxiA 要与大家分享的是创建 WIMBoot 映像,也就是为实施 WIMBoot 而做的最为主要的准备工作。 创建 WIMBoot 映像可分为两种方式,其中最为简单的就是直接通过一个 Windows 标准安装映像生成支持 WIMBoot 的映像,可参考如下命令行: dism /export-image /wimboot /sourceimagefile:c:\images\install.wim /sourceindex:1 /destinationimagefile:c:\images\install.wimboot.wim 而另一种创建虽然繁琐,但却是官方推荐的,因为 WIMBoot 可以得到最大程度上的优化,例如减少占用的空间容量,而且还可以在创建过程中根据需要对系统进行自定义设置。 首先,准备一个原始的 Install.wim 用于创建优化的 WIMBoot 映像。如: copy c:\images\install.wim c:\imageswimboot.wim 然后,装载该映像,并移除默认的 Windows RE 映像,以减少占用的空间容量。 dism /mount-image /imagefile:c:\imageswimboot.wim /index:1 /mountdir:c:\mount move c:\mount\windows\system32\recovery\winre.wim c:\images\winre.wim 注:如果在 move 时提示错误,可使用 attrib –s –h 来修改 winre.wim 的文件属性。 现在,优化映像并加入 WIMBoot 支持。 dism /optimize-image /image:c:\mount /wimboot 最后,卸载映像并保存更改。 dism /unmount-image /mountdir:c:\mount /commit 至此,看似应该结束了!但官方文档还要求继续将该映像部署到参考PC上,继续进行优化以及自定义。在 OOBE 阶段通过 CTRL+SHIFT+F3 进入审计模式,对系统进行自定义或安装驱动以及应用,然后使用 dism 的 cleanup-image 对当前系统进行清理。通过 /startcomponentcleanup 参数可清理被取代的组件,减少占用的空间容量。 dism /cleanup-image /online /startcomponentcleanup 执行 Sysprep 重新封装系统,并捕获映像用于 WIMBoot 部署。 c:\windows\system32\sysprep\sysprep /generalize /shutdown /oobe [code] dism /capture-image /wimboot /imagefile:e:\images\install_wimboot.wim /capturedir:c: /name:”WIMBoot Pro_x64 with 8.1 Update” 准备好了 WIMBoot 映像,接下来就可以进行 WIMBoot 的安装! Generated by Bo-blog 2.1.1 Release