I want to delete subkeys under 'Certificates' parent key
every new subkeys under 'Certificates' parent key are generated with a long string of numbers which cannot be predicted in advance and so difficult to write in a command using their names.
So, I am looking a command or wild character type thing to delete all subkeys coming under 'Certificates' parent key without knowing their names
I am able to delete one key, for example, 'Certificates' using winapp.ini in CCleaner by including the following command :
-------------------------------------------------------------------------------------------------------------------------
[RemainOfApp]
LangSecRef=3024
Detect=HKLM\SOFTWARE\Microsoft\SystemCertificates\SPC\Certificates
Default=True
RegKey1=HKLM\SOFTWARE\Microsoft\SystemCertificates\SPC\Certificate
-------------------------------------------------------------------------------------------------------------------------
but the problem is this allows to delete one key (which is parented-key for my requirement) not its all subkeys without knowing their names.
I tried using * or *.* wild character
HKLM\SOFTWARE\Microsoft\SystemCertificates\SPC\Certificate\*
HKLM\SOFTWARE\Microsoft\SystemCertificates\SPC\Certificate\*.*
but not working
I am also thinking even after getting correct command for deleting all subkeys without knowing their names, I may get an error 'admin privilege required for deleting these subkeys'
Please suggest me any solution.