Jump to content


epoch71

WQL query where reg key is not present

Recommended Posts

Hi

Our hardware inventory is extended to capture some registry values that contain company specific tags.

However, on one of our images a value was missed (not present).

I need to create a collection containing these machines, but I’m struggling to work out how to do this in WQL.

Is it actually possible to use WQL to check if something does not exist (as opposed to being NULL)?

 

Our environment is SCCM 2012 SP1 CU3.

Thanks in advance.

Share this post


Link to post
Share on other sites

Hi

 

Thanks for posting.

 

However, I'm struggling to understand how this will work in our scenario:

 

Registry key: HKLM\SOFTWARE\OurCompanyName

Value: BuildVersion (REG_SZ)

Data: BuildVersionTag (REG_SZ)

 

The query-based collection I need to create is to be populated by machines which do have the above registry key, but the BuildVersion value and BuildVersionTag data are not present at all.

 

Regards.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.