Provision Package not able to apply

w raspe 336 Reputation points
2024-03-27T08:05:39.2866667+00:00

Hi all,

I am trying to apply an custom made provision package through CMD, but it does not recognize the commands. If it works by hand via CMD then I will it push through MDT. The .ppkg contains settings to use within an school environment.

When I just open the .ppkg file it works fine, but I want to automate this process.

Below the error message on an Windows 11 device. It seems it also not recognize the /add-provisionpackage command.

w11

I am just trying the same in below url:

https://bjtechnews.org/2017/03/deploy-provisioning-packages-with-mdt/

I also tried below url for the command line section:

https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/dism-provisioning-package-command-line-options?view=windows-11

Windows for business | Windows Client for IT Pros | Devices and deployment | Set up, install, or upgrade
Windows for business | Windows Server | User experience | PowerShell
Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} vote

Accepted answer
  1. AllenLiu-MSFT 49,316 Reputation points Microsoft External Staff
    2024-03-28T07:13:29.6833333+00:00

    Hi, @w raspe

    Thank you for posting in Microsoft Q&A forum.

    The error message in the screenshot indicates that the /Add-ProvisioningPackage command is not recognized. Make sure that you are using the correct syntax for the command, as shown in the DISM Provisioning Package (.ppkg) Command-Line Options article. Also, ensure that the DISM version you are using supports provisioning packages.

    You can use the /Get-Features command to check if the DISM version supports provisioning packages. If the output includes "PPKGFeature", then provisioning packages are supported.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Add comment".


1 additional answer

Sort by: Most helpful
  1. w raspe 336 Reputation points
    2024-04-11T12:01:22.12+00:00

    @AllenLiu-MSFT I fixed it with the install-provisioningpackage command


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.