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.
Conditions
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}
Hope this was useful.
Printed by