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 -OnlineUninstall:
$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.
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.