+ Post New Thread
Results 1 to 9 of 9
General Chat Thread, RIC's Printer Script Thread / Post in General; Googling here but can't seem to find the correct link to get RIC's printer script post up, did find this ...
  1. #1

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,706
    Thank Post
    3,240
    Thanked 1,045 Times in 967 Posts
    Rep Power
    363

    RIC's Printer Script Thread / Post

    Googling here but can't seem to find the correct link to get RIC's printer script post up, did find this :

    Script to delete all network printers at logoff?

    Where @Geoff posted the link to Ric's printer post / thread but when I click on the link it takes me to the edugeek home page

    EduGeek.net - The I.T. Professionals' life line

    Asking as I originally attached a script to the same post / thread and trying to get that ( as in the vbscript that I attached to Ric's post ) back

    Thanks

  2. #2

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,706
    Thank Post
    3,240
    Thanked 1,045 Times in 967 Posts
    Rep Power
    363
    Bump - anyone ?

  3. #3

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,706
    Thank Post
    3,240
    Thanked 1,045 Times in 967 Posts
    Rep Power
    363
    I take it to mean that RIC's printer script thread / post has been deleted or removed when Edugeek upgraded to version 3 or whatever version

  4. #4


    Join Date
    Feb 2007
    Location
    51.405546, -0.510212
    Posts
    8,756
    Thank Post
    221
    Thanked 2,628 Times in 1,938 Posts
    Rep Power
    779
    Could you use the following script to delete all local printers? It's included with Windows (in %SystemRoot%\System32\Printing_Admin_Scripts\en-US).

    Code:
    Prnmngr.vbs -x

  5. #5

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,706
    Thank Post
    3,240
    Thanked 1,045 Times in 967 Posts
    Rep Power
    363
    Quote Originally Posted by Arthur View Post
    Could you use the following script to delete all local printers? It's included with Windows (in %SystemRoot%\System32\Printing_Admin_Scripts\en-US).

    Code:
    Prnmngr.vbs -x
    Was more to the point I posted my own script and was trying to get it back.

  6. #6


    Join Date
    Feb 2007
    Location
    51.405546, -0.510212
    Posts
    8,756
    Thank Post
    221
    Thanked 2,628 Times in 1,938 Posts
    Rep Power
    779
    Is this it?

    Code:
    ' Script to add network printers to workstations for staff
    '
    ' Author: Ric Charlton, 07/07/04 (amended 10/02/11 by Derek Troughton)
    '                                     
    ' Declare variables and enumerate existing printer connections
    On Error Resume Next
    
    Set WshShell = WScript.CreateObject("WScript.Shell")
    Set WshNetwork = WScript.CreateObject("WScript.Network")
    Set oPrinters = WshNetwork.EnumPrinterConnections
    
    Dim computerName
    computerName = LCase(WshNetwork.ComputerName)
    
    
    ' Debugging line> WScript.Echo "ComputerName variable: " & computerName
    
    ' Delete existing connections to network printers
    For i = 0 to oPrinters.Count - 1 Step 2
                On Error Resume Next
    		if Left(oPrinters.Item(i), 3) <> "lpt" And Left(oPrinters.Item(i), 3) <> "usb" then
                 	WshNetwork.RemovePrinterConnection oPrinters.Item(i+1), true, true
                else WScript.Echo "No network printers found"
                end if
    Next
    
    ' Add printer connections dependant upon location
    Select Case (Left(computerName, 3))
    	Case "lrc"
    		WshNetwork.AddWindowsPrinterConnection "\\norden-printers\LRC-Mono"
    		WshNetwork.SetDefaultPrinter "\\norden-printers\LRC-Mono"
    	Case "lib"
    		WshNetwork.AddWindowsPrinterConnection "\\norden-printers\LRC-Mono"
    		WshNetwork.SetDefaultPrinter "\\norden-printers\LRC-Mono"
    	Case "lea"
    		WshNetwork.AddWindowsPrinterConnection "\\norden-printers\LRC-Mono"
    		WshNetwork.SetDefaultPrinter "\\norden-printers\LRC-Mono"
    	Case "MED"
    		WshNetwork.AddWindowsPrinterConnection "\\norden-printers\English-Mono"
    		WshNetwork.SetDefaultPrinter "\\norden-printers\English-Mono"
    	Case "rep"
    		WshNetwork.AddWindowsPrinterConnection "\\norden-printers\AB-Colour"
    		WshNetwork.SetDefaultPrinter "\\norden-printers\AB-Colour"
    
    	Case Else
    		' WScript.Echo "No default printers added"
    End Select

  7. #7

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,706
    Thank Post
    3,240
    Thanked 1,045 Times in 967 Posts
    Rep Power
    363
    I meant the script I uploaded to the post that had a sub etc

  8. #8


    Join Date
    Feb 2007
    Location
    51.405546, -0.510212
    Posts
    8,756
    Thank Post
    221
    Thanked 2,628 Times in 1,938 Posts
    Rep Power
    779
    Quote Originally Posted by mac_shinobi View Post
    I meant the script I uploaded to the post that had a sub etc
    Sorry. I misread your question.

    I don't think you'll be able to find it since the link to the thread that @Geoff posted was broken prior to 2009.

    web.archive.org/web/20091220041536/http://www.edugeek.net/forums/scripts/968-script-delete-all-network-printers-logoff.html

  9. #9

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,706
    Thank Post
    3,240
    Thanked 1,045 Times in 967 Posts
    Rep Power
    363
    Cant get it restored from a backup from zero hour. Not sure if they would have been kept ?

SHARE:
+ Post New Thread

Similar Threads

  1. A Printer Script
    By Ric_ in forum Scripts
    Replies: 164
    Last Post: 1st October 2010, 10:11 AM
  2. Rics printer script by OU
    By joe90bass in forum Thin Client and Virtual Machines
    Replies: 6
    Last Post: 15th January 2009, 09:37 AM
  3. Printer Scripts
    By Gordie in forum Windows
    Replies: 1
    Last Post: 21st February 2006, 04:35 PM
  4. printer scripts again!
    By chrbb in forum Windows
    Replies: 4
    Last Post: 10th February 2006, 12:19 PM
  5. Add printer script not workling
    By mark in forum Windows
    Replies: 6
    Last Post: 15th September 2005, 10:07 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
  •