Microsoft Store - how to update apps remotely

Mark Marco 25 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 for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. S.Sengupta 24,636 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. Anonymous
    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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.