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)

 

 

 

 

 

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)
Cancel
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Answers

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)

Answered 08/21/2012 by: jknox
Red Belt

Please log in to comment
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

Answered 08/15/2012 by: AbhayR
Fourth Degree Black Belt

  • This content is currently hidden from public view.
    Reason: Removed by user request
    For more information, visit our FAQ's.
Please log in to comment
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

Answered 08/15/2012 by: diverdaveman1
Purple Belt

Please log in to comment
1

What OS is this? 64 Bit?

Answered 08/15/2012 by: AbhayR
Fourth Degree Black Belt

Please log in to comment
1

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

Dave

Answered 08/15/2012 by: diverdaveman1
Purple Belt

  • is .net 1.1 installed?
  • This content is currently hidden from public view.
    Reason: Removed by user request
    For more information, visit our FAQ's.
  • I have no firewalls active on mine
Please log in to comment
1

What versions of Kace server and agents do you have?

Answered 08/15/2012 by: AbhayR
Fourth Degree Black Belt

  • Server: 5.3.53053
    Client: 5.3.53177
  • 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.
    • It doesn't work in server 2008 with the 5.3 agent.
Please log in to comment
1

In 20 minutes after creating I have 46 now matching

Answered 08/15/2012 by: SMal.tmcc
Red Belt

  • We are still version 5.1.3.
    • Do you have servers checking in? I can get XP/7, but not 2008.
      • 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?
  • I installed it on a couple of server 2008 R2 vms and the rule doesn't work. Checking some things.
Please log in to comment
This content is currently hidden from public view.
Reason: Removed by user request
For more information, visit our FAQ's.

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

Answered 04/16/2013 by: c_brock
Third Degree Brown Belt

Please log in to comment
Answer this question or Comment on this question for clarity