一级////
dism /?
Deployment Image Servicing and Management tool
Version: 10.0.20348.681
DISM.exe [dism_options] {Imaging_command} [<Imaging_arguments>]
DISM.exe {/Image:<path_to_offline_image> | /Online} [dism_options]
{servicing_command} [<servicing_arguments>]
DESCRIPTION:
DISM enumerates, installs, uninstalls, configures, and updates features
and packages in Windows images. The commands that are available depend
on the image being serviced and whether the image is offline or running.
FFU COMMANDS:
/Capture-Ffu - Captures a physical disk image into a new FFU file.
/Apply-Ffu - Applies an .ffu image.
/Split-Ffu - Splits an existing .ffu file into multiple read-only
split FFU files.
/Optimize-Ffu - Optimizes a FFU file so that it can be applied to storage
of a different size.
WIM COMMANDS:
/Apply-CustomDataImage - Dehydrates files contained in the custom data image.
/Capture-CustomImage - Captures customizations into a delta WIM file on a
WIMBoot system. Captured directories include all
subfolders and data.
/Get-WIMBootEntry - Displays WIMBoot configuration entries for the
specified disk volume.
/Update-WIMBootEntry - Updates WIMBoot configuration entry for the
specified disk volume.
/List-Image - Displays a list of the files and folders in a
specified image.
/Delete-Image - Deletes the specified volume image from a WIM file
that has multiple volume images.
/Export-Image - Exports a copy of the specified image to another
file.
/Append-Image - Adds another image to a WIM file.
/Capture-Image - Captures an image of a drive into a new WIM file.
Captured directories include all subfolders and
data.
/Get-MountedWimInfo - Displays information about mounted WIM images.
/Get-WimInfo - Displays information about images in a WIM file.
/Commit-Wim - Saves changes to a mounted WIM image.
/Unmount-Wim - Unmounts a mounted WIM image.
/Mount-Wim - Mounts an image from a WIM file.
/Remount-Wim - Recovers an orphaned WIM mount directory.
/Cleanup-Wim - Deletes resources associated with mounted WIM
images that are corrupted.
GENERIC IMAGING COMMANDS:
/Split-Image - Splits an existing .wim file into multiple
read-only split WIM (SWM) files.
/Apply-Image - Applies an image.
/Get-MountedImageInfo - Displays information about mounted WIM and VHD
images.
/Get-ImageInfo - Displays information about images in a WIM, a VHD
or a FFU file.
/Commit-Image - Saves changes to a mounted WIM or VHD image.
/Unmount-Image - Unmounts a mounted WIM or VHD image.
/Mount-Image - Mounts an image from a WIM or VHD file.
/Remount-Image - Recovers an orphaned image mount directory.
/Cleanup-Mountpoints - Deletes resources associated with corrupted
mounted images.
IMAGE SPECIFICATIONS:
/Online - Targets the running operating system.
/Image - Specifies the path to the root directory of an
offline Windows image.
DISM OPTIONS:
/English - Displays command line output in English.
/Format - Specifies the report output format.
/WinDir - Specifies the path to the Windows directory.
/SysDriveDir - Specifies the path to the system-loader file named
BootMgr.
/LogPath - Specifies the logfile path.
/LogLevel - Specifies the output level shown in the log (1-4).
/NoRestart - Suppresses automatic reboots and reboot prompts.
/Quiet - Suppresses all output except for error messages.
/ScratchDir - Specifies the path to a scratch directory.
For more information about these DISM options and their arguments, specify an
option immediately before /?.
Examples:
DISM.exe /Mount-Wim /?
DISM.exe /ScratchDir /?
DISM.exe /Image:C:\test\offline /?
DISM.exe /Online /?
二级 ////
dism /online /?
Deployment Image Servicing and Management tool
Version: 10.0.20348.681
Image Version: 10.0.20348.2340
The following commands may be used to service the image:
OS UNINSTALL SERVICING COMMANDS:
/Set-OSUninstallWindow - Sets the OS Uninstall Window.
/Get-OSUninstallWindow - Gets the OS Uninstall Window.
/Remove-OSUninstall - Remove the OS Uninstall.
/Initiate-OSUninstall - Initiates the OS Uninstall
APPX 服务命令:
/Get-NonRemovableAppPolicy - 列出配置为不能通过
企业策略删除的程序包系列。
/Set-NonRemovableAppPolicy - 为指定的程序包系列设置
企业的不可删除策略。
/Optimize-ProvisionedAppxPackages - 通过跨 appx 数据包硬链接相同文件
优化预配的 appx 占用空间。
/Set-ProvisionedAppxDataFile - 将自定义数据放入指定的应用包
(.appx 或 .appxbundle)。
指定的应用程序包必须已在映像中。
/Remove-ProvisionedAppxPackage - 从映像中删除应用包(.appx 或 .appxbundle)。
创建新的用户帐户时,将
不安装这些应用包。
/Add-ProvisionedAppxPackage - 将应用包(.appx 或 .appxbundle)添加到映像
并将其设置为对每个新用户进行安装。
/Get-ProvisionedAppxPackages - 显示有关映像中设置为对每个新用户进行
安装的应用包
(.appx 或 .appxbundle)的信息。
程序包服务命令:
/Add-Package - 向映像中添加程序包。
/Remove-Package - 从映像中删除程序包。
/Enable-Feature - 启用映像中的特定功能。
/Disable-Feature - 禁用映像中的特定功能。
/Get-Packages - 显示有关映像中所有程序包的信息。
/Get-PackageInfo - 显示有关特定程序包的信息。
/Get-Features - 显示有关程序包中所有功能的信息。
/Get-FeatureInfo - 显示有关特定功能的信息。
/Cleanup-Image - 对映像执行清理和恢复
操作。
/Export-Source - 将一组功能导出到新存储库中。
/Add-Capability - 将一个或多个功能添加到图像中。
/Remove-Capability - 从一个映像中删除功能。
/Get-Capabilities - 获取映像中的功能。
/Get-CapabilityInfo - 获取映像中功能的信息。
/Get-ReservedStorageState - 获取保留存储空间的当前状态。
/Set-ReservedStorageState - 设置保留存储空间的当前状态。
操作系统常规命令:
/Optimize-Image - 对脱机映像执行指定的
配置。
驱动程序服务命令:
/Remove-Driver - 从脱机映像中删除驱动程序包。
/Add-Driver - 向脱机映像中添加驱动程序包。
/Get-DriverInfo - 显示有关脱机映像中或正在运行的操作系统中的
特定驱动程序的信息。
/Get-Drivers - 显示有关脱机映像中或正在运行的操作系统中
的所有驱动程序的信息。
/Export-Driver - 从脱机映像或正在运行的操作系统
导出所有第三方驱动程序包。
应用程序服务命令:
/Check-AppPatch - 显示有关 MSP 修补程序是否适用于安装的映像的信息。
/Get-AppPatchInfo - 显示有关安装的 MSP 修补程序的信息。
/Get-AppPatches - 显示有关应用于所有安装的应用程序的所有
MSP 修补程序的信息。
/Get-AppInfo - 显示有关特定安装的 MSI 应用程序的信息。
/Get-Apps - 显示有关安装的所有 MSI 应用程序的信息。
默认关联命令:
/Remove-DefaultAppAssociations - 删除 Windows 映像中的默认应用程序关联。
/Import-DefaultAppAssociations - 向 Windows 映像导入一组
默认应用程序关联。
/Get-DefaultAppAssociations - 显示 Windows 映像中默认应用程序关联的列表。
/Export-DefaultAppAssociations - 从运行的操作系统导出
默认的应用程序关联。
国际服务命令:
/Set-SysUILang - 设置安装的脱机映像中使用的
系统 UI 语言。
/Set-LayeredDriver - 设置键盘分层驱动程序。
/Set-UILang - 设置安装的脱机映像中使用的默认系统用户界面语言。
/Set-UILangFallback - 设置安装的脱机映像中系统用户界面的回退默认语言。
/Set-UserLocale - 设置安装的脱机映像中的用户区域设置。
/Set-SysLocale - 设置安装的脱机映像中的非 Unicode 程序的语言(也
称为系统区域设置)和字体设置。
/Set-InputLocale - 设置要在安装的脱机映像中使用的输入区域设置和
键盘布局。
/Set-TimeZone - 设置安装的脱机映像中的默认时区。
/Set-AllIntl - 设置安装的脱机映像中的所有国际设置。
/Set-SKUIntlDefaults - 将安装的脱机映像中的指定 SKU 语言的所有国际
设置都设置为默认值。
/Gen-LangIni - 生成新的 lang.ini 文件。
/Set-SetupUILang - 定义安装程序将使用的默认语言。
/Get-Intl - 显示有关国际设置和语言的信息。
无人参与服务命令:
/Apply-Unattend - 将无人参与文件应用于映像。
EDGE 服务命令:
/Add-Edge - 将 Microsoft Edge 添加到映像。
预配程序包服务命令:
/Get-ProvisioningPackageInfo - 获取预配程序包的信息。
/Add-ProvisioningPackage - 添加预配程序包。
WINDOWS 版本服务命令:
/Set-ProductKey - 设置脱机映像的产品密钥。
/Get-TargetEditions - 显示可以将映像升级到的
Windows 版本列表。
/Get-CurrentEdition - 显示当前映像的版本。
/Set-Edition - 将映像升级到较高的版本。
For more information about these servicing commands and their arguments,
specify a command immediately before /?.
Examples:
DISM.exe /Image:C:\test\offline /Apply-Unattend /?
DISM.exe /Image:C:\test\offline /Get-Features /?
DISM.exe /Online /Get-Drivers /?
dism /Get-WimInfo /?
Deployment Image Servicing and Management tool
Version: 10.0.20348.681
/Get-WimInfo /WimFile:<WIM_file> [/Index:<image_index> | /Name:<image_name>]
Displays information about the images contained in the specified WIM file.
Examples:
DISM.exe /Get-WimInfo /WimFile:C:\test\images\myimage.wim
DISM.exe /Get-WimInfo /WimFile:C:\test\images\myimage.wim /Index:1
dism /image /?
Deployment Image Servicing and Management tool
Version: 10.0.20348.681
/Image:<path_to_offline_image>
This is the path to the root directory of the offline Windows image.
This option must be used with a servicing command.
Example:
DISM.exe /Image:C:\test\offline /Get-Packages
dism /capture-image /?
Deployment Image Servicing and Management tool
Version: 10.0.20348.681
/Capture-Image /ImageFile:<path_to_image_file> /CaptureDir:<source_directory>
/Name:<Name>
[/Description:Description] [/ConfigFile:<wimscript.ini>]
{[/Compress:{fast|max|none}] [/Bootable] | [/WIMBoot]} [/CheckIntegrity]
[/Verify] [/NoRpFix] [/EA]
Captures an image of a drive to a new WIM file. Captured directories include
all subfolders and data. You cannot capture an empty directory.
Use /ConfigFile to specify the location of a configuration file that lists
exclusions for image capture and compress commands.
Use /Compress to specify the type of compression used for the initial capture
operation.
Use /Bootable to mark a Windows PE volume image as able to be booted.
Use /WIMBoot to capture the image that can be applied with WIMBoot
configuration.
Use /CheckIntegrity to detect and track WIM file corruption.
Use /Verify to check for errors and file duplication.
Use /NoRpFix to disable the reparse point tag fix.
Use /EA to capture extended attributes.
Example:
DISM.exe /Capture-Image /ImageFile:install.wim /CaptureDir:D:\
/Name:Drive-D
dism /Capture-Ffu /?
Deployment Image Servicing and Management tool
Version: 10.0.20348.681
/Capture-Ffu /ImageFile:<path_to_image_file> /CaptureDrive:<physical_drive_path>
/Name:<Name>
[/Description:Description] [/PlatformIds:<platform_ids>]
[/Compress:{default|none}]
Captures a physical disk image to a new FFU file.
Use /PlatformIds to specify one or more platform ids (separate with semicolon)
to be added to the image. If not specified, platform id will be '*'.
Use /Compress to specify the type of compression used for the initial capture
operation.
Example:
DISM.exe /Capture-Ffu /ImageFile:install.ffu
/CaptureDrive:\\.\PhysicalDrive0 /Name:Drive0
/PlatformIds:Microsoft.MSM8994.P6211
/Compress:default
标签:WIM,exe,Get,Image,image,映像,file,自带,dism From: https://www.cnblogs.com/suv789/p/18094666