Hiding "Access denied" printers

  • Thread starter Thread starter Roland Mettler
  • Start date Start date
R

Roland Mettler

Hello Group!

I am using the printui.dll to add network-connections to printers on a
per-machine base on a terminal-server as follow:

rundll32 printui.dll,PrintUIEntry /ga /n"\\printserver\printer1"

All works fine, until a user logs on who has no access rights to that
printer. The printers shows up in the printer folder with "Access
denied". But I would like the printer to not show up at all, as the
user would see all 300 printers we have, and would have a "Access
denied" message on every but his 3 printers he is allowed to print to.

Is there a way to hide printers which have an "Access denied" status?

Thanks in advance!

Roland
 
Back
Top