Win Agent 5.2.3 Script/Pshell bug

XMLWordPrintable

    • Type: Incident report
    • Resolution: Won't Do
    • Priority: Trivial
    • None
    • Affects Version/s: 5.2.3
    • Component/s: Agent2 plugin (G)
    • None
    • Environment:
      Server: Ubuntu 20.04. Zabbix 5.2.3. Agents: Windows Server 2019, Agent2 5.2.3 (Active)

      Steps to reproduce:

      1. Update Agent from v 5.2.2 to 5.2.3
      2. Create UserParameter =CP.version, powershell.exe -NoProfile -ExecutionPolicy Bypass -File c:\Zabbix\Scripts\cp.ps1
      3. cp.ps1 = (Get-ItemPropertyValue HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\"{407E5BA7-6406-40BF-A4DC-3654B8F584C1}" -Name DisplayVersion)
      4. Create Item where key = cp.version
      5.  Test Item

      Result:
      Get-ItemPropertyValue : Cannot find path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{407E5BA7-6406-40BF
      -A4DC-3654B8F584C1}' because it does not exist.
      At C:\Zabbix\Scripts\cryptopro.ps1:1 char:1
      + Get-ItemPropertyValue HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion ... **

      Expected:
      Value "4.0.9963" located in requested registry path

       

      Some VM with non-upgraded Agent (5.2.2) give correct result (value 4.0.9963)

            Assignee:
            Oleksii Zagorskyi
            Reporter:
            Dmitry Malchikov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: