Solved

Can not delete printer

Posted on 2011-09-07
3
325 Views
Last Modified: 2012-08-13
I was remaning a printer on the server 2003 print server, guess I messed up the name because now I can not delete it and no one can print to it, I can ping it by IP.
How do I delete this printer?
printe.PNG
0
Comment
Question by:Hubman
3 Comments
 

Accepted Solution

by:
thunder88 earned 400 total points
ID: 36497650
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colInstalledPrinters =  objWMIService.ExecQuery _
    ("Select * from Win32_Printer Where PortName ='IP_10.1.10.16'")
For Each objPrinter in colInstalledPrinters
    objPrinter.Delete_
Next

open notepad copy and paste the above code and save as whatever .vbs

change the ip address with the ip address of your printer which you want to delete

close and double click the .vbs file.

hope this'll resolve your problem.
0
 
LVL 11

Assisted Solution

by:madhatter5501
madhatter5501 earned 100 total points
ID: 36497658
try this from http://social.technet.microsoft.com/Forums/en-US/itprovistaprinting/thread/2d7f6282-3f20-43ff-a897-26db99585c1f/

1) Go to Control Panel

2) Select System and Maintenance

3) Select Administrative Tools

4) Double-click on Services

5) In the list of services, scroll down until you find one called "Print Spooler"

6) Right-click on "Print Spooler" and select "Restart"

7) The "deleted" jobs will disappear and any queued jobs in your print queue will print
0
 
LVL 1

Author Closing Comment

by:Hubman
ID: 36497696
Your script worked...Thanks
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

A quick step-by-step overview of installing and configuring Carbonite Server Backup.
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

757 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

19 Experts available now in Live!

Get 1:1 Help Now