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
{{ message }}
Repository navigation
Stack overflow when using Get-ChildItem on registry provider #10215
Open PowerShell console with Administrator right, and type in the following commands.
The search item (here Installer) is irrelevant, also reproducible with wildcards.
cd HKLM:
dir -Recurse -Name -ErrorAction SilentlyContinue -Include Installer
Expected behavior
Get-ChildItem returns found registry subkeys.
Actual behavior
PowerShell crashes with StackOverflowException.
Environment data
PS > $PSVersionTable
Name Value
---- -----
PSVersion 6.2.2
PSEdition Core
GitCommitId 6.2.2
OS Microsoft Windows 10.0.17134
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Notes
After further investigation I've come to the conclusion that the cause is a registry entry that has / as its name.
Activity
iSazonov commentedon Oct 14, 2019
satorp Thanks for your report!
It is dup #5536.