script or batch file to delete multiple registry entries

Chaz_2

Commendable
Oct 20, 2016
3
0
1,510
I am looking for a script (batch, vbs, etc) or standalone exe that will search through the registry based on a single keyword and delete all entries. It can be a program with a prompt for what keyword to use, or it can just be a keyword that is hard-coded into the script itself.

ex: I want to delete every registry entry with "spice" in it with the running of one file. I do not want to use a program that requires installation, as I need it to be a quick one-and-done task.The upside to a script would be the ability to run it remotely.
 

Chaz_2

Commendable
Oct 20, 2016
3
0
1,510


Unfortunately, it's not a one-time thing. I work with about 1800 computers with Kaspersky antivirus software on them. When trying to uninstall a corrupt version of the software, it requires removing all registry entries containing "kaspersky" before the updated client will install.

Yes it could be a dangerous script, but also extremely useful. Otherwise I will have to resort to software like IOBit Uninstaller's powerful scan, but this is not a standalone exe so it creates more trouble than it's worth.
 

Chaz_2

Commendable
Oct 20, 2016
3
0
1,510


That is the closest I've found so far. But it looks like you have to specify specific keys to delete rather than just putting "keyword." Do you know if it will allow for keywords?
 

USAFRet

Titan
Moderator


No idea.
 

andreasita

Commendable
Oct 21, 2016
1
0
1,510


An user contacted me to join here. We can develop a command-line program that searches for a keyword (or multiple keywords) in the registry and then it deletes the registry keys (and sub-keys\values) found. Just send me a PM with more information.