Solved

Delete ALL registry keys on a wildcard?

Posted on 2006-06-24
2
2,281 Views
Last Modified: 2012-06-27
Hi folks,

For some reason, there are a LOT of registry keys listed thru our systems here that contain printer connections. I have to go to each machine, find the key and delete all instances of it, on every user, everywhere. Then finally, printers stop trying to populate on the machine (they don't exist!).

Anyhoo... is there a program or script I can run to delete all instances of a wildcard entry on the registry?

Thanks a lot!
0
Comment
Question by:overworkedops
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Expert Comment

by:ZaSSeR
ID: 16976383
You should be able to automate it using the command line Registry Provider.
See http://blogs.msdn.com/monad/archive/2006/03/08/546548.aspx - you can download from
http://www.microsoft.com/downloads/details.aspx?FamilyId=2B0BBFCD-0797-4083-A817-5E6A054A85C9&displaylang=en .
0
 
LVL 1

Accepted Solution

by:
rich_holder earned 500 total points
ID: 16976474
Hi,

Here is a simple free vbscript to do just what you want.

http://www.mvps.org/serenitymacros/help.html

It is completely explained... Basically you cut and paste this script and save as "regdelete.vbs" and call this script from the command line with the syntax described.

You could share this script on the domain and call it from a login script or if you are familiar with windows scripting:


Running Scripts on Remote Computers
http://www.microsoft.com/technet/scriptcenter/guide/sas_wsh_immo.mspx?mfr=true

WshController Object
http://www.microsoft.com/technet/scriptcenter/guide/sas_wsh_immo.mspx?mfr=true

Hope this helps.

Good Luck,

Rick
0

Featured Post

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As the title indicates, I have done this before. It chills me everytime I update the OS on my phone, (http://www.experts-exchange.com/articles/18084/Upgrading-to-Android-5-0-Lollipop.html) because one time I did this and I essentially had a bricked …
In a recent article here at Experts Exchange (http://www.experts-exchange.com/articles/18880/PaperPort-14-in-Windows-10-A-First-Look.html), I discussed my nine-month sandbox testing of the Windows 10 Technical Preview, specifically with respect to r…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.
Suggested Courses

615 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question