EnableRemoteCommands=1
UnsafeUserParameters=1
Timeout=30
UserParameter=TaskSchedulerMonitoring[*],powershell -NoProfile -ExecutionPolicy Bypass -File "C:\Zabbix\DiscoverScheduledTasks.ps1" "$1" "$2"
Set-ExecutionPolicy RemoteSigned
EnableRemoteCommands=1
UnsafeUserParameters=1
Timeout=30
UserParameter=TaskSchedulerMonitoring[*],powershell -NoProfile -ExecutionPolicy Bypass -File "C:\Zabbix\DiscoverScheduledTasks.ps1" "$1" "$2"
Set-ExecutionPolicy RemoteSigned