"Uncle Rico" <UncleRico@xxxxxx> wrote in message
news:4511804B-CC56-4EF8-8BD4-8E3F272E2A86@xxxxxx
> This does not work because "*" is a wildcard...
> set-location hklm:\software\classes\*
>
> ...but this does...
> set-location -LiteralPath hklm:\software\classes\*
>
> This does not work because "." means current location...
> set-location hklm:\software\classes\.
>
> ...and *this* does not either...
> set-location -LiteralPath hklm:\software\classes\.
>
> How do I set-location to a registry key called "."?
>
Powershell has issues with registry keys called '.', period (if you can
excuse the pun).
I've noticed it previously when using Get-ChildItem and -recurse.
AFAIK, 'HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.' isn't a key that occurs by
default in any Windows version, although keys called '.' can and do occur in
other regions of the registry.
So where possible, I'd simply avoid calling any keys '.'.
--
Jon