How can I search for a missing PATH entry using a custom inventory rule?
I'm new to the forum, so please let me know if I miss any pertinent information.
My goal is to create an inventory of systems missing the %systemroot%\system32; entry in the default Windows %PATH% environment variable.
I've isolated the registry key: HKLM\System\CurrentControlSet\Control\Session Manager\Environment
I'm unsure what logic I can use within the k1000 custom inventory rule prompt to find these systems. If there is another post dedicated to custom inventory rules please let me know and I will post there instead (I didn't see one when I searched).
Community Chosen Answer
The easiest was you can do this is
Then create a report that has a filter using your cir contains ;%systemroot%\system32;
Also when I checked my machine my path is ;c:\windows\system32; not %systemroot%
If you want it to show just that entry to be the only path portion in the cir you would need to pipe this command into a for do loop to filter for that.