Solved

Delete ALL registry keys on a wildcard?

Posted on 2006-06-24
2
2,160 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
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Many people tend to confuse the function of a virus with the one of adware, this misunderstanding of the basic of what each software is and how it operates causes users and organizations to take the wrong security measures that would protect them ag…
Windows 7 does not have the best desktop search built in. This is something Windows 7 users have struggled with. You type something in, and your search results don’t always match what you are looking for, or it doesn’t actually work at all. There ar…
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.

828 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