共用方式為


在 Windows PowerShell 中使用 DISM

部署映射服務與管理 (DISM) Cmdlet 可用來執行與DISM.exe命令列工具相同的功能。 在許多情況下,DISM Cmdlet 名稱與對應的 Dism.exe選項 類似,而且可以使用相同的引數。 如需 PowerShell Cmdlet 的詳細資訊,請參閱 DISM PowerShell

DISM Cmdlet 對應資料表的 DISM 命令

DISM Cmdlet 名稱不一定會直接對應至Dism.exe選項。 以下是將 DISM 命令對應至其對應 PowerShell Cmdlet 的資料表。

Dism.exe命令 DISM Cmdlet
Dism.exe /Add-Capability Add-WindowsCapability
Dism.exe /Append-Image Add-WindowsImage
Dism.exe /Apply-Image Expand-WindowsImage
Dism.exe /Capture-Image New-WindowsImage
Dism.exe /Cleanup-MountPoints Clear-WindowsCorruptMountPoint
Dism.exe /Commit-Image Save-WindowsImage
Dism.exe /Export-Image Export-WindowsImage
Dism.exe /Get-Capabilities Get-WindowsCapability
Dism.exe /Get-ImageInfo Get-WindowsImage
Dism.exe /Get-MountedImageInfo Get-WindowsImage -Mounted
Dism.exe /Get-WimBootEntry Get-WIMBootEntry
Dism.exe /List-Image Get-WindowsImageContent
Dism.exe /Mount-Image Mount-WindowsImage
Dism.exe /Split-Image Split-WindowsImage
Dism.exe /Remove-Capability Remove-WindowsCapability
Dism.exe /Remove-Image Remove-WindowsImage
Dism.exe /Remount-Image Mount-WindowsImage -Remount
Dism.exe /Unmount-Image Dismount-WindowsImage
Dism.exe /Update-WimBootEntry Update-WIMBootEntry
Dism.exe /Image: < ... > /Add-Driver Add-WindowsDriver
Dism.exe /Image: < ... > /Add-Package Add-WindowsPackage
Dism.exe /Image: < ... > /Add-ProvisionedAppxPackage Add-AppxProvisionedPackage \(英文\)
Dism.exe /Image: < ... > /Cleanup-Image /CheckHealth Repair-WindowsImage -CheckHealth
Dism.exe /Image: < ... > /Cleanup-Image /ScanHealth Repair-WindowsImage -ScanHealth
Dism.exe /Image: < ... > /Cleanup-Image /RestoreHealth Repair-WindowsImage -RestoreHealth
Dism.exe /Image: < ... > /Disable-Feature Disable-WindowsOptionalFeature
Dism.exe /Image: < ... > /Enable-Feature Enable-WindowsOptionalFeature
Dism.exe /Image: < ... > /Export-Driver Export-WindowsDriver
Dism.exe /Image: < ... > /Get-CurrentEdition Get-WindowsEdition -Current
Dism.exe /Image: < ... > /Get-Driverinfo Get-WindowsDriver -Driver
Dism.exe /Image: < ... > /Get-Drivers Get-WindowsDriver
Dism.exe /Image: < ... > /Get-Featureinfo Get-WindowsOptionalFeature -FeatureName
Dism.exe /Image: < ... > /Get-Features Get-WindowsOptionalFeature
Dism.exe /Image: < ... > /Get-Packageinfo Get-WindowsPackage -PackagePath
Dism.exe /Image: < ... > /Get-Packages Get-WindowsPackage
Dism.exe /Image: < ... > /Get-ProvisionedAppxPackages Get-AppxProvisionedPackage
Dism.exe /Image: < ... > /Get-ReservedStorageState Get-WindowsReservedStorageState
Dism.exe /Image: < ... > /Get-TargetEditions Get-WindowsEdition -Target
Dism.exe /Image: < ... > /Optimize-Image Optimize-WindowsImage
Dism.exe /Image: < ... > /Remove-Driver Remove-WindowsDriver
Dism.exe /Image: < ... > /Remove-Package Remove-WindowsPackage
Dism.exe /Image: < ... > /Remove-ProvisionedAppxPackage Remove-AppxProvisionedPackage
Dism.exe /Image: < ... > /Set-Edition Set-WindowsEdition
Dism.exe /Image: < ... > /Set-ProductKey Set-WindowsProductKey
Dism.exe /Image: < ... > /Set-ProvisionedAppxDataFile Set-AppXProvisionedDataFile
Dism.exe /Image: < ... > /Set-ReservedStorageState Set-WindowsReservedStorageState

在 WinPE 中使用 DISM Powershell 模組

您可以將 Powershell 支援新增至 WinPE。 請造訪 將 PowerShell 支援新增至 Windows PE 以瞭解如何。

在舊版 Windows 中使用 DISM PowerShell 模組

DISM PowerShell 模組包含在Windows 10和Windows Server 2016中。 在其他支援的作業系統上,您可以安裝包含 DISM PowerShell 模組的 Windows 評定與部署套件 (ADK) 。 如需 詳細資訊,請參閱本主題的舊版

DISM - Windows 的部署映像維護與管理技術參考

DISM 支援的平臺