# Get-ChildItem Registry subKey

**URL:** <https://forums.powershell.org/t/get-childitem-registry-subkey/14006>\
**Category:** PowerShell Help\
**Created:** [March 20, 2020, 2:33pm UTC](https://forums.powershell.org/t/get-childitem-registry-subkey/14006 "2020-03-20T14:33:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinod-kumar](https://avatars.discourse-cdn.com/v4/letter/v/a87d85/32.png) [@vinod-kumar](https://forums.powershell.org/u/vinod-kumar)\
**Post date:** [March 20, 2020, 2:33pm UTC](https://forums.powershell.org/t/get-childitem-registry-subkey/14006/1 "2020-03-20T14:33:26Z")

</div>

Trying to list only the Subkey Name using the command

(Get-ChildItem “Registry::HKEY\_Current\_User\Software\WebEx\Plugins\Logon”).Name

The output am getting is

HKEY\_CURRENT\_USER\Software\WebEx\Plugins\Logon\aaaaaaa.webex.com\_aaaaaa  
HKEY\_CURRENT\_USER\Software\WebEx\Plugins\Logon\bbbbbbbb.webex.com\_bbbbbb\_bbbbb@xyz.com  
HKEY\_CURRENT\_USER\Software\WebEx\Plugins\Logon\cccccccc.webex.com\_ccccccc

I just need only to list Names

aaaaaaa.webex.com\_aaaaaa

[bbbbbbbb.webex.com\_bbbbbb\_bbbbb@xyz.com](mailto:bbbbbbbb.webex.com_bbbbbb_bbbbb@xyz.com)

[bbbbbbbb.webex.com\_bbbbbb\_bbbbb@xyz.com](mailto:bbbbbbbb.webex.com_bbbbbb_bbbbb@xyz.com)

I can do using Split command, but do not think it is a right way of achieving the result. Any help is much appreciated

---

<div class="post-metadata">

**Author:** ![vinod-kumar](https://avatars.discourse-cdn.com/v4/letter/v/a87d85/32.png) [@vinod-kumar](https://forums.powershell.org/u/vinod-kumar)\
**Post date:** [March 20, 2020, 3:22pm UTC](https://forums.powershell.org/t/get-childitem-registry-subkey/14006/2 "2020-03-20T15:22:55Z")

</div>

I was able to get the value

$RegVal = Get-ChildItem “Registry::HKEY\_Current\_User\Software\WebEx\Plugins\Logon” | Get-ItemProperty | Select PsChildName -ExpandProperty PsChildName  
$RegVal

&nbsp;

---

<div class="post-metadata">

**Author:** ![random-commandline](https://avatars.discourse-cdn.com/v4/letter/r/e56c9b/32.png) [@random-commandline](https://forums.powershell.org/u/random-commandline)\
**Post date:** [March 21, 2020, 11:28am UTC](https://forums.powershell.org/t/get-childitem-registry-subkey/14006/3 "2020-03-21T11:28:31Z")

</div>

```
Get-ChildItem HKCU:\Software\WebEx\Plugins\Logon | Select-Object PSChildName
```

---

<div class="post-metadata">

**Author:** ![krisvg](https://avatars.discourse-cdn.com/v4/letter/k/da6949/32.png) [@krisvg](https://forums.powershell.org/u/krisvg)\
**Post date:** [March 21, 2020, 4:00pm UTC](https://forums.powershell.org/t/get-childitem-registry-subkey/14006/4 "2020-03-21T16:00:03Z")

</div>

How about:

(Get-Item “Registry::HKEY\_Current\_User\Software\WebEx\Plugins\Logon”).GetSubKeyNames()

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:30pm UTC](https://forums.powershell.org/t/get-childitem-registry-subkey/14006/5 "2024-05-16T20:30:16Z")

</div>

Closed on May 16, 2024, 8:30pm UTC


