使用以前的 Windows PE 版本安装 Windows 10Install Windows 10 using a previous version of Windows PE

若要使用 WinPE 中的一些 DISM 功能(如 各自为政的预配包),可以从一个单独的位置运行最新版本的 dism。To use some DISM features in WinPE, such as siloed provisioning packages, you may run the latest version of DISM from a separate location.

每次启动 WinPE 并想要使用这些功能时,需要安装和配置 DISM 所需的驱动程序,包括 wimmount.sys 和 wofadk.sys 驱动程序。Each time you boot WinPE and want to use these features, you'll need to install and configure the drivers needed for DISM, including the wimmount.sys and wofadk.sys drivers.

CopyDandI 脚本将 DISM 版本从 ADK 的本地安装复制到可在 WinPE 中使用的文件夹。The CopyDandI.cmd script copies the version of DISM from your local installation of the ADK to a folder which you can use in WinPE.

选项1:从单独的位置运行 DISMOption 1: Run DISM from a separate location

你将需要来自 ADK 的 Windows 10 版本1607版本的部署和映像工具。You'll need the Windows 10, version 1607 version of the Deployment and Imaging Tools from the ADK.

重要说明 不要覆盖 WinPE 映像中的现有 DISM 文件。Important Don't overwrite the existing DISM files on the WinPE image.

  1. 以管理员身份启动“部署和映像工具环境”。Start the Deployment and Imaging Tools Environment as an administrator.

  2. 在技术人员计算机上,将部署和映像工具从 Windows ADK 复制到存储 USB 密钥。From the technician PC, copy the Deployment and Imaging Tools from the Windows ADK to the storage USB key.

    CopyDandI.cmd amd64 E:\ADKTools\amd64
    

选项2:向 WinPE RAMDisk 添加 DISM。Option 2: Add DISM to the WinPE RAMDisk.

注意:对于 DISM 映像,这会增加约4MB,这可能会影响性能。Note: this will add roughly 4MB to the size of your DISM image, which may affect performance.

  1. 在技术人员计算机上,安装适用于 Windows 10 的 Windows ADK。On your technician PC, install the Windows ADK for Windows 10.

  2. 装入 WinPE。Mount WinPE. 对于 WinPE 2.x,装载文件: \ 源 \ WinPE。For WinPE 3.x, mount the file: \sources\winpe.wim. 对于 WinPE 4.x 和1.x,装载文件: \ 源 \ boot。For WinPE 4.x and 5.x, mount the file: \sources\boot.wim.

    md "C:\WinPE_amd64\mount"
    
    Dism /Mount-Image /ImageFile:"C:\WinPE_amd64\media\sources\boot.wim" /index:1 /MountDir:"C:\WinPE_amd64\mount"
    
  3. 将 DISM 文件夹从 Windows ADK 复制到已装入 WinPE 映像的新文件夹中。Copy the DISM folder from the Windows ADK into a new folder in the mounted WinPE image.

    md C:\WinPE_amd64\mount\DISM
    
    robocopy "C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\amd64\DISM" C:\WinPE_amd64\mount\DISM
    

    重要提示 不要覆盖 WinPE 映像的 system32 文件夹中的现有 DISM 文件。Important Don't overwrite the existing DISM files from the system32 folder in the WinPE image. 相反,请在主计算机上创建一个新文件夹,将 Windows ADK 文件复制到其中。Instead, create a new folder on the host computer to copy the Windows ADK files into.

  4. 卸载 WinPE。Unmount WinPE.

    Dism /Unmount-Image /MountDir:"C:\WinPE_amd64\mount" /commit
    
  5. 创建 WinPE 可启动介质,或将现有可移动介质上的 WinPE 映像文件替换为。Create WinPE bootable media, or replace the WinPE image file on your existing removable media.

    MakeWinPEMedia /UFD C:\WinPE_amd64 F:
    

使用新版本的 DISMUse the new version of DISM

  1. 将引用 PC 引导到 WinPE。Boot the reference PC to WinPE.

  2. 查找存储驱动器的驱动器号 (diskpart, list volume, exit)。Find the drive letter of the storage drive (diskpart, list volume, exit).

  3. 使用 wimmountadksetupamd64.exe/Installwimmountadksetupx86.exe/Install 安装和配置 DISM 所需的驱动程序。Install and configure DISM's required drivers by using either wimmountadksetupamd64.exe /Install or wimmountadksetupx86.exe /Install.

    W:\ADKTools\amd64\wimmountadksetupAmd64.exe /Install /q
    

    对于默认 (RAMDisk) 版本的 WinPE,每次启动 WinPE 时都需要运行此命令。For the default (RAMDisk) version of WinPE, you'll need to run this command each time you boot WinPE. 若要了解如何在 WinPE 启动时自动运行此命令,请参阅 wpeinit.exe 和 startnet.cmd:使用 WinPE 启动脚本To learn how to run this command automatically when WinPE boots, see Wpeinit and Startnet.cmd: Using WinPE Startup Scripts.

  4. 验证 DISM 的新版本:Verify the new version of DISM:

    W:\ADKTools\amd64\DISM.exe /?
    

    输出显示生成号,例如:The output shows the build number, for example:

    Deployment Image Servicing and Management tool
    Version: 10.0.14939.0
    
  5. 使用新版本的 DISM。Use the new version of DISM. 例如:Example:

    W:\ADKTools\amd64\DISM.exe /Apply-Image /ImageFile:install.wim /Index:1 /ApplyDir:W: /Compact
    W:\ADKTools\amd64\DISM.exe /Apply-SiloedPackage /ImagePath:W:\ /PackagePath:"e:\SPPs\fabrikam-id.spp" /PackagePath:"D:\SPPs\office16_base.spp" /PackagePath:"D:\SPPs\office16_fr-fr.spp" /PackagePath:"D:\SPPs\office16_de-de.spp"
    

相关主题Related topics

DISM 支持的平台DISM Supported Platforms

WinPE:装载和自定义WinPE: Mount and Customize

实验室10:添加桌面应用程序和设置,其中包含孤立的设置包 (SPPs) Lab 10: Add desktop applications and settings with siloed provisioning packages (SPPs)