- Ensure that PowerShell Remoting is enabled on the remote computers.
- Create a PowerShell script that will update the Microsoft Store apps on the remote computers.
- You can run the script on multiple remote computers using a list of computer names.
Microsoft Store - how to update apps remotely
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
2 answers
Sort by: Most helpful
-
S.Sengupta 16,571 Reputation points MVP
2024-06-20T01:47:49.33+00:00 -
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
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 }
Best Regards,
Ian Xue
If the Answer is helpful, please click "Accept Answer" and upvote it.