We have a bunch of ghost printers on our LAN. Due to recent changes around here a bunch of printers were retired, and now of course, the users have a bunch of "ghost" network printers installed.
So I got this idea... why don't I look for a script to only remove the networked printers (and not the ones physically attached to the machine, if any?)
Good idea, but I don't know where to start.
I know there is a method to enumerate installed printers, but I am not sure how to tell if it is a local or networked printer.
I'm sure someone has come across this problem before. (As it could be useful, disconnecting printers in a logoff script. Handy for making changes to the network. I already do this for mapped network drives.)
Any ideas? Or can someone point me in the right direction?
D
So I got this idea... why don't I look for a script to only remove the networked printers (and not the ones physically attached to the machine, if any?)
Good idea, but I don't know where to start.
I know there is a method to enumerate installed printers, but I am not sure how to tell if it is a local or networked printer.
I'm sure someone has come across this problem before. (As it could be useful, disconnecting printers in a logoff script. Handy for making changes to the network. I already do this for mapped network drives.)
Any ideas? Or can someone point me in the right direction?
D