Script to Install Provisioning Packages (PPKG)

I give up.  I've created a Windows 10 Provisioning Package that needs to be deployed and the only ways I can possibly deploy it with PDQ is with a powershell script.  Every script I have written doesn't take...I'm not the best at writing scripts.  I've read the Microsoft articles on the arugments and switches to use in powershell to add a provisioning package, but it keeps failing.  

This is what I have and this is the error message I keep getting.

Also, I'm trying to avoid deploying these ppkg with SCCM. I want to use PDQ as my primary application to deploy applications:

PS C:\> Add-ProvisioningPackage -Path C:\Temp\TestPackage\TestPackage.ppkg -ForceInstall

Error message:

Get-Process : A positional parameter cannot be found that accepts argument 'Add-ProvisioningPackage'.
At C:\windows\AdminArsenal\PDQDeployRunner\service-1\exec\user.ps1:1 char:1
+ PS C:\> Add-ProvisioningPackage -Path C:\Temp\TestPackage\TestPackage ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Get-Process], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.GetProcessCommand



Date Votes
  • I'm using this syntax for my package:


    Install-ProvisioningPackage -PackagePath c:\windows\provisioning\project_1.ppkg -QuietInstall -ForceInstall

  • So, I changed my script to mirror just what you had (except I left mind in the C:\Temp) and now I'm getting the following error:


    At C:\windows\AdminArsenal\PDQDeployRunner\service-1\exec\Error Handling Wrapper.ps1:58 char:2
    + Throw $_.Exception.ErrorRecord
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : OperationStopped: (:) [], RuntimeException
    + FullyQualifiedErrorId : ScriptHalted


    Here is the exact script:

    Install-ProvisioningPackage -PackagePath C:\Temp\BlockCamera\BlockCamera.ppkg -ForceInstall


Please sign in to leave a comment.

Didn't find what you were looking for?

New post