M HYPE SPLASH
// updates

The right method to install Appx bundle application using Powershell via SCCM

By John Campbell

Is the below method of installing and uninstalling .Appx packages correct when installing through SCCM as a Device collection.

Install:

Add-AppxProvisionedPackage -PackagePath "Packagepath.appxbundle" -DependencyPackagePath $Dep.FullName -SkipLicense -Online

Uninstall:

$name = "App_name" $PackageName = Get-AppxProvisionedPackage -Online | Where {$_.DisplayName -eq $name} $PackageName.PackageName Remove-AppxProvisionedPackage -PackageName $PackageName.PackageName -AllUsers -Online
1

1 Answer

SCCM notwithstanding.

PowerShell is Powershell no matter where you use it from.

The cmdlets (properties, methods, etc...) do not change and you use the cmdlets as documented in the PowerShell help files.

There are plenty of docs from Microsoft and other blogs on using SCCM to install applications (appx, msi, etc...) in the SCCM docs and all over the web and videos on Youtube.

'sccm install appx'

Deploy applications with Configuration Manager

Create Windows applications in Configuration Manager

Deploy an Application from Windows Store for Business via System Center Configuration

Step by Step Video Guide to Create Deploy APPX Apps via SCCM and Troubleshooting Tips

SCCM uses tasks to process code, but that does change how PowerShell works.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy