Megjegyzés
Az oldalhoz való hozzáféréshez engedély szükséges. Megpróbálhat bejelentkezni vagy módosítani a címtárat.
Az oldalhoz való hozzáféréshez engedély szükséges. Megpróbálhatja módosítani a címtárat.
Use DISM to work with Provisioning Packages (.ppkg) files. For example, you can add settings and Windows desktop applications to Windows, or reduce the size of your Windows installation.
/Add-ProvisioningPackage
Adds applicable payload of provisioning package to the specified image.
Syntax:
DISM.exe /Add-ProvisioningPackage /PackagePath:<package_path> [/CatalogPath:<path>]
Examples:
Adding a provisioning package to a mounted or applied image:
DISM.exe /Image=D:\mount /Add-ProvisioningPackage /PackagePath:C:\oem.ppkg
Adding a provisioning package on a running Windows installation:
DISM.exe /online /Add-ProvisioningPackage /PackagePath:C:\oem.ppkg
/Get-ProvisioningPackageInfo
Get the information of provisioning package.
Syntax:
DISM.exe /Get-ProvisioningPackageInfo /PackagePath:<package_path>
Examples:
Get provisioning package info from a mounted or applied image:
DISM.exe /Image=C:\ /Get-ProvisioningPackageInfo /PackagePath:C:\oem.ppkg
Get provisioning package info from a running Windows installation:
DISM.exe /online /Get-ProvisioningPackageInfo /PackagePath:C:\oem.ppkg
/Apply-CustomDataImage
Dehydrates files contained in the custom data image to save space. For client editions, this package is used by the push-button recovery tools.
Syntax:
/Apply-CustomDataImage /CustomDataImage:<path_to_image_file> /ImagePath:<target_drive> /SingleInstance
Parameter | Description |
---|---|
/CustomDataImage | Specifies where the provisioning package is stored. |
/ImagePath | Specifies the drive that contains the Windows image. DISM scans this drive for any non-system files on this drive and incorporates them into the provisioning package. |
/SingleInstance | After DISM captures the non-system files to a compressed provisioning package, DISM adds pointers on the drive to the new compressed provisioning package, and removes the original files. As a result, the files are still visible to the system, but take up less space on the drive. |
Example:
DISM.exe /Apply-CustomDataImage /CustomDataImage:C:\oem.ppkg /ImagePath:C:\ /SingleInstance
Applies only to desktop editions (Home, Pro, Enterprise, and Education).