...
Individual Option - Chocolatey
Chocolatey is an open source repository for Windows, that acts much the same way that yum or apt-get do for Linux distributions. There is a list of community maintained packages here: https://chocolatey.org/packages.
There is also documentation on creating custom packages here: https://chocolatey.org/docs/create-packages
In order to install Chocolatey on your local admin machine, open PowerShell and enter the folllowing:
- Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
To install Installing Chocolatey on the remote client will require that PowerShell be open opened in elevated mode, and then . Then enter the following commands:
- netsh winhttp reset proxy
- Enable-PSRemoting -Force -SkipNetworkProfileCheck
- Set-Item wsman:\localhost\client\trustedhosts *
- Restart-Service WinRM
- Test-WsMan QWS_VM_NAME
Once connectivity has been validated with the final command in the list above, packages can be installed as follows:
- Invoke-Command -ComputerName QWS_VM_NAME -ScriptBlock { choco install app -y } -credential Administrator
It's possible to also use Chocolately to install on multiple machines at once, by adding this script block to the command above:
$ComputerList = "QWS_CLIENT1","QWS_CLIENT_2"
foreach ($Computer in $ComputerList)
{
Invoke-Command -ComputerName $Computer
{
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
choco install PACKAGE_NAME -y
}
}