Skip to content
Merged
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
18 changes: 16 additions & 2 deletions reference/3.0/Microsoft.PowerShell.Management/Get-ChildItem.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,22 @@ RESOURCEMAP
UEFI
```

`Get-ChildItem` uses the **Path** parameter to specify the registry hive **HKLM:\HARDWARE**. The
hive's path and top level of registry keys are displayed in the PowerShell console.
```powershell
Get-ChildItem -Path HLKM:\HARDWARE -Exclude D*
```

```Output
Hive: HKEY_LOCAL_MACHINE\HARDWARE

Name Property
---- --------
ACPI
RESOURCEMAP
```

The first command shows the contents of the `HKLM:\HARDWARE` registry key. The **Exclude** parameter
tells `Get-ChildItem` not to return any subkeys that start with `D*`. Currently, the **Exclude**
parameter only works on subkeys, not item properties.

### Example 7: Get all certificates with code-signing authority

Expand Down
18 changes: 16 additions & 2 deletions reference/4.0/Microsoft.PowerShell.Management/Get-ChildItem.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,22 @@ RESOURCEMAP
UEFI
```

`Get-ChildItem` uses the **Path** parameter to specify the registry hive **HKLM:\HARDWARE**. The
hive's path and top level of registry keys are displayed in the PowerShell console.
```powershell
Get-ChildItem -Path HLKM:\HARDWARE -Exclude D*
```

```Output
Hive: HKEY_LOCAL_MACHINE\HARDWARE

Name Property
---- --------
ACPI
RESOURCEMAP
```

The first command shows the contents of the `HKLM:\HARDWARE` registry key. The **Exclude** parameter
tells `Get-ChildItem` not to return any subkeys that start with `D*`. Currently, the **Exclude**
parameter only works on subkeys, not item properties.

### Example 7: Get all certificates with code-signing authority

Expand Down
18 changes: 16 additions & 2 deletions reference/5.0/Microsoft.PowerShell.Management/Get-ChildItem.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,22 @@ RESOURCEMAP
UEFI
```

`Get-ChildItem` uses the **Path** parameter to specify the registry hive **HKLM:\HARDWARE**. The
hive's path and top level of registry keys are displayed in the PowerShell console.
```powershell
Get-ChildItem -Path HLKM:\HARDWARE -Exclude D*
```

```Output
Hive: HKEY_LOCAL_MACHINE\HARDWARE

Name Property
---- --------
ACPI
RESOURCEMAP
```

The first command shows the contents of the `HKLM:\HARDWARE` registry key. The **Exclude** parameter
tells `Get-ChildItem` not to return any subkeys that start with `D*`. Currently, the **Exclude**
parameter only works on subkeys, not item properties.

### Example 7: Get all certificates with code-signing authority

Expand Down
18 changes: 16 additions & 2 deletions reference/5.1/Microsoft.PowerShell.Management/Get-ChildItem.md
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,22 @@ RESOURCEMAP
UEFI
```

`Get-ChildItem` uses the **Path** parameter to specify the registry hive **HKLM:\HARDWARE**. The
hive's path and top level of registry keys are displayed in the PowerShell console.
```powershell
Get-ChildItem -Path HLKM:\HARDWARE -Exclude D*
```

```Output
Hive: HKEY_LOCAL_MACHINE\HARDWARE

Name Property
---- --------
ACPI
RESOURCEMAP
```

The first command shows the contents of the `HKLM:\HARDWARE` registry key. The **Exclude** parameter
tells `Get-ChildItem` not to return any subkeys that start with `D*`. Currently, the **Exclude**
parameter only works on subkeys, not item properties.

### Example 7: Get all certificates with code-signing authority

Expand Down
21 changes: 19 additions & 2 deletions reference/6/Microsoft.PowerShell.Management/Get-ChildItem.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,9 @@ optional. For example, `-Path C:\Test\Logs` or `-Path C:\Test\Logs\*`.

### Example 6: Get the registry keys from a registry hive

This command gets all of the registry keys from the **HKEY_LOCAL_MACHINE\HARDWARE** registry hive.
This command gets all of the registry keys from the `HKEY_LOCAL_MACHINE\HARDWARE` registry key.

`Get-ChildItem` uses the **Path** parameter to specify the registry hive **HKLM:\HARDWARE**. The
`Get-ChildItem` uses the **Path** parameter to specify the registry key `HKLM:\HARDWARE`. The
hive's path and top level of registry keys are displayed in the PowerShell console.

For more information, see [about_Registry_Provider](../Microsoft.PowerShell.Core/About/about_Registry_Provider.md).
Expand All @@ -273,6 +273,23 @@ RESOURCEMAP
UEFI
```

```powershell
Get-ChildItem -Path HLKM:\HARDWARE -Exclude D*
```

```Output
Hive: HKEY_LOCAL_MACHINE\HARDWARE

Name Property
---- --------
ACPI
RESOURCEMAP
```

The first command shows the contents of the `HKLM:\HARDWARE` registry key. The **Exclude** parameter
tells `Get-ChildItem` not to return any subkeys that start with `D*`. Currently, the **Exclude**
parameter only works on subkeys, not item properties.

### Example 7: Get all certificates with code-signing authority

This command gets each certificate in the PowerShell **Cert:** drive that has code-signing
Expand Down