Welcome › Forums › General PowerShell Q&A › Test-Path registry keys with overlapping names
- This topic has 7 replies, 3 voices, and was last updated 10 months, 3 weeks ago by
Participant.
-
AuthorPosts
-
-
March 5, 2020 at 6:22 pm #208509
Hi there,
I have a strange issue, test-path for a registry key “Name AAA 123” works and it also works for the registry key “Name AAA 123/123”, but only if the first one is not present. If both are present, the key “Name AAA 123/123” cannot be found. The same with Get-Property(Item).
Any idea?
Thanks
Zoran
-
This topic was modified 10 months, 3 weeks ago by
Zoran10.
-
This topic was modified 10 months, 3 weeks ago by
-
March 5, 2020 at 6:43 pm #208524
Hmmm … please be honest: would you be able to understand your question if you had only what you wrote here? 😉
Please show the complete paths you’re talking about and please show the code you’re using. You should format both as code using the code tag “PRE“. Thanks.
-
March 9, 2020 at 10:27 am #209187
Here it is. There is no code, I simply used Test-Path, Get-ItemProperty and Get-ItemPropertyValue. If “Triple DES 168” key is present, PowerShell cannot read “Triple DES 168/168” key.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\Triple DES 168
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\Triple DES 168/168
Thanks
Zoran
-
March 9, 2020 at 12:10 pm #209196
And Test-Path, Get-ItemProperty and Get-ItemPropertyValue is not code? What is it, what you actually want to achieve?
PowerShell12Get-ChildItem -Path REGISTRY::'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers' |ForEach-Object {$_.Name} -
March 9, 2020 at 8:30 pm #209337
Olaf, your cracking me up …
-
March 10, 2020 at 2:45 am #209376
Olaf, your cracking me up …
I’m sorry. Did I say something wrong? English is not my native language. So I’m sorry if I have made a mistake.
-
March 10, 2020 at 8:04 pm #209538
No mistake at all, I just find your comments to be enlightening. No offense intended at all.
-
March 10, 2020 at 9:59 pm #209556
Ah … ok … then … Thanks. 😉
-
-
AuthorPosts
- The topic ‘Test-Path registry keys with overlapping names’ is closed to new replies.