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)
Answers (8)
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)
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)
What versions of Kace server and agents do you have?
Comments:
-
Server: 5.3.53053
Client: 5.3.53177 - diverdaveman1 12 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 12 years ago-
It doesn't work in server 2008 with the 5.3 agent. - jknox 12 years ago
In 20 minutes after creating I have 46 now matching
Comments:
-
We are still version 5.1.3. - SMal.tmcc 12 years ago
-
Do you have servers checking in? I can get XP/7, but not 2008. - jknox 12 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 12 years ago
-
I installed it on a couple of server 2008 R2 vms and the rule doesn't work. Checking some things. - jknox 12 years ago
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