Solved

Can not delete printer

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…

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