-
Incident report
-
Resolution: Won't Do
-
Trivial
-
None
-
5.2.3
-
None
-
Server: Ubuntu 20.04. Zabbix 5.2.3. Agents: Windows Server 2019, Agent2 5.2.3 (Active)
Steps to reproduce:
- Update Agent from v 5.2.2 to 5.2.3
- Create UserParameter =CP.version, powershell.exe -NoProfile -ExecutionPolicy Bypass -File c:\Zabbix\Scripts\cp.ps1
- cp.ps1 = (Get-ItemPropertyValue HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\"{407E5BA7-6406-40BF-A4DC-3654B8F584C1}" -Name DisplayVersion)
- Create Item where key = cp.version
- 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)