Hiding "Access denied" printers

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top