Friday, May 24, 2024
HomePowershellUtilizing winget with PowerShell to put in Software program remotely – SID-500.COM

Utilizing winget with PowerShell to put in Software program remotely – SID-500.COM


On this weblog put up I’ll perform methods to remotely set up software program on a domain-joined Home windows 11 shopper. Winget is a command line device that gives quite a lot of completely different choices to put in software program on the localhost or on distant hosts by way of a web based repository operated by Microsoft. Let’s leap in.


Earlier than we begin, I wish to take a look at the necessities for this situation. I’ll use a

  • Area-Controller working Home windows Server 2022
  • Home windows 11 area joined Consumer (CL01)

First, we have to examine if our shopper is listening to WinRM connections. By default, WinRM is disabled on all Home windows shopper working techniques.

On Home windows 11 open PowerShell and enter

This permits Home windows Distant Administration. By the best way, WinRM is enabled on Home windows Server OS by default.

Putting in Mozilla Firefox remotely

Now the present begins. Go surfing to your Area Controller and enter the next strains to put in Firefox on CL01.

Invoke-Command -ComputerName CL01 `
-ScriptBlock {winget set up mozilla.firefox}
Erfolgreich installiert = Command accomplished efficiently. 😉

Hope this was useful.

Printed by Patrick Gruenauer

Microsoft MVP on PowerShell [2018-2023], IT-Coach, IT-Marketing consultant, MCSE: Cloud Platform and Infrastructure, Cisco Licensed Academy Teacher.



Please enter your comment!
Please enter your name here

Most Popular

Recent Comments