+ Post New Thread
Results 1 to 3 of 3
Scripts Thread, Getting rid of pesky AUTO printers? in Coding and Web Development; Just a quick one really... been looking at the printer scripts for sorting out printers at login but I've got ...
  1. #1
    contink's Avatar
    Join Date
    Jul 2006
    Location
    South Yorkshire
    Posts
    3,791
    Thank Post
    303
    Thanked 327 Times in 233 Posts
    Rep Power
    119

    Getting rid of pesky AUTO printers?

    Just a quick one really... been looking at the printer scripts for sorting out printers at login but I've got a slew of AUTO printers that are proving trickier to remove.

    I have a niggle that says this is solveable via GPO but in the interim if anyone has any tips for naming, etc.. to get rid of these things I'd appreciate it.

    Thanks...

    Oh and we're using WinXP SP2 workstations in a Win Server 2003 SP1 domain and using VBS in the login script..


    Edit:
    Forgot to mention that all the printers are on printservers (DLink, HPJet) and all setup on the server as local using TCP_IP ports but then shared from the server to the workstations.

  2. #2
    Guest

    Re: Getting rid of pesky AUTO printers?

    Just disable "Automatically search for network folders and printers" in the folder options of your workstations.

  3. #3
    ICT_GUY's Avatar
    Join Date
    Feb 2007
    Location
    Weymouth
    Posts
    2,276
    Thank Post
    689
    Thanked 283 Times in 204 Posts
    Rep Power
    106
    This script helped when deleting auto printers, after you have disabled auto discovery, warning it deletes ALL local printers. All VBS scripts.

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

    Set colInstalledPrinters = objWMIService.ExecQuery _
    ("Select * from Win32_Printer Where Network = FALSE")

    For Each objPrinter in colInstalledPrinters
    objPrinter.Delete_
    Next
    Set colInstalledPrinters = objWMIService.ExecQuery _
    ("Select * from Win32_Printer Where Network = FALSE")
    For Each objPrinter in colInstalledPrinters
    objPrinter.Delete_
    Next

    Script to disable auto discovery.

    Set WshShell = CreateObject( "WScript.Shell" )

    WshShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\Curr entVersion\Explorer\NoFileFolderConnection", 00000000, "REG_DWORD"
    WshShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\Curr entVersion\Explorer\Advanced\NoNetCrawling", 00000001, "REG_DWORD"

    Thought this might help.

  4. Thanks to ICT_GUY from:

    dhicks (4th February 2009)



SHARE:
+ Post New Thread

Similar Threads

  1. UPS auto shutdown
    By adamyoung in forum How do you do....it?
    Replies: 14
    Last Post: 4th July 2007, 10:50 AM
  2. Auto logoff by GPO?
    By contink in forum How do you do....it?
    Replies: 8
    Last Post: 31st March 2007, 11:12 PM
  3. Auto Updating Help
    By j17sparky in forum MIS Systems
    Replies: 9
    Last Post: 11th December 2006, 08:46 PM
  4. Auto discovery for printers and shares
    By Jon in forum Windows
    Replies: 1
    Last Post: 6th December 2006, 12:29 PM
  5. Auto Response
    By faza in forum How do you do....it?
    Replies: 2
    Last Post: 15th December 2005, 04:02 PM

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
  •