& "C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x64\signtool.exe" sign /fd SHA256 /a /f "mycert.pfx" /p "password" "App.msixbundle" Loop through multiple bundles:
Enable side-loading via registry:
Add-AppxVolume -Path "D:\WindowsApps" Get-AppxVolume Move-AppxPackage -Name "MyApp" -Volume D:\WindowsApps # Deploy MSIX bundle to 20 lab PCs $computers = Get-Content "computers.txt" $bundlePath = "\\nas\deploy\App.msixbundle" foreach ($pc in $computers) Invoke-Command -ComputerName $pc -ScriptBlock Add-AppxPackage -Path $using:bundlePath -TrustLevel Trusted powershell msixbundle
Add-AppxPackage -Path "App.msixbundle" -TrustLevel Trusted For CI/CD pipelines, automate signing with SignTool.exe called from PowerShell: & "C:\Program Files (x86)\Windows Kits\10\bin\10
try Add-AppxPackage -Path "App.msixbundle" -ErrorAction Stop catch Write-Host "Error: $_" Get-AppxLastError powershell msixbundle
$cert = Import-Certificate -FilePath "company.cer" -CertStoreLocation "Cert:\LocalMachine\TrustedPeople" Then install the bundle: