Tim Grech
Lurker
Registered: 2003-03-21
Posts: 4
Loc: Sydney, Australia
|
I am new to Kixtart. Our IT consultant (who we pay heaps) has installed kixtart for our default printer scripting.
All of a sudden two organisational units' computers (W2kServer AD) sometimes won't default to their designated printer. They default to usually two other particular printers in our work place (of at least 10-15).
The script looks OK to me, here it is in full as requested ************************************************* ;XXXX Logon Script 10/9/01 Created XXXXX XXXXXXXXXXXX" ;modified 13/11/01
if @wksta = "lib-1" goto "library" else if @wksta = "lib-2" goto "library" else if @wksta = "lib-3" goto "library" else if @wksta = "lib-4" goto "library" else if @wksta = "lib-5" goto "library" else if @wksta = "lib-6" goto "library" else if @wksta = "lib-7" goto "library" else if @wksta = "lib-8" goto "library" else if @wksta = "lib-9" goto "library" else if @wksta = "lib-10" goto "library" else if @wksta = "lib-11" goto "library" else if @wksta = "lib-12" goto "library" else if @wksta = "lib-13" goto "library" else if @wksta = "lib-14" goto "library" else if @wksta = "lib-15" goto "library" else if @wksta = "lib-16" goto "library" else if @wksta = "lib-17" goto "library" else if @wksta = "lib-18" goto "library" else if @wksta = "lib-19" goto "library" else if @wksta = "lib-20" goto "library" else if @wksta = "lib-21" goto "library" else goto "next"
:next if @Wksta = "libLoft-1" goto "loft" else if @wksta = "libLoft-2" goto "loft" else if @wksta = "libLoft-3" goto "loft" else if @wksta = "libLoft-4" goto "loft" else if @wksta = "libLoft-5" goto "loft" else if @wksta = "libLoft-6" goto "loft" else if @wksta = "libLoft-7" goto "loft" else if @wksta = "libLoft-8" goto "loft" else if @wksta = "libLoft-9" goto "loft" else if @wksta = "libLoft-10" goto "loft" else if @wksta = "libLoft-11" goto "loft" else if @wksta = "libLoft-12" goto "loft" else if @wksta = "libLoft-13" goto "loft" else if @wksta = "libLoft-14" goto "loft" else if @wksta = "libLoft-15" goto "loft" else if @wksta = "libLoft-16" goto "loft" else if @wksta = "libLoft-17" goto "loft" else if @wksta = "libLoft-18" goto "loft" else if @wksta = "libLoft-19" goto "loft" else if @wksta = "libLoft-20" goto "Loft" else goto "next1"
:next1 if @Wksta = "E5-1" goto "e5" else if @Wksta = "E5-2" goto "e5" else if @Wksta = "E5-3" goto "e5" else if @Wksta = "E5-4" goto "e5" else if @Wksta = "E5-5" goto "e5" else if @Wksta = "E5-6" goto "e5" else if @Wksta = "E5-7" goto "e5" else if @Wksta = "E5-8" goto "e5" else if @Wksta = "E5-9" goto "e5" else if @Wksta = "E5-10" goto "e5" else if @Wksta = "E5-11" goto "e5" else if @Wksta = "E5-12" goto "e5" else if @Wksta = "E5-13" goto "e5" else if @Wksta = "E5-14" goto "e5" else if @Wksta = "E5-15" goto "e5" else if @Wksta = "E5-16" goto "e5" else if @Wksta = "E5-17" goto "e5" else if @Wksta = "E5-18" goto "e5" else if @Wksta = "E5-19" goto "e5" else if @Wksta = "E5-20" goto "e5" else goto "next2"
:next2 if @Wksta = "W9-1" goto "w9" else if @Wksta = "W9-2" goto "w9" else if @Wksta = "W9-3" goto "w9" else if @Wksta = "W9-4" goto "w9" else if @Wksta = "W9-5" goto "w9" else if @Wksta = "W9-6" goto "w9" else if @Wksta = "W9-7" goto "w9" else if @Wksta = "W9-8" goto "w9" else if @Wksta = "W9-9" goto "w9" else if @Wksta = "W9-10" goto "w9" else if @Wksta = "W9-11" goto "w9" else if @Wksta = "W9-12" goto "w9" else if @Wksta = "W9-13" goto "w9" else if @Wksta = "W9-14" goto "w9" else if @Wksta = "W9-15" goto "w9" else if @Wksta = "W9-16" goto "w9" else if @Wksta = "W9-17" goto "w9" else if @Wksta = "W9-18" goto "w9" else if @Wksta = "W9-19" goto "w9" else if @Wksta = "W9-20" goto "w9" else goto "next5"
:next3 ;if @Wksta = "admin-1" goto "admin" ;else if @Wksta = "admin-2" goto "admin" ;else if @Wksta = "admin-3" goto "admin" ;else if @Wksta = "admin-4" goto "admin" ;else if @Wksta = "admin-5" goto "admin" ;else if @Wksta = "admin-6" goto "admin" ;else if @Wksta = "admin-7" goto "admin" ;else if @Wksta = "admin-8" goto "admin" ;else if @Wksta = "admin-9" goto "admin" ;else if @Wksta = "admin-10" goto "admin" else goto "next4"
;:next4 ;if @Wksta = "admin-11" goto "admin1" ;else if @Wksta = "admin-12" goto "admin1" ;else if @Wksta = "admin-13" goto "admin1" ;else if @Wksta = "admin-14" goto "admin1" ;else if @Wksta = "admin-15" goto "admin1" ;else if @Wksta = "admin-16" goto "admin1" ;else if @Wksta = "admin-17" goto "admin1" ;else if @Wksta = "admin-18" goto "admin1" ;else if @Wksta = "admin-19" goto "admin1" ;else if @Wksta = "admin-20" goto "admin1" elso goto "next5"
:next5 if @Wksta = "LSF-2" goto "LASERJET" else if @Wksta = "ENGLISH-1" goto "LASERJET" else if @Wksta = "SOCIALSCIENCE-1" goto "LASERJET" else if @Wksta = "HISTORY-2" goto "LASERJET" else if @Wksta = "PE-1" goto "LASERJET" else if @Wksta = "SCIENCE-2" goto "LASERJET" else if @Wksta = "LANGUAGES-1" goto "LASERJET" else if @Wksta = "MATHS-2" goto "LASERJET" else if @Wksta = "TAS-1" goto "LASERJET" else if @Wksta = "HTADMIN-1" goto "LASERJET" else goto "next6"
:Next6 if @Wksta = "LSF-1" goto "LASERJET1" else if @Wksta = "ENGLISH-2" goto "LASERJET2" else if @Wksta = "SOCIALSCIENCE-2" goto "LASERJET3" else if @Wksta = "HISTORY-1" goto "LASERJET4" else if @Wksta = "PE-2" goto "LASERJET5" else if @Wksta = "SCIENCE-1" goto "LASERJET6" else if @Wksta = "LANGUAGES-2" goto "LASERJET7" else if @Wksta = "MATHS-1" goto "LASERJET8" else if @Wksta = "TAS-2" goto "LASERJET9" else if @Wksta = "HTADMIN-2" goto "LASERJET10" else goto "next7"
:Next8 MESSAGEBOX ("PLEASE CHECK YOUR PRINTER SETTINGS BEFORE PRINTING!","DEFAULT PRINTER",0,5) goto "end"
:library ADDPRINTERCONNECTION ("\\ALPHA\LIBRARY") SETDEFAULTPRINTER ("\\ALPHA\LIBRARY") MESSAGEBOX ("Your Default Printer it set to LIBRARY","DEFAULT PRINTER",0,5) goto "end"
:loft ADDPRINTERCONNECTION ("\\ALPHA\LOFT") SETDEFAULTPRINTER ("\\ALPHA\LOFT") MESSAGEBOX ("Your Default Printer it set to LOFT","DEFAULT PRINTER",0,5) goto "end"
:e5 ADDPRINTERCONNECTION ("\\ALPHA\E5") SETDEFAULTPRINTER ("\\ALPHA\E5") MESSAGEBOX ("Your Default Printer it set to E5","DEFAULT PRINTER",0,5) goto "end"
:W9 ADDPRINTERCONNECTION ("\\ALPHA\W9") SETDEFAULTPRINTER ("\\ALPHA\W9") MESSAGEBOX ("Your Default Printer it set to W9","DEFAULT PRINTER",0,5) goto "end"
:admin ADDPRINTERCONNECTION ("\\ALPHA\ADMIN") SETDEFAULTPRINTER ("\\ALPHA\ADMIN") MESSAGEBOX ("Your Default Printer it set to ADMIN","DEFAULT PRINTER",0,5) goto "end"
:admin1 ADDPRINTERCONNECTION ("\\ALPHA\ADMIN1") SETDEFAULTPRINTER ("\\ALPHA\ADMIN1") MESSAGEBOX ("Your Default Printer it set to ADMIN1","DEFAULT PRINTER",0,5) goto "end"
:w3 ADDPRINTERCONNECTION ("\\ALPHA\W3") SETDEFAULTPRINTER ("\\ALPHA\W3") MESSAGEBOX ("Your Default Printer it set to W3","DEFAULT PRINTER",0,5) goto "end"
:LASERJET SETDEFAULTPRINTER ("LASERJET") MESSAGEBOX ("Your Default Printer it set to HP LaserJet (Local)","DEFAULT PRINTER",0,5) goto "end"
:LASERJET1 SETDEFAULTPRINTER ("\\LSF-2\LASERJET") MESSAGEBOX ("Your Default Printer it set to HP LaserJet on LSF-2)","DEFAULT PRINTER",0,5) goto "end"
:LASERJET2 SETDEFAULTPRINTER ("\\ENGLISH-1\LASERJET") MESSAGEBOX ("Your Default Printer it set to HP LaserJet on ENGLISH-1)","DEFAULT PRINTER",0,5) goto "end"
:LASERJET3 SETDEFAULTPRINTER ("\\SOCIALSCIENCE-1\LASERJET") MESSAGEBOX ("Your Default Printer it set to HP LaserJet on SOCIALSCIENCE-1)","DEFAULT PRINTER",0,5) goto "end"
:LASERJET4 SETDEFAULTPRINTER ("\\HISTORY-2\LASERJET") MESSAGEBOX ("Your Default Printer it set to HP LaserJet on HISTORY-2)","DEFAULT PRINTER",0,5) goto "end"
:LASERJET5 SETDEFAULTPRINTER ("\\PE-1\LASERJET") MESSAGEBOX ("Your Default Printer it set to HP LaserJet on PE-1)","DEFAULT PRINTER",0,5) goto "end"
:LASERJET6 SETDEFAULTPRINTER ("\\SCIENCE-2\LASERJET") MESSAGEBOX ("Your Default Printer it set to HP LaserJet on SCIENCE-2)","DEFAULT PRINTER",0,5) goto "end"
:LASERJET7 SETDEFAULTPRINTER ("\\LANGUAGES-1\LASERJET") MESSAGEBOX ("Your Default Printer it set to HP LaserJet on LANGUAGES-1)","DEFAULT PRINTER",0,5) goto "end"
:LASERJET8 SETDEFAULTPRINTER ("\\MATHS-2\LASERJET") MESSAGEBOX ("Your Default Printer it set to HP LaserJet on MATHS-2)","DEFAULT PRINTER",0,5) goto "end"
:LASERJET9 SETDEFAULTPRINTER ("\\TAS-1\LASERJET") MESSAGEBOX ("Your Default Printer it set to HP LaserJet on TAS-1)","DEFAULT PRINTER",0,5) goto "end"
:LASERJET10 SETDEFAULTPRINTER ("\\HTADMIN-1\LASERJET") MESSAGEBOX ("Your Default Printer it set to HP LaserJet on HTADMIN-1)","DEFAULT PRINTER",0,5) goto "end"
:end endif **************************************************
I am assuming in the next5 bunch of statements all the printers are called LASERJET (without a number) because the printer is connected to that computer and LASERJET is the default name in LPT1 whereas in the next6 bunch of lines each printer has a number (ie LASERJET2).
It only defaults to the wrong printer sometimes and the old fuddies at my work can't handle this!
Any ideas? Sounds like a profiles problem? Do I need to add more info? Happens to all users but same computers. [ 24. March 2003, 08:33: Message edited by: Tim Grech ]
|