Microsoft Store - how to update apps remotely

Mark Marco 0 Reputation points
2024-06-19T19:22:13.2666667+00:00

Hello,

I'm looking for an option to update Microsoft Store apps remotely (via PowerShell, CLI, etc.). Because of compliance reasons we can't enable auto-update.

Is there any way to trigger "Update all" option in Microsoft Store for remote computers?

We need to find a way to manage those apps updates and hopefully there is some other option to trigger them than log in to each computer individually and clicking "Update all" button in Microsoft Store.

Thanks,

Mark

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,989 questions
Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,964 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. S.Sengupta 16,571 Reputation points MVP
    2024-06-20T01:47:49.33+00:00
    1. Ensure that PowerShell Remoting is enabled on the remote computers.
    2. Create a PowerShell script that will update the Microsoft Store apps on the remote computers.
    3. You can run the script on multiple remote computers using a list of computer names.
    0 comments No comments

  2. Ian Xue (Shanghai Wicresoft Co., Ltd.) 32,326 Reputation points Microsoft Vendor
    2024-06-20T03:34:26.0766667+00:00

    Hi,

    You can try the command winget upgrade.

    winget upgrade --all --accept-package-agreements --accept-source-agreements 
    

    https://learn.microsoft.com/en-us/windows/package-manager/winget/upgrade

    To run this command on a remote computer, you need to configure the computer to receive PowerShell remote commands. On your local computer and the remote computer, open Windows PowerShell as administrator and run

    Enable-PSRemoting
    

    https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/enable-psremoting?view=powershell-7.4

    Then you can use the PowerShell cmdlet Invoke-Command to specify the remote computer and your credential like this

    Invoke-Command -ComputerName "Server01" -Credential (Get-Credential) -ScriptBlock {winget upgrade --all --accept-package-agreements --accept-source-agreements }
    

    https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/invoke-command?view=powershell-7.4

    Best Regards,

    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.