+ Post New Thread
Results 1 to 7 of 7
Windows Thread, Old printers showing in printer list in Technical; I have tried lots of scripts to remove old printers showing up in the installed printers, nothing seems to work ...
  1. #1
    ICT_GUY's Avatar
    Join Date
    Feb 2007
    Location
    Weymouth
    Posts
    2,269
    Thank Post
    673
    Thanked 283 Times in 204 Posts
    Rep Power
    106

    Old printers showing in printer list

    I have tried lots of scripts to remove old printers showing up in the installed printers, nothing seems to work well and over time their seems to accumulate a variety of defunct printers to confuse the teachers when printing.

    Has anyone found an utterly fool proof of permanently removing these old ghost printers from showing up?

    Please?

  2. #2

    Join Date
    Jul 2007
    Posts
    33
    Thank Post
    16
    Thanked 2 Times in 2 Posts
    Rep Power
    15
    Here is the vb script I used when I need to remove old printers from the clients when I had this problem, You have to add the current printers afterwards in the same script

    On Error resume next

    '''''''''''''''''''''''''''''''''''''''''''''''''' '''''''''''''''''''''''''''''''
    ' DELETE ALL Network Printers ON PC '
    ' '
    '''''''''''''''''''''''''''''''''''''''''''''''''' '''''''''''''''''''''''''''''''
    strComputer = "."

    Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")

    Set colInstalledPrinters = objWMIService.ExecQuery _
    ("Select * From Win32_Printer Where Network = True")

    For Each objPrinter in colInstalledPrinters
    objPrinter.Delete_
    Next

    '''''''''''''''''''''''''''''''''''''''''''''''''' '''''''''''''''''''''''''''''''
    ' Create Network Printers '
    ' '
    '''''''''''''''''''''''''''''''''''''''''''''''''' '''''''''''''''''''''''''''''''
    Dim oNetwork, WshNetwork
    Set oNetwork = CreateObject("Wscript.Network")

    oNetwork.AddWindowsPrinterConnection "\\server\SUITE-MONO"
    oNetwork.AddWindowsPrinterConnection "\\server\SUITE-COLOUR"
    oNetwork.SetDefaultPrinter "\\server\SUITE-COLOUR"

    Set oNetwork = nothing

  3. Thanks to sfoord from:

    ICT_GUY (30th March 2011)

  4. #3

    Join Date
    Jul 2007
    Posts
    33
    Thank Post
    16
    Thanked 2 Times in 2 Posts
    Rep Power
    15
    Just set it to run when the teacher or students logon on in GPO. This will delete all network printers on the pc, but not local ones

    Hope this helps

  5. Thanks to sfoord from:

    ICT_GUY (30th March 2011)

  6. #4

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,262
    Thank Post
    242
    Thanked 1,572 Times in 1,252 Posts
    Rep Power
    340
    2003 Resource Kit includes a Spooler Cleaner. You can also remotely clean a workstation spooler and then reboot it.

  7. Thanks to Michael from:

    ICT_GUY (30th March 2011)

  8. #5
    ICT_GUY's Avatar
    Join Date
    Feb 2007
    Location
    Weymouth
    Posts
    2,269
    Thank Post
    673
    Thanked 283 Times in 204 Posts
    Rep Power
    106
    Quote Originally Posted by Michael View Post
    2003 Resource Kit includes a Spooler Cleaner. You can also remotely clean a workstation spooler and then reboot it.
    Have you a link to how to use Cleanspl.exe via AD?

  9. #6

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,262
    Thank Post
    242
    Thanked 1,572 Times in 1,252 Posts
    Rep Power
    340
    I don't think you can to be honest.

    Just run cleanspl.exe from C:\Program Files\Windows Resource Kits\Tools on one of your servers and either manually search or enter the computer name.

    In turn type the computer name. You shouldn't need to type anything else.

  10. Thanks to Michael from:

    ICT_GUY (30th March 2011)

  11. #7
    ICT_GUY's Avatar
    Join Date
    Feb 2007
    Location
    Weymouth
    Posts
    2,269
    Thank Post
    673
    Thanked 283 Times in 204 Posts
    Rep Power
    106
    Ok that makes sense thank you!

SHARE:
+ Post New Thread

Similar Threads

  1. Unordered list not showing bullets
    By sparkeh in forum EduGeek Joomla 1.5 Package
    Replies: 12
    Last Post: 31st May 2013, 12:45 PM
  2. HELP! - Printers showing Offline on network
    By firefox_2006 in forum Hardware
    Replies: 8
    Last Post: 27th July 2011, 09:55 AM
  3. Windows 7 not showing Printers
    By CommodoreS in forum Windows 7
    Replies: 0
    Last Post: 19th November 2010, 10:53 AM
  4. Printers not showing up
    By MRT in forum Windows Server 2000/2003
    Replies: 4
    Last Post: 25th November 2009, 10:40 AM
  5. Replies: 2
    Last Post: 12th May 2009, 11:11 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •