Skip to content

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

Description

@ziompaul

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions