Reputation: 7788
When I try to do anything with the path HKCR:\*
it just takes forever. So I assume it takes the asterisk as wildcard.
Test-Path -Path HKCR:\*
What I've tried
HKCR:\\*
HKCR:\`*
'HKCR:\*'
Upvotes: 2
Views: 1621
Reputation: 7029
Use the LiteralPath
parameter rather than the Path
parameter to prevent characters from being interpreted as wildcards.
Test-Path -LiteralPath HKCR:\*
Upvotes: 3