Provision Package not able to apply

w raspe 321 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

Microsoft Deployment Toolkit
Microsoft Deployment Toolkit
A collection of Microsoft tools and documentation for automating desktop and server deployment. Previously known as Microsoft Solution Accelerator for Business Desktop Deployment (BDD).
904 questions
Windows 10 Setup
Windows 10 Setup
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,949 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,933 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,607 questions
0 comments No comments
{count} vote

Accepted answer
  1. AllenLiu-MSFT 45,606 Reputation points Microsoft Vendor
    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 321 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.