Closed bthorpkt closed 3 months ago
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
Duplicate of #3553
Hello @bthorpkt,
We've identified this as a duplicate of another issue or PR that already exists. This specific instance is being closed in favor of the linked issue. Please add your 👍 to the other issue to raise its priority. Thanks for your contribution!
Template: msftbot/duplicate/closed
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