Once again hello to all A new problem arised in my project script. I hope not to be too dumb... First please let me know if the title is good or should I change it for other to find it easily with "Search" forum.
---::[ SituatioN ]::---
I need to delete some registry entries (keys) and I will bring here as example only 1 so no one gets confused.
---::[ AnalysiS ]::---
I tried with REG DELETE "regkeypath" /V "regkey2delete" /F . Here follows some tries:
Note: the sid is passed through the variable %SID% (S-1-5-21-1993962763-1383384898-527237240-1003), which I learned and understood thanks to aGerman in the thread: viewtopic.php?f=3&t=1176. I know that the variable is parsed well into the string... anyway here is the complete string tests with REG.EXE.
Code: Select all
reg delete "HKU\S-1-5-21-1993962763-1383384898-527237240-1003\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist\{75048700-EF1F-11D0-9888-0060
97DEACF9}\Count" /v "HRZR_EHACVQY:\ZFA.yax" /f
=== In this case I get the error "Fehler: Der angegebene Registrierungsschlüssel oder Wert konnte nicht gefunden werden.", which means that reg.exe cannot find the path or the value.
reg delete "HKU\S-1-5-21-1993962763-1383384898-527237240-1003\Software\Microsoft\Windows\CurrentVersion\Explorer\UserAssist\{75048700-EF1F-11D0-9888-0060
97DEACF9}\Count\" /v "HRZR_EHACVQY:\ZFA.yax" /f
=== In this case I added the backslash "\" after Count and when executed it asks me if I want to delete, I press "y" and it deletes the entire "Count" path...
---::[ What did I dO? ]::---
"Googled" very much for finding what I'm doing wrong on the reg.exe, found nothing. Looked many, (really many) alternatives for deleteing registry from batch silently... nothing to do (I'm not a good searchlore!)
---::[ What do I neeD? ]::---
I need a way to delete 5 registry entries (keys) stored in HKU hive with parsed SID and the path along to "Count" and delete ONLY but entirely (as in the example above): HRZR_EHACVQY:\ZFA.yax. I prefer to not make use of .reg files or .inf files... Preferably a built in command or a very very small .exe (no gui) file.
---::[ NoteS ]::---
Only, but only if possible again some info to understand the solution (if solutions will be posted).
---::[ ConclusioN ]::---
!!!Thank you very much in advance!!!
Respect2aLL
kind regards to the readers and
Best Regards to the helpers