Scripting Question

Trying to pull info from a reg key using a custom inventory

02/27/2018 598 views
I am trying to pull the value of the Manufacturer name as a custom inventory field but it is not returning anything?

If I run this locally on the machine however, I get a value returned...
reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation /V Manufacturer

3 Comments   [ + ] Show comments


  • Above the custom inventory rule, did you select the operating system to ensure the version you attempting to run this rule against is included?

    also, try putting , STRING after Manufacturer. so the text would look like:

    RegistryValueReturn(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation,Manufacturer, STRING)
  • If it's a 64 bit system, be sure to use HKLM64 instead of HKLM
  • If it's a 64 bit system, be sure to use HKLM64 instead of HKLM

Be the first to answer this question

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:


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