Compartir a través de


Usar DISM en Windows PowerShell

Los cmdlets Deployment Image Servicing and Management (DISM) se pueden usar para realizar las mismas funciones que la herramienta de línea de comandos DISM.exe. En muchos casos, los nombres de cmdlet dism son similares a sus opciones deDism.exe correspondientes y se pueden usar los mismos argumentos. Consulte DISM PowerShell para obtener información detallada sobre los cmdlets de PowerShell.

Comando DISM a la tabla de asignación de cmdlets de DISM

Los nombres de cmdlet dism no siempre se corresponden directamente con las opciones de Dism.exe. Esta es una tabla que asigna comandos DISM a sus cmdlets de PowerShell correspondientes.

comando Dism.exe Cmdlet DISM
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 Desmontaje de 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

Uso de módulos de PowerShell de DISM en WinPE

Puede agregar compatibilidad con PowerShell a WinPE. Visite Adición de compatibilidad de PowerShell a Windows PE para obtener información sobre cómo hacerlo.

Uso de módulos de PowerShell de DISM en versiones anteriores de Windows

El módulo de PowerShell de DISM se incluye en Windows 10 y Windows Server 2016. En otros sistemas operativos compatibles, puede instalar Windows Assessment and Deployment Kit (ADK) que incluye el módulo dism de PowerShell. Consulte la versión anterior de este tema para obtener más información.

DISM: Referencia técnica de administración y mantenimiento de imágenes de implementación para Windows

Plataformas compatibles con DISM