Author Topic: Scanning the Registry with Batch  (Read 1550 times)

0 Members and 1 Guest are viewing this topic.

Xedafen

  • Guest
Scanning the Registry with Batch
« on: November 29, 2014, 02:32:15 am »
Does anyone know if there is a way to search the registry using the find command and then delete all of those keys in batch? I am trying to make an easier way to clean all the reg files in a key with batch, but dont know how.
Code: [Select]
set /p key= Key:
I only posted that bit of code to help understand what I am trying to do, I would like for when the user inputs that variable it searches th registry for that key and deletes it. is this possible?

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: Scanning the Registry with Batch
« Reply #1 on: November 29, 2014, 08:48:06 am »
If you know the key, and you need to delete every entry in the key, then just use a wildcard.
A quick google search shows me http://domainwebcenter.com/?p=1392 and http://www.edugeek.net/forums/windows-7/83511-delete-registry-key-wildcard.html

Using VBS might be a bit easier tho.

Offline iTpHo3NiX

  • EZ's Pirate Captain
  • Administrator
  • Titan
  • *
  • Posts: 2920
  • Cookies: 328
    • View Profile
    • EvilZone
Re: Scanning the Registry with Batch
« Reply #2 on: November 29, 2014, 06:35:12 pm »
VBS would work better. You can have it open regedit, do the search ie Ctrl+f then have it enter your search screen, delete the key and f3 to search again
[09:27] (+lenoch) iTpHo3NiX can even manipulate me to suck dick
[09:27] (+lenoch) oh no that's voluntary
[09:27] (+lenoch) sorry

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: Scanning the Registry with Batch
« Reply #3 on: November 29, 2014, 09:20:06 pm »
VBS would work better. You can have it open regedit, do the search ie Ctrl+f then have it enter your search screen, delete the key and f3 to search again
Ugh... what? why go the macro way? VBS is capable of interacting with Registry on his own.

Offline iTpHo3NiX

  • EZ's Pirate Captain
  • Administrator
  • Titan
  • *
  • Posts: 2920
  • Cookies: 328
    • View Profile
    • EvilZone
Re: Scanning the Registry with Batch
« Reply #4 on: November 30, 2014, 03:20:32 am »
Ugh... what? why go the macro way? VBS is capable of interacting with Registry on his own.

Really didn't know that
[09:27] (+lenoch) iTpHo3NiX can even manipulate me to suck dick
[09:27] (+lenoch) oh no that's voluntary
[09:27] (+lenoch) sorry

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog

Offline Deque

  • P.I.N.N.
  • Global Moderator
  • Overlord
  • *
  • Posts: 1203
  • Cookies: 518
  • Programmer, Malware Analyst
    • View Profile
Re: Scanning the Registry with Batch
« Reply #6 on: December 01, 2014, 07:47:57 am »
reg query is what you are looking for.
Please, have a look here for examples and explanation: http://www.robvanderwoude.com/regsearch.php