Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-18833

Win Agent 5.2.3 Script/Pshell bug

    XMLWordPrintable

Details

    • Incident report
    • Status: Closed
    • Trivial
    • Resolution: Won't Do
    • 5.2.3
    • None
    • Agent2 plugin (N)
    • None
    • Server: Ubuntu 20.04. Zabbix 5.2.3. Agents: Windows Server 2019, Agent2 5.2.3 (Active)

    Description

      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)

      Attachments

        Activity

          People

            zalex_ua Oleksii Zagorskyi
            malchikov Dmitry Malchikov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: