Yes, they are safe to remove.

I created a batch file with these two lines and call it from a group policy 
logoff script.

reg DELETE "HKCU\Software\Microsoft\Windows NT\CurrentVersion\Devices" /va /f
reg DELETE "HKCU\Software\Microsoft\Windows NT\CurrentVersion\printerports" /va 
/f

I will have to say, though, that this seems to make some user's Citrix session 
hang (they never logoff after closing their last app). I will probably move 
this to a logon script at some point.

Ken Cornetet 812.482.8499
To err is human - to moo, bovine.

From: James Rankin [mailto:kz2...@googlemail.com]
Sent: Wednesday, March 30, 2011 4:01 AM
To: NT System Admin Issues
Subject: Are printer-related registry keys are safe to remove?

There are two Registry keys - HKCU\Software\Microsoft\Windows 
NT\CurrentVersion\Devices\ and HKCU\Software\Microsoft\Windows 
NT\CurrentVersion\PrinterPorts - that, in a terminal services environment, seem 
to fill up with vast amounts of printers, apparently enumerated from any user 
that has ever logged on. Now some older pieces of software seem to look here 
for their printer settings, to the extent that when there are approximately 500 
entries in there, meaning that the printing from these apps is very, very slow. 
According to an MS article these keys are for user preferences for print 
devices in Windows NT 4.0, so, would I be right in assuming I could simply 
remove all entries from these keys at logoff without causing myself any 
problems?

TIA,



JR

--
"On two occasions...I have been asked, 'Pray, Mr Babbage, if you put into the 
machine wrong figures, will the right answers come out?' I am not able rightly 
to apprehend the kind of confusion of ideas that could provoke such a question."

IMPORTANT: This email is intended for the use of the individual addressee(s) 
named above and may contain information that is confidential, privileged or 
unsuitable for overly sensitive persons with low self-esteem, no sense of 
humour or irrational religious beliefs. If you are not the intended recipient, 
any dissemination, distribution or copying of this email is not authorised 
(either explicitly or implicitly) and constitutes an irritating social faux pas.

Unless the word absquatulation has been used in its correct context somewhere 
other than in this warning, it does not have any legal or no grammatical use 
and may be ignored. No animals were harmed in the transmission of this email, 
although the kelpie next door is living on borrowed time, let me tell you. 
Those of you with an overwhelming fear of the unknown will be gratified to 
learn that there is no hidden message revealed by reading this warning 
backwards, so just ignore that Alert Notice from Microsoft.

However, by pouring a complete circle of salt around yourself and your computer 
you can ensure that no harm befalls you and your pets. If you have received 
this email in error, please add some nutmeg and egg whites, whisk and place in 
a warm oven for 40 minutes.

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe ntsysadmin

Reply via email to