MacGyver80
asked on
Delete a local printer from a remote computer in a domain
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!
Thanks in advanced!
ASKER
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.
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.
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
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 /?
ASKER
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
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
Hi ,
Pls refer to the site below , i am sure it will help you :
http://www.robvanderwoude.com/2kprintcontrol.php
Regards
Sandeep
Pls refer to the site below , i am sure it will help you :
http://www.robvanderwoude.com/2kprintcontrol.php
Regards
Sandeep
ASKER
Thanks for refreshing my memory on this. Great assistance and prompt
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.