In this blog post I will carry out how to remotely install software on a domain-joined Windows 11 client. Winget is a command line tool that provides a lot of different options to install software on the localhost or on remote hosts via an online repository operated by Microsoft. Let’s jump in.
Prerequisites
Before we start, I want to check out the requirements for this scenario. I will use a
- Domain-Controller running Windows Server 2022
- Windows 11 domain joined Client (CL01)
First, we need to check if our client is listening to WinRM connections. By default, WinRM is disabled on all Windows client operating systems.
On Windows 11 open PowerShell and enter
winrm qc
This enables Windows Remote Management. By the way, WinRM is enabled on Windows Server OS by default.
Installing Mozilla Firefox remotely
Now the show begins. Log on to your Domain Controller and enter the following lines to install Firefox on CL01.
Invoke-Command -ComputerName CL01 `
-ScriptBlock {winget install mozilla.firefox}


Hope this was helpful.
Categories: PowerShell, Windows 11, Windows Server
thanks sound useful, does it work with msi? exe? or anything?
LikeLike