The Right Method to Install Appx Bundle Application Using Powershell via Sccm

The Right Method to Install Appx Bundle Application Using Powershell via Sccm

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

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

David Miller
Author

David Miller

David Miller brings 15 years of experience in global economics, personal finance strategy, and market dynamics. He specializes in turning complex economic trends into actionable insights for everyday readers.