Solved

Can not delete printer

Posted on 2011-09-07
3
329 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

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

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

New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…
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…

808 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