?
Solved

Delete a local printer from a remote computer in a domain

Posted on 2011-03-24
10
Medium Priority
?
2,097 Views
Last Modified: 2012-05-11
I'm in a Windows Server 2003/2008 with Windows XP system.  No a lot of times my users are unavailable for me to perform any work on their systems.  I've been tasked with removing a specific printer from the computers.  Does anyone know of a command-line command that will delete this printer from the system?  It would be helpful if it can remove the drivers as well.

Thanks in advanced!
0
Comment
Question by:MacGyver80
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
10 Comments
 
LVL 22

Expert Comment

by:mcsween
ID: 35207408

Printers can be removed using Group Policy Preferences.  Check under the node
User Config --> Preferences --> Control Panel Settings --> Printers

Create a new Local, TCP/IP, or Shared printer then set the action to delete and fill in the rest of the info about the printer.
0
 
LVL 5

Author Comment

by:MacGyver80
ID: 35207531
I'm using an account that pretty much has almost full domain privileges and full system privileges.  I'm using Manage PC to open a remote command prompt to the system that I want to remove the printer from.  I just need a command that will uninstall the local printer from the system via command prompt.
0
 
LVL 22

Expert Comment

by:mcsween
ID: 35207593
That would involve a scripting solution.  If you want help with that you should post over in the VBScript or PowerShell forums.  I don't have time right now to write a script for you.  

The GPO method I posted above will be much faster and easier.  Takes about 10 minutes to setup then it is automated after that.  If you want to force it you can issue a gpupdate /force from each client workstation.
0
Optimum High-Definition Video Viewing and Control

The ATEN VM0404HA 4x4 4K HDMI Matrix Switch supports 4K resolutions of UHD (3840 x 2160) and DCI (4096 x 2160) with refresh rates of 30 Hz (4:4:4) and 60 Hz (4:2:0). It is ideal for applications where the routing of 4K digital signals is required.

 
LVL 22

Accepted Solution

by:
mcsween earned 1000 total points
ID: 35207601
If it is a local printer you can just call the computer from a run dialog and just delete the printer from the printers folder.

Start, Run, \\computername
DC the printers folder (or if using Win 7 click View Remote Printers at the top)
0
 
LVL 22

Expert Comment

by:mcsween
ID: 35207642
I forgot about my buddy rundll32

Run this at a command prompt and you should be able to figure it out.  I still say it is easier to do it through Group Policy though.

rundll32 printui.dll,PrintUIEntry /?

Open in new window

0
 
LVL 16

Expert Comment

by:speshalyst
ID: 35207673
0
 
LVL 5

Author Comment

by:MacGyver80
ID: 35207776
I'm an idiot, I knew that and completely forgot about it.  Would you also happen to know if there is a way to delete all drivers associated with that printer
0
 
LVL 22

Expert Comment

by:mcsween
ID: 35207798

Remove printer driver: 
rundll32 printui.dll,PrintUIEntry /dd /c\\machine /m "Brother DCP-128C" /h "x86" /v "Type 3 - User Mode"
   Remove printer driver: 
rundll32 printui.dll,PrintUIEntry /dd /K /c\\machine /m "Brother DCP-128C" /h "x86" /v 3

Open in new window

0
 

Expert Comment

by:sandeep1025
ID: 35208037
Hi ,

Pls refer to the site below , i am sure it will help you :

http://www.robvanderwoude.com/2kprintcontrol.php 

Regards
Sandeep
0
 
LVL 5

Author Closing Comment

by:MacGyver80
ID: 35208123
Thanks for refreshing my memory on this.   Great assistance and prompt
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Migration of Exchange mailbox can be done with the ExProfre.exe tool. But at times, when the ExProfre.exe tool migrates the Exchange Server user profile, it results in numerous synchronization problems. Synchronization error messages appear in the e…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
Suggested Courses

765 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