I customized config file and then installed the agent with
Code:
zabbix_agentd.exe -c c:/Zabbix/zabbix_agentd.win.conf --install
zabbix_agentd.exe -c c:/Zabbix/zabbix_agentd.win.conf --install
UserParameter=smb.discover,%systemroot%\system32\windowspowershell\v1.0\powershell.exe -NoProfile -ExecutionPolicy
$Health = Get-VMReplication | Select-Object Name, State, Health
foreach($State in $Health){
if($state.Health -match "Normal"){
$output = 0
}else{
$output = 1