I have a powershell script on a windows machine, which simply displays the value of the variable write-host 10. A simple line. To do this, I prescribe a zabbiks agent: UserParameter = fileserv.folder1 [*], powershell.exe -nologo C: \ scripts \ CheckDFS.ps1 $ 1
And how can I remove the second value, if I write an additional write-host in the script 20 What do I need to add in the agent zabbiksa and how to correctly write in powershell script? Thank.