/build/static/layout/Breadcrumb_cap_w.png

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?


0 Comments   [ + ] Show comments

Answers (2)

Posted by: jagadeish 11 years ago
Red Belt
1

RegistryValueReturn(registryPath, valueName, type)

Returns the value of a registry entry, andsets the datatype to the one you specified


Comments:
  • RIght, but I'm trying to list the values of that key, not any value in particular. The "paths" key lists user-defined exclusions to Forefront antivirus. So any number of different values might be there, depending on the user. I'd rather get the list via reg query than have to list out every possible combo. - tshupp 11 years ago
  • Are you looking for this?
    http://www.itninja.com/blog/view/k1000-inventory-software-custom-ticket-rule-for-registryvaluereturn-reg-dword-value-for-5-3


    http://216.115.86.232/blog/view/teamviewer-id-custom-inventory-rule - jagadeish 11 years ago
Posted by: c_brock 11 years ago
Third Degree Brown Belt
0

Here is an article that I created using custom inventory rules to search and inventory what version of IE is installed.  Maybe you can find it helpful!

http://www.itninja.com/blog/view/kace-custom-inventory-rules-101

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ