# CFREGISTRY ACTION="GetAll"

Use CFREGISTRY with the GetAll action to return all registry keys and values defined in a branch. You can access these values as you would any record set.

### Syntax

    <CFREGISTRY ACTION="GetAll"
        BRANCH="branch"
        TYPE="data type"
        NAME="query name"
        SORT="criteria">

#### BRANCH

Required. The name of the registry branch containing the keys or values you want to access.

#### TYPE

Optional. The type of data you want to access:

- String -- Return string values (default).
- DWord -- Return DWord values.
- Key -- Return keys.
- Any -- Return keys and values.

#### NAME

Required. The name of the record set to contain returned keys and values.

#### SORT

Optional. Sorts query column data (case-insensitive). Sorts on Entry, Type, and Value columns as text. Specify any combination of columns from query output in a comma separated list. ASC (ascending) or DESC (descending) can be specified as qualifiers for column names. ASC is the default. For example:

    Sort="value DESC, entry ASC"

### Usage

CFREGISTRY returns #Entry#, #Type#, and #Value# in a record set that you can access through tags such as CFOUTPUT. To fully qualify these variables use the record set name, as specified in the NAME attribute.

If #Type# is a key, #Value# is an empty string.

If you specify Any for TYPE, GetAll also returns binary registry values. For binary values, the #Type# variable contains UNSUPPORTED and #Value# is blank.

### Example

    <!--- This example uses CFREGISTRY with the GetAll Action  --->

    <HTML>
    <HEAD>
    <TITLE>CFREGISTRY ACTION="GetAll"</TITLE>
    </HEAD>
    <BODY>
    <CFREGISTRY ACTION="GetAll"
      BRANCH="HKEY_LOCAL_MACHINE\Software\Microsoft\Java VM"
      TYPE="Any" NAME="RegQuery">
    <P>
    <H1>CFREGISTRY ACTION="GetAll"</H1>
    <CFTABLE QUERY="RegQuery" COLHEADERS HTMLTABLE BORDER="Yes">
    <CFCOL HEADER="<B>Entry</b>" WIDTH="35" TEXT="#RegQuery.Entry#">
    <CFCOL HEADER="<B>Type</b>" WIDTH="10" TEXT="#RegQuery.Type#">
    <CFCOL HEADER="<B>Value</b>" WIDTH="35" TEXT="#RegQuery.Value#">
    </CFTABLE>
    </BODY>
    </HTML>