I am receiving this message when our users are logging onto to the network:
ERROR: error in USE statement! Script: \\maindc1\Netlogon\kixtart.kix line ;82
Below is a current copy of our Kix Script. I had made some changes in the script because we have retired some of our servers and have moved files and programs to new servers. We are currently running Server 2003 and the Kix is Kixtart 2001. I made changes earlier in the summer to our kix script for two of the schools' new servers and did not receive this message. On the particular line 82 that is giving me this error, I have no changes to this part of the script. I'm fairly new at KIX but I have made changes in the past and have not received these errors...
We are also running this particular script through Active Directory Users and computers.
Thanks Suzanne McClelland Page Unified School District #8
here is the copy of our kix script: Code:
; KIXTART.KIX ; ; Logon Script for entire District ; ; ; Author: Denise Hatcher ; Creation Date: 04-11-03 ; Modified by: Suzanne McClelland ; Date Modified: 08-03-06 ; ***** Notice always put quotes around UNC's with a $ in it. *** ; ; ; ;-------------- Mappings for H:Drive ----------------- ; ;------------------ Set Variables ---------------------
;---------- Set Group Var based on Users home site ------------
IF INGROUP("UsersHS") $SiteServer=$Sanddevil3 $SiteExt="HS"ENDIF
IF INGROUP("UsersMS") $SiteServer=$Panthers3 $SiteExt="MS" ENDIF
IF INGROUP("UsersLV") $SiteServer=Eagles3 $SiteExt="LV" ENDIF
IF INGROUP("UsersDV") $SiteServer=$Bobcats3 $SiteExt="DV" ENDIF
IF INGROUP("UsersDO") $SiteServer=$Admin $SiteExt="DO" ENDIF
IF INGROUP("Domain Admins") $SiteServer=$Tech2 $SiteExt="TE" ENDIF
$HomeDir=$SiteServer+$UserName+$Extension
USE H: $HomeDir
; ;-------------- Mappings based on Member Groups ----------------- ;The next area is used to connect to network resources and ;File shares based on group the User is a Member of. ; ; ;------------------All SASI Mappings -----------------
IF INGROUP("SASI") USE P: "\\Panthers\SasiXP$" USE Q: "\\Bobcats\SasiXP$" USE R: "\\Eagles\SasiXP$" USE S: "\\SandDevil\SasiXP$"
Copy "\\sanddevil\DISasi$\SASI-S~1.LNK" "C:\Documents and Settings\" + $username + "\Desktop"
ENDIF
; ---------------- Technology ------------
IF INGROUP("Domain Admins") USE F: "\\Tech2\APPS$" USE I: "\\Tech2\Images$" USE J: "\\Bobcats3\Images$" USE K: "\\Eagles3\Images$" USE L: "\\Panthers\Images$" USE M: "\\SandDevil3\Images$" USE N: "\\Tech2\Nas$"
ENDIF
; ----------------District Office------------
IF INGROUP("UsersDO") USE F: "\\Admin\APPS" ENDIF
IF INGROUP("DOCommon") USE I: "\\Admin\DO$" ENDIF
IF INGROUP("HRCommon") USE J: "\\Admin\HR$" ENDIF
IF INGROUP("PerformNow") USE V: "\\Admin\SecureApps$" ENDIF
IF INGROUP("Administration") USE G: "\\Admin\DOAdmin$" ENDIF
IF INGROUP("Transportation") USE T: "\\Admin\Trans$" ENDIF
; ---------------- High School Drive Mappings ------------
IF INGROUP("UsersHS") USE F: "\\SandDevil3\APPS" USE U: "\\SandDevil\SearchPlus$"
Copy "F:\HSCDTwr\SEARCH~1.LNK" "C:\Documents and Settings\" + $username + "\Desktop" ENDIF
IF INGROUP("SasiHS") USE S: "\\SandDevil\SasiXP$"
Copy "F:\HSCDTwr\ATTEND~1.LNK" "C:\Documents and Settings\" + $username + "\Desktop" ENDIF
IF INGROUP("UsersHS") AND INGROUP("Teachers") USE G: "\\SandDevil3\HSTeachers$" ENDIF
IF INGROUP("UsersHS") AND INGROUP("Librarians") USE T: "\\SandDevil\TextLink$" ENDIF
;------------------Middle School Drive Mappings ---------------------
IF INGROUP("UsersMS") USE F: "\\PANTHERS2\APPS" USE U: "\\PANTHERS\SearchPlus$"
Copy "F:\MSCDTwr\SEARCH~1.LNK" "C:\Documents and Settings\" + $username + "\Desktop" ENDIF
IF INGROUP("SasiMS") USE S: "\\Panthers\SasiXP$"
Copy "F:\MSCDTwr\ATTEND~1.LNK" "C:\Documents and Settings\" + $username + "\Desktop" ENDIF
IF INGROUP("UsersMS")AND INGROUP("Teachers") USE G: "\\panthers3\MSTeachers$" ENDIF
IF INGROUP("UsersMS") AND INGROUP("Librarians") USE T: "\\PANTHERS\TextLink$" ENDIF
IF INGROUP("CCC") USE M: "\\MSPAGE_CCC\CAI1" USE N: "\\MSPAGE_CCC\CAI2" USE O: "\\MSPAGE_CCC\CAI3" USE S: "\\MSPAGE_CCC\History" ENDIF
; ----------------Desert View Drive Mappings------------ IF INGROUP("UsersDV") USE F: "\\BOBCATS3\APPS" USE O: "\\bobcats\RnseServer$" USE U: "\\bobcats\SearchPlus$"
Copy "F:\DVCDTwr\SEARCH~1.LNK" "C:\Documents and Settings\" + $username + "\Desktop" Copy "F:\DVCDTwr\ARR6ST~1.LNK" "C:\Documents and Settings\" + $username + "\Desktop" ENDIF
IF INGROUP("SasiDV") USE S: "\\Bobcats\SasiXP$"
Copy "F:\DVCDTwr\ATTEND~1.LNK" "C:\Documents and Settings\" + $username + "\Desktop" ENDIF
IF INGROUP("UsersDV") AND INGROUP("Teachers") USE G: "\\bobcats3\DVTeachers$" USE O: "\\bobcats\RnseServer$"
Copy "F:\DVCDTwr\ARR6TE~1.LNK" "C:\Documents and Settings\" + $username + "\Desktop" ENDIF
; ----------------Lake View Drive Mappings------------ IF INGROUP("UsersLV") USE F: "\\EAGLES3\APPS" USE U: "\\EAGLES\SearchPlus$"
USE I: "\\EAGLES\CDROM-1$" USE J: "\\EAGLES\CDROM-2$" USE K: "\\EAGLES\CDROM-3$" USE L: "\\EAGLES\CDROM-4$" USE M: "\\EAGLES\CDROM-5$" USE N: "\\EAGLES\CDROM-6$"
Copy "F:\LVCDTwr\SEARCH~1.LNK" "C:\Documents and Settings\" + $username + "\Desktop" Copy "F:\LVCDTwr\SEARCH~1.LNK" "C:\Documents and Settings\" + $username + "\Desktop" ENDIF
IF INGROUP("SasiLV") USE S: "\\Eagles\SasiXP$"
Copy "F:\LVCDTwr\ATTEND~1.LNK" "C:\Documents and Settings\" + $username + "\Desktop" ENDIF
IF INGROUP("UsersLV") AND INGROUP("Teachers") USE G: "\\eagles3\LVTeachers$" ENDIF
I still bet that this script is not the erroring one. why? because the error is not just error but it is a crash. and if script crashes, there has to be something fundamentally wrong, on the line given by kixtart. and there is not in this one.
suzanne, for test purposes, download one of the kixtart 4.5x releases and run the script with it. the error reporting has changed slightly from the days of kix 2001 and the error given might prove a bit more informative.
Registered: 2005-12-07
Posts: 953
Loc: Stockholm, Sweden.
Belive me when I say this, but the gnu's around here crawes for troubleshooting, they are a bit too good at it, so problems don't drop in that often anymore (most true anyway =). Guessing that was the issue, glad to see it fixed.
Maybe Eagles3 must have a preceeding $-sign to refer to the variable Code: --------------------------------------------------------------------------------