Skip to main content

Invoke-ASCustomSignPackage

Powershell cmdlets are enabled with AdminStudio Enterprise Edition and with Workflow Manager.

Use the Invoke-ASCustomSignPackage cmdlet to configure custom signing of MSIX packages.

Example

The following is an example of the Invoke-ASCustomSignPackage cmdlet and its parameters:

Invoke-ASCustomSignPackage -PackageId $PkgID -Path "signtool.exe" -Arguments sign /fd SHA256/f *<ProgramFilesFolder>\testCA.pfx* /t http:/timestamp.digicert.com /p 123 /v "[filename]"

Parameters

The Invoke-ASCustomSignPackage cmdlet has the following parameters:

ParameterDescription
PackageId(Required) Specify the PackageID of the package
Path(Required) Use to specifying the location of the signing tool or script. Supported file types include: .exe (Executable) .bat (Batch Script) .vbs (VBScript) .ps1 (PowerShell Script).
Arguments(Optional) Specify the command-line arguments required by the tool or script. These arguments are passed at runtime. Use the placeholder "\[Filename\]" wherever the MSIX file path should be inserted.

For more information, see Custom Signing with HSM Support.

Return Values

Package signed successfully.