foreach server in `cat $serverlist`
REG_VAL=`blquery $-e 'reg_value("HKEY_LOCAL_MACHINE
echo "Reg val: $REG_VAL"
blcli Server addProperty ....
Good enough? You'll have to make a couple other supplementary BLCLI calls to get the args for Server addProperty (Property propertyNameToDBKey, etc.).
So here is the trick question:
This works great if the registry value you want has a name, anyone know the secret to using blquery to get it when the registry value is just the default one?
Copy this .xml file to your .../br/xml/cli directory. Your command syntax should follow this example:
blcli BlAsset getBlAssetsByServer REGISTRY_KEY bladefs HKEY_CLASSES_ROOT
this command should return:
"%ProgramFiles%\Windows NT\Accessories\WORDPAD.EXE" "%1"
If you look in regedit, you'll see that this reg value is a (default) value with "command" as the key node.
BlAsset-PSAdditional.xml 3.0 K
So thats how to do it all with blcli, now how to do the same trick with blquery and save some CPU cycles and the addition for a complex command ?:)
Thanks Brad, I'll forward this to the customer and see if we can't get it working like this while I wait for the blquery answer ;)