NetXMS Support Forum

English Support => General Support => Topic started by: stoffmann on March 08, 2021, 12:25:23 PM

Title: Reading a Windows registry key
Post by: stoffmann on March 08, 2021, 12:25:23 PM
Hello,

is it possible to read a Windows registry key from HKLM using the NetXMS Agent?
It looks like it should be possible: https://www.netxms.org/forum/feature-requests/windows-registry/msg6053/#msg6053 (https://www.netxms.org/forum/feature-requests/windows-registry/msg6053/#msg6053)

Best regards

Stefan
Title: Re: Reading a Windows registry key
Post by: Alex Kirhenshtein on March 08, 2021, 03:11:02 PM
Yes, you can use standard command line registry editor for that:

ExternalParameter=RegQuery:reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /f NetXMSSessionAgent /t REG_SZ /v /e
ExternalList=RegQuery:reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /s


Adjust name of the parameter and arguments.

You can also do that with actions (but select "produce output" checkbox in object tool configuration):
Action=RegQuery:reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /s