Search for and delete registry keys for redirected printers

Hello,

We are using windows 2008 terminal server.  We also use Quattro Pro.  When I look at the printer list when printing in Quattro Pro it contains redirected printers that are no longer available. It looks like QP is getting its printer list from the following key:

HKEY_CURRENT_USER\SOFTWARE\MICROSOFT\WINDOWS NT\CURRENTVERSION\DEVICES

There are a bunch of printers in that location that look like this:

HP Laserjet 6 (redirected 4)
HP Laserjet 6 (redirected 5)
etc...

In the list are also the valid printers installed on the terminal server.  Is there a way to delete those redirected printers from that registry location via the logon script?

Thanks,
Bonnie

LVL 1
Bonnie_KAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ian MeredithCommented:
If you know the locations within the registry and the keys you want to delete, then use a .reg file that contains the keys and the entries you want removed.

example to remove a value...
-------------------------------------------
REGEDIT5

[HKEY_CURRENT_USER\DummyTree]
"ValueToBeRemoved"=-
--------------------------------------------
links.....
http://www.robvanderwoude.com/regedit.php
http://support.microsoft.com/kb/310516

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ian MeredithCommented:
0
Bonnie_KAuthor Commented:
Thanks - these links were very helpful
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2008

From novice to tech pro — start learning today.