Hello
I tried this command :
(New-Object -ComObject WScript.Shell).RegRead("HKCU:\Control Panel\Colors\")
And it show me an error.
What is wrong?
Thanks for help.
Hello
I tried this command :
(New-Object -ComObject WScript.Shell).RegRead("HKCU:\Control Panel\Colors\")
And it show me an error.
What is wrong?
Thanks for help.
Hi @Filip-2434 ,
why are you not using Get-ItemProperty ?
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-itemproperty?view=powershell-7.1
$b = "HKCU:\Control Panel\Colors\"
Get-ItemProperty -Path $b
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten
10 people are following this question.