Windows PowerShell에서 DISM 사용
DISM(배포 이미지 서비스 및 관리) cmdlet을 사용하여 DISM.exe 명령줄 도구와 동일한 기능을 수행할 수 있습니다. 대부분의 경우 DISM cmdlet 이름은 해당 Dism.exe 옵션과 유사하며 동일한 인수를 사용할 수 있습니다. PowerShell cmdlet에 대한 자세한 내용은 DISM PowerShell을 참조하세요.
DISM 명령에서 DISM cmdlet으로의 매핑 테이블
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 - 탑재됨 |
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 모듈 사용
WinPE에 Powershell 지원을 추가할 수 있습니다. Windows PE에 PowerShell 지원 추가를 방문하여 방법을 알아보세요.
이전 버전의 Windows에서 DISM PowerShell 모듈 사용
DISM PowerShell 모듈은 Windows 10 및 Windows Server 2016에 포함되어 있습니다. 지원되는 다른 운영 체제에서는 DISM PowerShell 모듈을 포함하는 Windows ADK(Assessment and Deployment Kit)를 설치할 수 있습니다. 자세한 내용은 이 항목의 이전 버전을 참조하세요.