You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This example demonstrates how to use `Get-PSTreeRegistry` to retrieve registry values, filter for `TreeRegistryValue` objects, and access a specific value using the `.GetValue()` method. It targets the `HKCU:\Environment` hive, limiting depth to 2 levels, and shows how to extract a value like `TEMP`.
80
+
81
+
### Example 4: Traverse `HKEY_USERS` Using the Provider Path
Enables recursive traversal of all subkeys under the specified registry path. Use this switch to ensure complete hierarchy exploration without depth restrictions.
127
174
128
175
```yaml
129
176
Type: SwitchParameter
@@ -143,14 +190,32 @@ This cmdlet supports the common parameters. For more information, see [about_Com
143
190
144
191
## INPUTS
145
192
146
-
### String
193
+
### System.String
194
+
195
+
You can pipe strings containing registry paths to this cmdlet.
196
+
Output from `Get-Item` and `Get-ChildItem` can be piped to this cmdlet.
147
197
148
198
## OUTPUTS
149
199
150
-
### TreeRegistryKey
200
+
### PSTree.TreeRegistryKey
201
+
202
+
Returns objects of type `TreeRegistryKey` representing registry keys in a hierarchical structure. If `-KeysOnly` is specified, only `TreeRegistryKey` objects are returned; otherwise, `TreeRegistryValue` objects may also be included, but the primary output type remains `TreeRegistryKey` for consistency with the tree-like organization.
151
203
152
-
### TreeRegistryValue
204
+
### PSTree.TreeRegistryValue
205
+
206
+
Returns objects of type `TreeRegistryValue` representing registry values associated with keys, included in the output unless the `-KeysOnly` parameter is specified. Each object includes properties such as `Name`, `Kind`, and `Depth`, allowing access to value data (e.g., via the `.GetValue()` method). These objects are nested under `TreeRegistryKey` objects in the hierarchical output, providing detailed value information for registry exploration.
153
207
154
208
## NOTES
155
209
210
+
This cmdlet is Windows-only and requires PowerShell 5.1 or later. It may require elevated permissions for certain registry hives.
0 commit comments