I have an analysis created for fetching the regkey value and need to add the last fetched result date and time. regkey value will keep changing depending on another action execution. Is there an way to get this added to analysis?
Please advise.
If in an analysis, one approach might be to create another property in the analysis with relevance now
. Since this property will be evaluated alongside the property fetching the regkey value, it will essentially return when the analysis properties were evaluated.
Note also that we have an inspector to pull the last time a registry key was modified in case that might help: https://developer.bigfix.com/relevance/reference/registry-key.html#last-write-time-of-registry-key-time (but this applies to a key, and not a specific value within a key). Ex:
Q: last write time of key "HKLM\Software\BigFix\EnterpriseClient" of registry
A: Tue, 04 Feb 2025 10:06:48 -0500
This may not be suitable for your use case but throwing it out there as an alternate option. Along the same lines as @Aram’s suggestion, you could also append a date/time same in the same property results. The date could be in whatever format is easiest for you to process
Q: value "MyValue" of keys "HKLM\Software\My" of registry as string | "" & ":" & ((format "{0}{1}{2}{3}{4}{5}" + (year of item 0 of it as string) + (month of item 0 of it as two digits) + (day_of_month of item 0 of it as two digits) + (two digit hour of item 1 of it) + (two digit minute of item 1 of it) + (two digit second of item 1 of it)) of ((date (universal time zone) of it, time (universal time zone) of it) of now)) as string
A: datahere:20250222001610
T: 0.714 ms
I: singular string