Jump to content


Howes

Wildcards in DCB item.

Recommended Posts

Hello,

 

I am wondering about creating a DCB item that will query a registry key that varies across the network. The key is an installation date, therefore it changes for every server.

 

Should I approach this in a different manner?

 

Thank you.

 

Share this post


Link to post
Share on other sites

Internal fixes are distributed and a registry key is created with the date. Inside each date key it lists several string values that I'd like to evaluate (e.g. FixName: Nov15FixVer1.0 and FixInstallDate: 11-01-2015)

My issue is instead of creating the registry key with a standard name it's generated with the installation date.

 

So if I want to run DCB on all servers with, for example, all computer that have the Nov15FixVer1.0 I need to have a wildcard in in the registry key value.

Share this post


Link to post
Share on other sites

Why don't you just look for FixName: Nov15FixVer1.0, instead?

I know that I'm getting my first coffee, but IMO it would make more sense to Create REG keys like. HKLM\Software\<companyname>\Updates\Nov15FixVer1.0 then have keys under it.

 

The only way to do wild cards like this is to use a script to detect if the SU is applied or not.

Share this post


Link to post
Share on other sites

I don't think I can create the item value HKLM\Software\Company\Updates\20150101\FixName\ where 20150101 changes.

 

Yes, this is definitely a better REG key value; this was not thoroughly thought out initially. My next step will be to create a ps that will search for each entry and create a standard REG key.

 

Thank you for your quick reply.

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.