i had to install the agent on many computers for a customer. I decided to use a powershell script. Simple filter over e.g. OUs possible
There is still a lot to do, but distributing it already works. It's using the MSI package 5.0.2 for x64
Here it is:
Maybe someone would like to contribute...
There is still a lot to do, but distributing it already works. It's using the MSI package 5.0.2 for x64
Here it is:
Maybe someone would like to contribute...
Code:
# Get all AD servers
$servers = Get-ADComputer -filter * -Properties operatingsystem | Where-Object { $_.operatingsystem -like "*server*" }
# Get the admin user for all servers
$credential = Get-Credential
# Install zabbix on each server
$servers.forEach{
Write-Host "Installing Zabbix on $($_.Name)"
Install-ZabbixAgent -ComputerName $_.Name -Credential $credential -Server 192.168.1.32 -ServerActive 192.168.1.32
}
Write-Host "Multi installation completed"
Comment