Custom Inventory Rule - REG QUERY
Trying to create a custom inventory rule to report the values of the "Paths" key. When the command is ran in a cmd prompt, it runs without issue and lists the values. When I create the custom inventory rule, it reports "invalid command line" when ran during a 'runkbot 4 0.'
Here's the rule:
ShellCommandTextReturn(REG QUERY "HKLM\SOFTWARE\Microsoft\Microsoft Antimalware\Exclusions\Paths")
Am I missing something?