/build/static/layout/Breadcrumb_cap_w.png

Custom Inventory Rule - REG_DWORD value?

Is KACE able to determine if a REG_DWORD values exists on a client using Custom Inventory Rule? I need to find this value:

 

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Disk]"TimeoutValue"=dword:000000be

 

RegistryValueEquals(HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Disk,TimeOutValue,000000be)

 

 

 

 

 


0 Comments   [ + ] Show comments

Answers (8)

Answer Summary:
Turns out there is a bug in the 5.3 agent that causes this rule not to work properly with Server 2008. This will work, although it will only return a hex value, not a decimal. Be mindful of any spaces that might be introduced at the end when copied. shellcommandtextreturn(cmd.exe /C @echo off && FOR /F \"usebackq skip=2 tokens=1,2,3\" %G IN (`reg.exe query \"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Disk\" /v TimeOutValue`) DO echo %I && rem word)
Posted by: jknox 11 years ago
Red Belt
1

Turns out there is a bug in the 5.3 agent that causes this rule not to work properly with Server 2008.

This will work, although it will only return a hex value, not a decimal. Be mindful of any spaces that might be introduced at the end when copied.


shellcommandtextreturn(cmd.exe /C @echo off && FOR /F \"usebackq skip=2 tokens=1,2,3\" %G IN (`reg.exe query \"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Disk\" /v
TimeOutValue`) DO echo %I && rem word)

Posted by: AbhayR 11 years ago
Red Belt
1

You need to compare numeric value of the hex(000000be) i.e. 190

 

RegistryValueEquals(HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Disk,TimeOutValue,190)


-Abhay


Comments:
Posted by: diverdaveman1 11 years ago
Purple Belt
1

That is how I thought is should be, but that doesn't work. I keep inventorying a server that I pulled this value from, but the Custom Inventory doesn't show up. I have the correct OS's selected as well. Does anyone know if there is an issue with REG_DWORD values?

Thanks,
Dave

Posted by: AbhayR 11 years ago
Red Belt
1

What OS is this? 64 Bit?

Posted by: diverdaveman1 11 years ago
Purple Belt
1

We have several servers with both 32 and 64 bit - Windows 2003 and 2008 Server

Dave


Comments:
  • is .net 1.1 installed? - SMal.tmcc 11 years ago
  • I have no firewalls active on mine - SMal.tmcc 11 years ago
Posted by: AbhayR 11 years ago
Red Belt
1

What versions of Kace server and agents do you have?


Comments:
  • Server: 5.3.53053
    Client: 5.3.53177 - diverdaveman1 11 years ago
  • Can you try the rule RegistryValueReturn(HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Disk, TimeOutValue, NUMBER)

    so that we can know what is being returned if any. - AbhayR 11 years ago
    • It doesn't work in server 2008 with the 5.3 agent. - jknox 11 years ago
Posted by: SMal.tmcc 11 years ago
Red Belt
1

In 20 minutes after creating I have 46 now matching


Comments:
  • We are still version 5.1.3. - SMal.tmcc 11 years ago
    • Do you have servers checking in? I can get XP/7, but not 2008. - jknox 11 years ago
      • Do not have the client on any server, the server crew does not go for that. Are there any logs they can look at to see what is not working. found nothing on target machines was wondering about the k1000 logs? - SMal.tmcc 11 years ago
  • I installed it on a couple of server 2008 R2 vms and the rule doesn't work. Checking some things. - jknox 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

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