Solved

Delete ALL registry keys on a wildcard?

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Hello I read in a discussion about a person who configured a very simple mirror RAID with two hard drives; the system and data were on the same partition. He asked how to repair the system as it was not booting up anymore. In his case running …
#Citrix #POC #XenDesktop #vCenter #VMware #ESX
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.

911 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now