Evaluate registry settings during the task sequence; based on defined criteria, choose whether to run additional processes. The registry contains two basic elements: keys and values.

·     Registry keys are similar to folders. Each key can contain subkeys, which in turn can contain further subkeys, all of which might contain values. Keys are referenced with syntax similar to Windows path names, using backslashes (\) to indicate levels of hierarchy. For example, HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows refers to the subkey Windows of the subkey Microsoft of the key Software of the subtree HKEY_LOCAL_MACHINE.

·     Registry values are name–data pairs stored within but referenced separately from these keys. Value names can contain backslashes, but including backslashes so makes the values difficult to distinguish from their key paths.

To configure a condition based on a registry setting condition, provide the following information in the Registry Setting dialog box:

·     Root key. The subtree of the registry key. Base the condition on one of the following:

·     HKEY_CURRENT_USER

·     HKEY_LOCAL_MACHINE

·     HKEY_USERS

·     HKEY_CURRENT_CONFIG

·     Key. The value of the registry key to use in the condition

·     Condition. A logical operator, such as AND or OR

·     Value name. The name of the value to use in the condition

·     Value type. The value type, which can be one of the following:

·     REG_SZ

·     REG_EXPAND_SZ

·     REF_DWORD

·     Value. The value of the value type for the provided registry key to use in the condition

To add a Registry Setting condition to a task sequence step

1.   On the step Option tab (where step is the name of the task sequence step to configure), click Add, and then click Registry Setting.

2.   In the Registry Setting dialog box, in the Root key box, click Root key.

3.   In the Registry Setting dialog box, in the Key box, type key (where key is the remainder of the registry key minus the subtree).

4.   In the Registry Setting dialog box, in the Condition box, click condition (where condition is the logical operation to use in the condition).

5.   In the Registry Setting dialog box, in the Value name box, type the name of the Value name.

6.   In the Registry Setting dialog box, in the Value type box, click Value type.

7.   In the Registry Setting dialog box, in the Value box, type the value for which testing will occur, and then click OK.

Related Topics

Configure Task Sequence Step Conditions