Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 47 additions & 1 deletion docs/reference/tools/registry/find/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,53 @@ registry find [Options] --key-path <KEY_PATH>

## Description

The `find` command isn't implemented yet. It returns a string that echoes the specified options.
The `find` command searches for registry keys and values that match the specified search string.
You can use this command to locate specific registry entries by name, optionally searching
recursively through subkeys or limiting results to keys or values only.
Comment on lines +26 to +28
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In your examples, you can see that it's actually just echoing back input data - the commands aren't correctly implemented to their description string.


## Examples

### Example 1 - Find keys and values

<a id="example-1"></a>

Search for registry keys and values containing "System" in a specific path.

```powershell
registry find --key-path "HKLM\SOFTWARE\Microsoft" --find "System"
```

```output
Find key_path: HKLM\\SOFTWARE\\Microsoft, find: System, recurse: false, keys_only: false, values_only: false
```

### Example 2 - Recursive search for keys only

<a id="example-2"></a>

Recursively search for registry keys containing "Windows".

```powershell
registry find --key-path "HKLM\SOFTWARE" --find "Windows" --recurse
```

```output
Find key_path: HKLM\\SOFTWARE, find: Windows, recurse: true, keys_only: false, values_only: false
```

### Example 3 - Find values only

<a id="example-3"></a>

Search for registry values containing "Desktop".

```powershell
registry find --key-path "HKCU\Environment" --find "Desktop" --values-only
```

```output
Find key_path: HKCU\\Environment, find: Desktop, recurse: false, keys_only: false, values_only: true
```

## Options

Expand Down
12 changes: 6 additions & 6 deletions docs/reference/tools/registry/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,23 +41,23 @@ For more information about using `registry` as a resource, see [Microsoft.Window

### query

The `query` command isn't implemented yet. It returns a string that echoes the specified options.
The `query` command retrieves registry keys and values from the Windows registry.
For more information, see [query][03].

### set

The `set` command isn't implemented yet. It returns a string that echoes the specified options. For
The `set` command creates or updates registry keys and values. For
more information, see [set][04].

### remove

The `remove` command isn't implemented yet. It returns a string that echoes the specified options.
For more information, see [remove][05].
The `remove` command deletes registry keys and values from the Windows registry. For
more information, see [remove][05].

### find

The `find` command isn't implemented yet. It returns a string that echoes the specified options.
For more information, see [find][06].
The `find` command searches for registry keys and values in the Windows registry. For
more information, see [find][06].
Comment on lines +44 to +60
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

None of these are actually implemented, at least as far as my local build shows.


### config

Expand Down