Win8 Preload's Study

一、DISM

             DISM就是部署映像服务和管理。

             /Mount-Image - 从 WIM 或 VHD 文件装载映像。

DISM /Mount-Image /ImageFile:%tmp_WinPE_Disk%\media\sources\boot.wim /Index:1 /MountDir:%tmp_WinPE_Disk%\mount /loglevel:1 /logpath:%Pre_Install_Root%\Pre-Install.log

            /Unmount-Image - 卸载已装载的 WIM 或 VHD 映像。

DISM /Unmount-Image /MountDir:%tmp_WinPE_Disk%\mount /Commit /loglevel:1 /logpath:%Pre_Install_Root%\Pre-Install.log

           /Capture-Image - 将驱动器的映像捕获到新的 WIM 文件中。(捕获的目录包含所有子文件夹和数据)

Dism /Capture-Image /ImageFile:WIM\Panther-OEM.wim /CaptureDir:$oem$\$$\Panther\OEM-tmp /Name:"Panther OEM" /Compress:fast /loglevel:1 /logpath:%Pre_Install_Root%\Pre-Install.log

          /Apply-Image - 应用一个映像。

Dism /Apply-Image /ImageFile:W:\WIM\Panther-oem.wim /Index:1 /ApplyDir:W:\Windows\Panther\OEM

         /Append-Image - 将新映像添加到 WIM 文件中。

Dism /Append-Image  /Imagefile:Y:\RecoveryImage\Install.wim /capturedir:T:\WinRE\ /Name:"Windows 8 WinRE"

二BCDEDIT
                Bcdedit用于建立和重新配置bootloader

                /createstore 创建一个新的空白启动配置数据文件。

bcdedit /createstore X:\bcdemptystore

               /import 还原启动配置数据文件。

bcdedit /import X:\bcdemptystore /clean

               /create 新建项目

bcdedit /create {ramdiskoptions} /d "WinPE for Capture Images"

              /displayorder : 设置启用菜单中各项的显示顺序

bcdedit /displayorder %GUID% /addfirst

三OSCDIMG
                 Oscdimg用于创建iso映像文件

oscdimg.exe -lWin8_RestoreHDI -m -o -n -pEF -e -b%tmp_WinPE_Disk%\efisys.bin %tmp_WinPE_Disk%\media %Pre_Install_Root%\Win8-RestoreHDI.iso

 

 

posted @ 2013-06-14 14:35  伍锋  阅读(299)  评论(0编辑  收藏  举报