Read Registry
This component reads registry values
Parameters
Workstation: the name or IP address of the computer on which you want to read a registry value
Create Row
Create a row with
and select a Branch Type, for example HKEY_CURRENT_USER
Create Variable
- Create a variable like Key_Path with a value corresponding to the Key you want to read for example: Software\Microsoft\notepad\ and select it in the column Key_Path
- Create a variable like Value_name with a value corresponding to the DWORD you want to read for example: IfFaceName and select it in the column Value_Name
Launch Treatment
Now you can launch the treatment
The result is available in the following variables:
- REG_EXISTS_0 indicate if the registry variable was found
- REG_VAL_0 contain the registry value
Use syntaxed variables
To use these variables you must respect following syntax:
- {Treatment name.REG_EXISTS_0} and {Treatment name.REG_VAL_0}
Example:
- {Read Registry.REG_VAL_0}
- {Read Registry.REG_EXISTS_0}
Add a Variable Calculation to set properties
After reading Registry Value you can use a Variable Calculation treatment to set the properties {Read Registry.REG_VAL_0} in another variable:
Get the world's favorite Script generator at http://www.paseosoft.com/