Displays the path name of all the keys that match the specified key. This command requires the SYSPRV privilege or the REG$LOOKUP rights identifier. Format: SEARCH KEY key-search key-search Specifies the key name for which to search.
1 – Qualifiers
1.1 /OUTPUT
/OUTPUT=file-spec Controls where the output of the command is sent. If you do not specify a file name, the system uses the default name REGISTRY.LIS.
1.2 /WAIT
/WAIT=seconds (default = 90) /NOWAIT Specifies the maximum amount of time, in seconds, that you are willing to wait for command completion. If the Registry server does not complete the request in the specified interval, REG$CP returns REG-F-NORESPONSE. The default interval is 90 seconds. /NOWAIT is equivalent to specifying /WAIT=0, but there may still be a short wait period.
2 – Example
REG> SEARCH KEY HKEY_LOCAL_MACHINE\...\NODE HARDWARE\CLUSTER\NODE HARDWARE\LOCAL\NODE NODE Displays all the key paths that match the HKEY_LOCAL_ MACHINE\...\NODE selection. The ellipsis (...) wildcard specifies that there can be any number of subkeys between the HKEY_LOCAL_MACHINE entry point and the NODE subkey. Note that the search is not case sensitive.