Need a login script that will delete certain print queues
Posted on 2008-06-20
Hi Experts! Here is the situation. I have a client that has 15 users. 10 out of the 15 use different computers and when they do, they need printers mapped. I figured no big deal when I signed up to support them but after doing the initial audit, they have printers shared on a few desktops, some shared on the server and a couple others that are local. A huge mess since no one knows where they are printing when they sit at a different desk.
I installed USB/NIC adapters and moved the printers that were being shared on the desktops to now be shared on the server. I changed the other printers that were already on the server so that the naming scheme was consistent. Here is my problem:
Some of the user profiles on several computers have printers listed that used to be shared by a desktop. Since that setup doesn't exist, they are getting confused when the login script runs and they see two sets of printers. I need to add to my login script a way to delete certain printer mappings that may already exist. I can add the queue name but I don't know what the command is.
You are my only hope..... : ) Thanks for any assistance you can offer up. By the way, I know almost nothing on vbscript so if you offer something up that uses that, please be detailed.