2024年6月10日发(作者:)

ImageX 命令行选项

ImageX 是 Windows® 7 中的命令行工具,可用于创建和管理 Windows 映像 (.wim) 文件。.wim 文件

包含一个或多个卷映像,该卷为包含已安装的 Windows 操作系统映像的磁盘卷。

若要修改卷映像,必须在运行 Windows 7 或 Windows Server® 2008 的计算机上安装 Windows 映像文

件系统筛选器(WIMMount 筛选器)驱动程序。安装了 WIMMount 筛选器驱动程序,便可以装载 .wim 文

件(就像它是一个目录一样),还可以在 Windows 资源管理器等文件管理工具中浏览、复制、粘贴和编辑卷

映像,而无需提取或重新创建映像。

重要信息:

必须分别运行其中的每个命令行选项。如果没有为捕获的 .wim 文件提供位置,则该过程将在 ImageX 目录中

自动创建一个位置。例如,如果您在使用 /capture 选项时输入 ,而不是 D:,

则 文件将出现在 ImageX 目录中。

ImageX 命令行选项

ImageX 命令行选项使用以下约定。

imagex [flags] {/append | /apply | /capture | imagex /cleanup | /commit | /delete | /dir

| /export | /info | /split | /logfile | /mount | /mountrw | /unmount} [parameters]

以下列表显示了每种 ImageX 操作类型所使用的有效语法。

imagex /append image_path image_file {"description"} {/boot | /check |

/config configuration_ | /scroll | /verify | /logfile }

imagex /apply image_file image_number image_name image_path {/check | /ref

| /scroll | /verify | /logfile}

imagex /capture image_path image_file "name" {"description"} {/boot | /check

| /compress [type] | /config | /norpfix | /scroll | /verify| /logfile}

imagex /cleanup

imagex /commit mount_path image_name {/logfile}

imagex /commit /append mount_path new_image_name {/logfile}

imagex /delete image_file image_number image_name {/check| /logfile}

imagex /dir image_file image_number image_name {/logfile}

imagex /export src_file src_number src_name dest_file dest_name {/boot |

/check | /compress [type] | /ref [] | /logfile}

imagex /info img_file [img_number | img_name] [new_name] [new_desc] {/boot

| /check| /logfile}

imagex /mount image_file image_number image_name image_path {/check|

/logfile}

imagex /mountrw image_file image_number image_name image_path {/check|

/logfile}

imagex /split image_file dest_file size {/check| /logfile}

imagex /unmount image_path {/commit| /logfile}

imagex /remount image_path {/logfile}

操作 描述

imagex /append image_path

image_file {"description"}{/boot |

/check | /config configuration_

| /scroll | /verify | /logfile

}

将卷映像附加到现有的 Windows 映像 (.wim) 文件中。创建

该文件的单个实例,将其与 .wim 文件中已存在的资源进行比

较,以便不会重复捕获同一个文件。

重要信息:

确保有足够的磁盘空间可用于运行 /append 选项。如果

在运行 /append 选项期间磁盘空间不足,则可能会损坏

已附加的 .wim 文件。

重要信息:

.wim 文件只能使用一种指定的压缩类型,因此,只能附加

压缩类型相同的文件。

image_path

指定要附加的现有 .wim 文件的名称和位置。

image_file

指定用于附加现有文件的卷映像的名称和位置。

"description"

指定提供其他参考信息的文本。

重要信息: