How do I search in Regedit

Supportnet / Forum / WindowsXP

Script to search in the registry and also to delete it?

Discussion groups
Operating systems
Windows 7
BS other
Word processing
image editing
Audio / mp3 / video
Security / Viruses
Email / Outlook
Web browser
SW other
Mainboard / CPU / RAM
Graphics cards
HW miscellaneous
Wireless Internet access
NW miscellaneous
Scripts (PHP, ASP, Perl ...)
Websites / HTML
PC miscellaneous
Chat corner


Hi :-) I'm looking for a way to search for a certain term in the registry and to remove all resulting entries. The user should only start the file and nothing else. Does anyone think of a possibility, or does a finished script know that can do that? Greetings, Joschi

Answer 1 from Rad

Hey ..

It's best to do it by hand ...

Click Start, then Run, then type regedit and click OK.

Now click on edit, then on search .... Enter the search term and click on search next. If the term is found, click with the right mouse button and click on delete.

This is how you have to do it with all the keys

Greeting ::::: R .-----

Answer 2 from mjoschi


yep, I know the method, but I like to do the net with 60 users ;-)

That's why I'm looking for a way to have it done automatically, since there are more than 120 entries manually ...


Answer 3 by gellec

wmi can be used to read out the registry key by key with the help of wsh scripts. so you could write a search function yourself. but I would expect it to be very slow.
Another possibility would be to export the registry to a text file using regedit.exe and then to search it. that is probably faster, but you first have to parse (interpret) the hit point and its surroundings.
of course you could first parse the whole text file as registry objects in arrays and then search in them. whether that is faster than option 1, no idea.
Deleting registry keys, on the other hand, is easy and can be done - even without wmi - only with wsh methods.

I would like to ask a question to the members for free:

Similar topics:

Search in all existing articles: