Is it possible to run a worklet that will query a device looking for a specific registry key?
Already have an account? Login
Login to the community
No account yet? Create an account
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
This is a great use case of a worklet!
Here’s an example of a simple worklet that checks for a registry key. If the key is not found during the evaluation run, the device is compliant and no further actions will be triggered. If the key is found, the device will be flagged for remediation and the key values will be output to the Automox Activity Log.
The $regPath and $regName variables should be changed in both the Evaluation and Remediation code to target the specific registry key that you are looking for.
Note, there is a small caveat with this worklet. Since Automox runs as SYSTEM, in the worklet’s current form it won’t be able to check for keys in the HKCU hives. We do have a workaround for this though, so if this worklet doesn’t give you what you’re looking for, let me know the registry path and name and I’ll see what I can put together.
I hope this helps!
Have a great day!
Thank you for getting back to me. I’ll test the script and let you know how it works.