Execute PowerShell Scripts to Check Windows Updates : Zabbix 6 LTS

Channel:
Subscribers:
24,800
Published on ● Video Link: https://www.youtube.com/watch?v=jj_Y7LizyTE



Duration: 0:00
764 views
11


Zabbix 5 Course : https://sbcode.net/zabbix/powershell-...
Course Coupons : https://sbcode.net/coupons

We can execute PowerShell commands on remote hosts with Zabbix agent.

In this lesson we will install 3 scripts, that we can use to query Windows Updates status on a remote windows host. Two of the scripts will be used as host items, and the other will be an administration script that we can call manually.

Note, If your scripts are slow running, you are likely to get timeouts when calling from Zabbix. You can set the timeout properties from the default 3 seconds to 1-30 seconds inside the Zabbix agents config, and also the Zabbix Proxy config if your agent is monitored by proxy.

Note, for Administration scripts that run on the agent, you will also need to edit the zabbix_agentd.conf. Set set EnableRemoteCommands = 1, and/or modify the DenyKey/AllowKey properties depending on your version of the Zabbix agent.
also, for Administration scripts, this will not work on agents connected to the Zabbix server as capable of Active checks only. Zabbix server will need to be able to do passive checks. So that means, a firewall rule, or Zabbix proxy setup on the same network as the agent, if the agent is not on the same network as the Zabbix Server.

0:00 Execute Windows PowerShell Scripts on remote Zabbix Agent
0:40 Download example powershell scripts to manage windows updates
1:20 Test downloaded scripts locally on server first
2:40 Discuss execution policy bypass
3:10 Setup scripts as Zabbix Userparameters
4:35 Restart Zabbix agent and create the 1st item in the Zabbix UI
7:10 Add the 2nd item in the Zabbix UI
6:50 Discuss timeouts and adjust configurations
9:05 Setup 3rd script as an Administration script
10:20 Test administration script

#zabbix
#zabbixPowershell
#zabbixUserparameters
#zabbixAdministrationScripts
#zabbixCourse
#zabbixTutorial