WSUS icon indicating copy to clipboard operation
WSUS copied to clipboard

ERROR: A parameter cannot be found that matches parameter name 'Value'.

Open ziompaul opened this issue 5 years ago • 0 comments

I am testing WSUS tempIate on Zabbix 4.0 and have an error on all items:

2019-01-04 10:24:30 | C:\Program Files\ZABBIX_Agent\wsus_miner.ps1 : A parameter cannot be found that  matches parameter name 'Value'.
     + CategoryInfo          : InvalidArgument: (:) [wsus_miner.ps1], ParentCon
     tainsErrorRecordException
     + FullyQualifiedErrorId : NamedParameterNotFound,wsus_miner.ps1
-- | --

In zabbix agent config there is a standard user parameter:

UserParameter=wsus.miner[*], powershell -NoProfile -ExecutionPolicy "RemoteSigned" -File "C:\Program Files\ZABBIX_Agent\wsus_miner.ps1" -Action "$1" -Object "$2" -Key "$3" -Id "$4" -Value "$5" -consoleCP CP866

Items type is set as Zabbix agent (not Active), because I don't have Active checks enabled.

What can I do with that error?

Regards.

ziompaul avatar Jan 04 '19 09:01 ziompaul