You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if run powershell, and execute: Get-ScheduledTask -TaskPath \ | where {$_.state -like "Ready" -or "Running"}
I see only 1 task: system; author: CreateExplorerShellUnelevated;
if run powershell as Administrator:
I see all tasks
when works your script, zabbix server receive only 2 task: third party; running: admin
third party created task, means that author not user, system or other build-in accounts and services.
Could you help ?
p.s. Based on the foregoing, your script can send to server only third party created tasks, сonsidering the above conditions,
regardless of the parameters in zabbix_agentd.conf
Windows 2016 Server standard with zabbix agent 4.4
Scheduler includes over 10 tasks:
if run powershell, and execute: Get-ScheduledTask -TaskPath \ | where {$_.state -like "Ready" -or "Running"}
I see only 1 task: system; author: CreateExplorerShellUnelevated;
if run powershell as Administrator:
I see all tasks
when works your script, zabbix server receive only 2 task: third party; running: admin
third party created task, means that author not user, system or other build-in accounts and services.
Could you help ?
p.s. Based on the foregoing, your script can send to server only third party created tasks, сonsidering the above conditions,
regardless of the parameters in zabbix_agentd.conf
EnableRemoteCommands=1
UnsafeUserParameters=1
UserParameter=TaskSchedulerMonitoring[*],powershell -NoProfile -ExecutionPolicy Bypass -File "C:\Program Files\Zabbix Agent\scripts\DiscoverScheduledTasks.ps1" "$1" "$2"
in DiscoverScheduledTasks.ps1 changed path with: path = " \ "
script can't get tasks, created by users, admins, system or services
The text was updated successfully, but these errors were encountered: