Previous Topic: RestartRequiredNext Topic: return


RetrieveValue

RetrieveValue

Retrieves a registry key value either from the source computer or from the destination computer. It can take three parameters: the key path, the value name, and a Boolean. The first two parameters are required and are string values. The third parameter is optional. If the third parameter is True, CA DMM looks on the source computer, otherwise it looks on the destination computer. The default is False. The command returns False if the value could not be retrieved.

Note: The third Boolean parameter can only be used during General and Apply functions. The third Boolean parameter will cause a syntax error or runtime error if used otherwise.

First parameter:

The Key Path (string value)

Second parameter:

The Value Name (string value)

Third parameter:

The machine (Boolean value)

Usage:
Value = RetrieveValue(<Key Path>, <Value Name>, [Boolean]);
Example:
RetrieveValue( "HKCU\\Software\\Microsoft\\Office\\8.0\\Common\\Toolbar", "Tooltips", SOURCE);
RetrieveValue( "HKCU\\Software\\Microsoft\\Office\\8.0\\Common\", "Tooltips", DESTINATION);