Custom Inventory Rule Question
I am trying to create a custom inventory rule for Mozilla Firefox 15.0.1, which is this RegistryKeyExists(HKLM\SOFTWARE\Mozilla\Mozilla Firefox) and RegistryValueLessThan(HKLM\SOFTWARE\Mozilla\Mozilla Firefox,,15.0) . How can I return the default entry ((Default) or @) in a registry REG_SZ entry?
I have tried @ (RegistryValueLessThan(HKLM\SOFTWARE\Mozilla\Mozilla Firefox,@,15.0)) and it throws this error "Custom Inventory Rule failed on registry operation: flags=0x0404 key='HKLM\SOFTWARE\Mozilla\Mozilla Firefox', name='@', value='15.0': (2) The system cannot find the file specified."
I have tried (DEFAULT) (RegistryValueLessThan(HKLM\SOFTWARE\Mozilla\Mozilla Firefox,(DEFAULT),15.0)) and it throws this error "Custom Inventory Rule failed on registry operation: flags=0x0404 key='HKLM\SOFTWARE\Mozilla\Mozilla Firefox', name='(DEFAULT)', value='15.0': (2) The system cannot find the file specified."
I have tried to leave the valuename blank (RegistryValueLessThan(HKLM\SOFTWARE\Mozilla\Mozilla Firefox,,15.0)) and it throws this error "Custom Inventory Rule (1229) does not have correct arguments: RegistryValueLessThan args=2"
Any help would be greatful, thanks
Larry
Answers (3)
My first question is why you need to create a custom inventory rule for 15.0.1. My KBox is showing distinct entries in the Software inventory for 15.0 vs 15.0.1.
I would also suggest that you base the rule on the version of firefox.exe instead of the information in registry.
Comments:
-
I am trying to get the Managed Installations working so if a machine has a version of FF below 15.0.1 the machine will automatically be updated the next time it checks in.
Originally I was going to use the registry to compare information versus file version due to 32 bit and 64 bit program files and different file locations. After doing more research I am going to have to go with comparing file versions as I am finding comparing registry versions not as reliable as I thought it was. Thanks - SecurityTeam 12 years ago -
For a managed installation it would be better to create a smart label based on the version of Firefox installed, instead of a custom inventory rule. - chucksteel 12 years ago