Solved

Remove/Add printers locally

Posted on 2014-03-17
5
303 Views
Last Modified: 2014-04-04
Hi all. I apologize if this question was answered in a previous post. I'm new at my current employer.

Current scenario: 6 teams of 20 users per team  print to 4 printers. The printers are locally installed as TCP/IP  port on the computer, therefor making each computer it's own print spooler and if a print job hangs up, it will only affect that single computer/user, not the rest of the team members.

6 new printer will replace the 4 old printers. Would like to remove the current 4 locally installed printer automatically, via group policy or other mean. I would hate to go to 120 work station to remove the printers manually.

As for installing the 6 new printers, all users will have all 6 printers installed in their printers list. What's the best practice? Implement the 6 new printers locally as we currently have the 4 printers installed or build a print server. Locally has worked well except when a user needs a new printer added, I have to manually install it locally.
I'd like to automate this installation process, not looking forward to install 6 printers on 120 users.

All 6 printers are the same model.

Thank you. Much appreciated.
0
Comment
Question by:Sorin_V
5 Comments
 
LVL 10

Expert Comment

by:Scott Thomson
Comment Utility
Personally i would go with a login script to install the printers. unfortunately i do not know of any way to remov a locally installed printer.

I would send out an email with instructions because from previous efforts there is no way to remove the driver / printer even with a script unless its run locally.

the login script can be vbs - and yes use a print server. it allows you to control the printing and specify things like lockdowns on colour when management ask.. and one day they will i assure you.
0
 
LVL 5

Expert Comment

by:NARANTHIRAN
Comment Utility
Check the below link..

http://blogs.technet.com/b/heyscriptingguy/archive/2005/12/01/how-can-i-remove-all-the-local-printers-from-a-computer.aspx
or
You can even take the 120 system using remote desktop or VNC and uninstall the printer...
0
 
LVL 6

Assisted Solution

by:Sasa Kranjac
Sasa Kranjac earned 166 total points
Comment Utility
Take a look at this article, too.:

http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/Windows_Server_2008/Q_28361665.html

With some minor changes you can adapt it to your needs.
0
 
LVL 3

Assisted Solution

by:SandeepWalve
SandeepWalve earned 334 total points
Comment Utility
Use below for the Deletion of the Printer pretty easily.

Configure below for 4 server (1 Line for one Printer)

Save below in batch file. Save it as DelPrinter.bat

rundll32 printui.dll,PrintUIEntry /dl /n "NAME_OF_PRINTER" /q
rundll32 printui.dll,PrintUIEntry /dl /n "NAME_OF_PRINTER" /q
rundll32 printui.dll,PrintUIEntry /dl /n "NAME_OF_PRINTER" /q
rundll32 printui.dll,PrintUIEntry /dl /n "NAME_OF_PRINTER" /q

Use Psexec to execute this to all the Remote machines in one go. Save all Machine Name or IP one below the other in a Text file.

Machine1
Machine2
Machine3 like wise.
Save that file as MachineList.txt

psexec @MachineList.txt -c DelPrinter.bat >> C:\Output.txt

You must be using account which is Administrator on all the Machine
Keep DelPrinter.bat, MachineList.txt & psexec.exe at C: of your machine from where you executing this command.
Output.txt file will have data of the machines actioned, you will get list of machine which were having issues and which has completed. So for the pending ones you can action on them seperately.

Download PSTools (Psexec)
http://technet.microsoft.com/en-in/sysinternals/bb897553.aspx


Best choice to install printer would be use via Print Server. But if you do not have Print Server in your infra, we can do it via above same command which is been used to delete printer with some different syntax to install it. Give me sometime, I will provide answer for that too
0
 
LVL 3

Accepted Solution

by:
SandeepWalve earned 334 total points
Comment Utility
There is a script which advise how to install printer over TCP IP.

You can use psexec like above to run the script like this on remote machines.

http://community.spiceworks.com/scripts/show/1060-script-to-auto-install-a-local-printer-using-tcp-ip
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

If you use a Brother DCP 130C or similar Brother printer, at some point you might encounter the following problem: after you change the ink cartridge, the printer displays an "ink empty" message. Sometimes you just need to follow the instructions…
This seems to be a very common error related to the Samsung printer driver. First, this is the error we're talking about: Log: System Type: Error Event: 7000 Agent Time: 3:37:24 am 22-Apr-09 Event Time: 6:07:24 pm 21-Apr-09 UTC Source: Se…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now