Winget as SCCM Application

Evgeniy Uk 21 Reputation points

Hi. Can you tell me if anyone has set up a powershell script with winget, for example (winget install -e --id Adobe.Acrobat.Reader.64-bit) as Application via Software Center? Or maybe there is another way to integrate Winget and SCCM? Thanks in advance for the answer!

Microsoft Configuration Manager Application
Microsoft Configuration Manager Application
Microsoft Configuration Manager: An integrated solution for for managing large groups of personal computers and servers.Application: A computer program designed to carry out a specific task other than one relating to the operation of the computer itself, typically to be used by end users.
440 questions
0 comments No comments
{count} votes

Accepted answer
  1. Rita Hu -MSFT 9,566 Reputation points

    @Evgeniy Uk
    Thanks for your posting on Q&A.

    According to my test, the winget.exe program only be ran in user account and we could not run it in the SYSTEM account. Unfortunately, all the task have been finished in SYSTEM account in MECM. So the conclusion is that we can't implement this functionality through MECM. Below are the results of my test for your reference.

    Here are my test screenshot for your reference:

    I installed the PsExec.exe in my lab for test and we execute programs use the system account in this app, like screenshot 1. I found that the winget.exe is placed into the users path, like C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps. But the path which winget.exe program located didn't be included the Windows PATH environment variable.

    Environment variables path in Windows in my lab:

    So we could not run this program in system account. In addition, I have tested it to run the command in user account and I installed the Adobe.Acrobat.Reader.64-bit successfully. As I have attached the screenshot 3 above.

    Hope the above will be helpful. Please don't forget to accept the answer if the above is helpful.

    Best regards,

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

3 additional answers

Sort by: Most helpful
  1. Evgeniy Uk 21 Reputation points

    Dear @Rita Hu -MSFT , it turns out that running the script winget, from under the Software Center, I run it from the context of the user? Under the system, even using a forced launch of the script via psexec can not install? In general the installation log wrote similar ( about running under user context)
    But forgive me, I'm sorry, I'm not fully understood, is it possible somehow using SCCM method (Application) of software deploing to deploy the soft via winget script?

  2. Evgeniy Uk 21 Reputation points

    @Jason Sandys that is, for ConfigMgr, programs via Winget will be installed via Intune with Co-management configured?
    Did I understand you correctly?

  3. Anoop C Nair MVP Enterprise Mobility 21 Reputation points MVP

    Hi, I don't know whether the following scenario is supported or not. I did a quick test and it works in my lab without co-management.

    0 comments No comments