#137592 - 2005-04-08 03:41 PM
Help With Logon Script...
|
dspent
Fresh Scripter
Registered: 2004-02-17
Posts: 6
|
For the past 7 - 8 years or so, the company I've worked for; for the last 2 years has used Kix versions like 3.xx This week, we purchased a software package that unknowingly upgraded kix on the domain controllers to 4.23...
After this, the InGroup() functionality of the login script did not work. Since noone here knows kix well enough I thought I would post our login script here in hopes that some of you script geniuses could help me figure why this script runs perfectly with Kix 3.63 and doesn't run with Kix 4.23....
The part that does not work is the drive mapping sections AFTER the home folder mapping....
Thanks, Jones
Code:
;--------------------------------------------- ; NT Login Script ; ; ; $console = setconsole("maximize") ;--------------------------------------------- ? color g+/n ? "Processing NT Login script..." ? color w/n $CurDay = @YDAYNO $User = @USERID $D = " # @time" $User1 = " # " + @USERID $ent = Chr(13) + chr(10) $Server = " # " + @Lserver
? @Lserver ? "Set time . . ." ? settime "\\hnm2kwebsrv1" ? "mlt01" settime "\\hnm2kwebsrv1"
;--------------------------------------------- ; Scripts that Log various information ;--------------------------------------------- ; ;call "script\lserver.kix" ;call "script\printer.kix" ;call "script\navupd.kix" ;call "script\mypc.kix" ;call "script\dns.kix" ; ;--------------------------------------------- ; If home directories exist, map to L ;--------------------------------------------- $Home = @HOMESHR
if len(@HOMESHR) <> 0 ? " Home directory . . ." use L: @HOMESHR endif
;--------------------------------------------- ; Group operations -- Drive mappings ;--------------------------------------------- ;--------------------------------------------- ; ESI on Schleprock ;---------------ESI--------------------------- ? "esi users" if ingroup("esi users") OR ingroup("esi admin") ? "ESI........" if @inwin=1 use h: \\shleprock\esipgm use g: \\shleprock\home use f: \\shleprock\novaf use i: \\shleprock\archive set "efdrive=f:" set "elocal=g:\@userid" set "path=h:\;g:\@userid;%path%" else use h: \\shleprock\esipgm use g: \\shleprock\home use f: \\shleprock\novaf use i: \\shleprock\archive shell "winset efdrive=f:" shell "winset elocal=g:\@userid" shell "winset path=h:\;g:\@userid;%path%" endif endif
;--------------------------------------------- ; ESIx on Schleprock ;---------------ESI--------------------------- ?"esix" if ingroup("esix") ? " ESIx..." if @inwin=1 use x: \\shleprock\esipgm use g: \\shleprock\home use f: \\shleprock\novaf use i: \\shleprock\archive set "efdrive=f:" set "elocal=g:\@userid" set "path=x:\;g:\@userid;%path%" else use x: \\shleprock\esipgm use g: \\shleprock\home use f: \\shleprock\novaf use i: \\shleprock\archive shell "winset efdrive=f:" shell "winset elocal=g:\@userid" shell "winset path=x:\;g:\@userid;%path%" endif endif
;--------------------------------------------- ; ESI Testing on Schleprock ;---------------ESI--------------------------- ?"esi test" if ingroup("esi test") ? " ESItest..." if @inwin=1 use h: \\shleprock\esipgmt use g: \\shleprock\homet use f: \\shleprock\novaft use i: \\shleprock\archivet set "efdrive=f:" set "elocal=g:\@userid" set "path=h:\;g:\@userid;%path%" else use h: \\shleprock\esipgmt use g: \\shleprock\homet use f: \\shleprock\novaft use i: \\shleprock\archivet shell "winset efdrive=f:" shell "winset elocal=g:\@userid" shell "winset path=h:\;g:\@userid;%path%" endif endif
;--------------------------------------------- ; TSI ACCESS (dw) ; Drive Mapping ;--------------------------------------------- ?"tsi access" if ingroup("TSI ACCESS") ? " TSI... " use z: \\tsiserver\tsimedrec endif
;--------------------------------------------- ; MRS Registry (dw) ; Cancer database ;---------------JCAHO------------------------- ?"MRS" if ingroup("MRS Registry") ? " MRS..." use F: \\hnm2kappsrv1\mrswin endif
;--------------------------------------------- ; MICROMEDIX ; Drive Mapping ;---------------Nurse Admin------------------- ?"micromedix" if ingroup("MICROMEDIX") use n: \\dino2\net_soft\ endif
;--------------------------------------------- ; MR Med Data on Shleprock ; Drive Mapping ;---------------Nurse Admin------------------- ?"meddata" if ingroup("MEDDATA") use G: \\shleprock\mr2win\ endif
;--------------------------------------------- ; Acorde - Optika ;---------------Document Imaging-------------- if ingroup("Document Imaging") ? " Document Imaging/Optika..." use G: \\Elroy\optika endif
;--------------------------------------------- ; Medical Staff Services ; Visual Cactus software and home directory ;---------------MEDICAL STAFF----------------- if ingroup("Medical Staff") ? " Visual Cactus..." use G: \\dino2\vc_data endif
;--------------------------------------------- ; Medical Records (dw) ; DVI Software ;--------------------------------------------- if ingroup("DVI Users") ? "DVI..." use G: \\DVI\D endif
;--------------------------------------------- ; Old Kronos Application (dw) ; ;--------------------------------------------- if ingroup("OLDKRONOS") ? "Kronos..." use k: \\hnm2kappsrv2\kronos endif
;--------------------------------------------- ; Network installation of software ;---------------Net_Soft---------------------- if ingroup("Net_Soft") ? " Net_Soft..." use N: \\dino2\net_soft endif
;--------------------------------------------- ; YOGI COMMUNITY SHARE (dw) ; DRIVE MAPPING ;---------------------------------------------
if ingroup("COMMUNITY") ? "Community....." use Y: \\yogi\community endif
;--------------------------------------------- ;APPS ON HNM2KAPPSRV2 ;--------------------------------------------- if ingroup("app02") ?" Navigator 9.18...." use S: \\hnm2kappsrv2\apps endif
;--------------------------------------------- ; Business office ; SSI Apex and Harp ;---------------SSI BUS OFC------------------- if ingroup("SSI Bus Ofc") ? " SSI..." endif
;--------------------------------------------- ; Acorde - Optika ;---------------Document Imaging-------------- if ingroup("Optika") ? " Document Imaging/Optika..." use O: \\Elroy\optika endif
;--------------------------------------------- ; Body Works for HIM ;------------------BodyWorks------------------ if ingroup("Bodyworks") ? " Bodyworks..." use P: \\rudi\grumpy endif
;--------------------------------------------- ; Setup folder ;--------------- Setup ----------------------- if ingroup("superman") ? " Mapping Setup Drives" use S: \\hnm2kwebsrv1\setup endif
;--------------------------------------------- ; APPS on Slate ;--------------- Slate Apps ------------------ if ingroup("HDM") or ingroup("Slate_Apps") ? " Slate Apps" use T: \\slate\apps endif
;--------------------------------------------- ; Landesk Client Installer ;--------------------------------------------- ;run "\\hnmsrvlds001\ldlogon\wscfg32.exe /noui" ; ;exit
exit
|
|
Top
|
|
|
|
#137594 - 2005-04-08 05:29 PM
Re: Help With Logon Script...
|
Howard Bullock
KiX Supporter
   
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
|
|
Top
|
|
|
|
#137595 - 2005-04-08 09:45 PM
Re: Help With Logon Script...
|
dspent
Fresh Scripter
Registered: 2004-02-17
Posts: 6
|
I tried prefix the group with domainname\groupname, I tried If Ingroup("group") = 1 -- didn't work If Ingroup('group') -- didn't work If InGroup('domain\group') -- didn't work...
I read those posts but is there a solution to the problem?
|
|
Top
|
|
|
|
#137597 - 2005-04-08 09:54 PM
Re: Help With Logon Script...
|
Howard Bullock
KiX Supporter
   
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
Please give us some details about your environment. Client OS versions, Domain OS versions, etc. If you have a W2K AD domain, do you have a global catalog server defined?
What package did you install that uses KiXtart 4.23?
INgroup works. We need to understand what in you environment is broken.
|
|
Top
|
|
|
|
#137598 - 2005-04-08 10:01 PM
Re: Help With Logon Script...
|
maciep
Korg Regular
   
Registered: 2002-06-14
Posts: 947
Loc: Pittsburgh
|
And I notice that you don't have quotes around the path on the use commands. When i test here for example, this throws an error
Code:
use p: \\server\share
And the following works fine
Code:
use p: "\\server\share"
|
|
Top
|
|
|
|
#137600 - 2005-04-13 05:13 PM
Re: Help With Logon Script...
|
dspent
Fresh Scripter
Registered: 2004-02-17
Posts: 6
|
nothing about upgrading kix is in the manuals.
|
|
Top
|
|
|
|
#137601 - 2005-04-13 11:29 PM
Re: Help With Logon Script...
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
IIRC, upgrading your version of KiX while running ScriptLogic is not supported. You will need to address that with them. Sorry. 
Kent
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 1471 anonymous users online.
|
|
|