+ Post New Thread
Results 1 to 6 of 6
Office Software Thread, deleting old printers. in Technical; Need some help here,the old printers that no longer exist on the network(server 2003) still appear when selecting a printer,how ...
  1. #1
    MrPstv's Avatar
    Join Date
    Jun 2007
    Location
    Birmingham
    Posts
    267
    Thank Post
    32
    Thanked 13 Times in 9 Posts
    Rep Power
    17

    deleting old printers.

    Need some help here,the old printers that no longer exist on the network(server 2003) still appear when selecting a printer,how would i go about deleting these printers from Office 2003.

  2. #2

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,845
    Thank Post
    876
    Thanked 1,680 Times in 1,460 Posts
    Blog Entries
    12
    Rep Power
    444
    Have you removed the printer in controll panel?

    Z

  3. #3
    MrPstv's Avatar
    Join Date
    Jun 2007
    Location
    Birmingham
    Posts
    267
    Thank Post
    32
    Thanked 13 Times in 9 Posts
    Rep Power
    17
    Printers deleted from control panel. still visible in office.

  4. #4
    MrPstv's Avatar
    Join Date
    Jun 2007
    Location
    Birmingham
    Posts
    267
    Thank Post
    32
    Thanked 13 Times in 9 Posts
    Rep Power
    17
    When users logon thats when the printers are still visible.

  5. #5
    RichCowell's Avatar
    Join Date
    Dec 2005
    Location
    PR7, Lancashire
    Posts
    450
    Thank Post
    72
    Thanked 74 Times in 63 Posts
    Rep Power
    30
    I had a similar problem, and found the following that seemed to work nicely for us:

    Code:
    @Echo Off
       If Not %1'==/?' Goto Begin
       Echo Removes Windows NT's printers (Registry-settings and printer driver's files).
       Echo.
       Echo %~n0
      (Goto :EOF)
      :Begin
      (Echo [Version]
       Echo Signature = "$Windows NT$"
       Echo.
       Echo [DefaultInstall]
       Echo DelReg = DelReg
       Echo AddReg = AddReg
       Echo.
       Echo [DelReg]
       Echo HKLM,"SYSTEM\CurrentControlSet\Control\Print\Printers"
       Echo HKLM,"SYSTEM\CurrentControlSet\Control\Print\Environments\Windows NT x86\Drivers\Version-2"
       Echo HKLM,"SYSTEM\CurrentControlSet\Control\Print\Environments\Windows NT x86\Drivers\Version-3"
       Echo HKCU,"Printers\Connections"
       Echo HKCU,"Software\Microsoft\Windows NT\CurrentVersion\PrinterPorts"
       Echo HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Providers\LanMan Print Services\Servers"
       Echo HKLM,"SYSTEM\ControlSet001\Control\Print\Monitors\Standard TCP/IP Port\Ports"
       Echo HKLM,"SYSTEM\CurrentControlSet\Control\Print\Monitors\Standard TCP/IP Port\Ports"
       Echo.
       Echo [AddReg]
       Echo HKLM,"SYSTEM\CurrentControlSet\Control\Print\Printers","DefaultSpoolDirectory",,,
       Echo HKLM,"SYSTEM\CurrentControlSet\Control\Print\Printers","DefaultSpoolDirectory",,"%%SystemRoot%%\System32\spool\PRINTERS"
       Echo HKLM,"SYSTEM\CurrentControlSet\Control\Print\Environments\Windows NT x86\Drivers\Version-2",,,
       Echo HKLM,"SYSTEM\CurrentControlSet\Control\Print\Environments\Windows NT x86\Drivers\Version-2","Directory",,"2"
       Echo HKLM,"SYSTEM\CurrentControlSet\Control\Print\Environments\Windows NT x86\Drivers\Version-2","MajorVersion",%%REG_DWORD%%,2
       Echo HKLM,"SYSTEM\CurrentControlSet\Control\Print\Environments\Windows NT x86\Drivers\Version-2","MinorVersion",%%REG_DWORD%%,0
       Echo HKLM,"SYSTEM\CurrentControlSet\Control\Print\Environments\Windows NT x86\Drivers\Version-3",,,
       Echo HKLM,"SYSTEM\CurrentControlSet\Control\Print\Environments\Windows NT x86\Drivers\Version-3","Directory",,"2"
       Echo HKLM,"SYSTEM\CurrentControlSet\Control\Print\Environments\Windows NT x86\Drivers\Version-3","MajorVersion",%%REG_DWORD%%,2
       Echo HKLM,"SYSTEM\CurrentControlSet\Control\Print\Environments\Windows NT x86\Drivers\Version-3","MinorVersion",%%REG_DWORD%%,0
       Echo HKCU,"Printers\Connections"
       Echo HKCU,"Software\Microsoft\Windows NT\CurrentVersion\PrinterPorts"
       Echo HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Providers\LanMan Print Services\Servers"
       Echo HKLM,"SYSTEM\ControlSet001\Control\Print\Monitors\Standard TCP/IP Port\Ports"
       Echo HKLM,"SYSTEM\CurrentControlSet\Control\Print\Monitors\Standard TCP/IP Port\Ports"
      Echo.
       Echo [Strings]
       Echo REG_SZ         = 0x00000000
       Echo REG_MULTI_SZ   = 0x00010000
       Echo REG_EXPAND_SZ  = 0x00020000
       Echo REG_BINARY     = 0x00000001
       Echo REG_DWORD      = 0x00010001)>%TEMP%.\$%~n0.inf
       If Not Exist %TEMP%.\$%~n0.inf (
         Echo Can not write to: %TEMP%.\$%~n0.inf
         Goto :EOF)
       Echo Remove all printers on %COMPUTERNAME%
       %SystemRoot%\system32\net.exe STOP SPOOLER
       %SystemRoot%\system32\rundll32.exe setupapi,InstallHinfSection DefaultInstall 128 %TEMP%.\$%~n0.inf
       Del %TEMP%.\$%~n0.inf
       For %%F In (%SystemRoot%\system32\spool\drivers\w32x86) Do (
         %SystemRoot%\system32\attrib.exe -r -s -h %%F\*.* /S
         Del /Q /S %%F\*.*)
       %SystemRoot%\system32\net.exe START SPOOLER

  6. Thanks to RichCowell from:

    MrPstv (10th September 2008)

  7. #6
    MrPstv's Avatar
    Join Date
    Jun 2007
    Location
    Birmingham
    Posts
    267
    Thank Post
    32
    Thanked 13 Times in 9 Posts
    Rep Power
    17
    tried it on a single machine ,worked fine,thanks again.

SHARE:
+ Post New Thread

Similar Threads

  1. Prevent Deleting My Documents
    By sLiDeR in forum Windows
    Replies: 4
    Last Post: 22nd August 2008, 03:38 PM
  2. deleting profiles
    By Millsy79 in forum Windows
    Replies: 7
    Last Post: 31st July 2008, 07:40 PM
  3. Deleting Roaming Profiles
    By Neville in forum Windows
    Replies: 9
    Last Post: 11th March 2008, 10:33 AM
  4. Deleting Vista
    By Zoom7000 in forum Windows Vista
    Replies: 3
    Last Post: 9th July 2007, 03:54 AM
  5. Deleting profiles on server
    By pinemarten in forum General Chat
    Replies: 4
    Last Post: 29th August 2006, 08:44 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
  •