Installing APPX package from the Store as --scope machine installs to the [system] user only, not as a provisioned AppX Package as it should be #4748
Labels
Resolution-Duplicate
Issue is a duplicate
Milestone
Brief description of your issue
Using PowerShell to orchestrate winget via SCCM (NT\SYSTEM) account I'd expect WinGet to download the AppX package and provision it system wide when the flag to set the scope of system is used. This would give all users access via registration of the app to the package.
Instead, from what I can tell it just installs the appx as the NT\SYSTEM user and gives up.
Steps to reproduce
PowerShell on a system with Winget installed;
psexec cmd -i -s to run as system
powershell to jump to powershell command prompt
$AppName = "9NTXR16HNW1T" # PowerBI Microsoft Store Edition
winget install --exact $AppName --silent --accept-package-agreements --accept-source-agreements --scope machine
Expected behavior
Something similar to downloading the PowerBI AppX Package and doing this:
Add-AppxProvisionedPackage -SkipLicense -Online -PackagePath "Microsoft.MicrosoftPowerBIDesktop_2.129.1229.0_x64__8wekyb3d8bbwe.Appx"
Actual behavior
App is not provisioned system wide, nor is it registered to all users of the system past, present or future. May install in the non interactive System account on a machine.
Environment
The text was updated successfully, but these errors were encountered: