Page 1 of 1 1
Topic Options
#123142 - 2004-07-16 06:28 PM ScriptLogic 5.52 broke some kix login items
tjcarst Offline
Hey THIS is FUN

Registered: 2003-09-08
Posts: 243
Loc: USA
I installed ScriptLogic 5.52 and instructed it to not remove the kix service on my domain controllers.

The following has since quit working:

Code:

if InGroup ("Educate Group","Research-Institute Group")
use r: /del
use r: "\\research\education"
endif

if ComputerInGroup ('Softmed Computers')=1
use m: /del
use m: "\\sft-01\softmed\wpdata"
use s: /del
use s: "\\sft-01\softmed"
endif

Function ComputerInGroup($group,optional $Domain)
Dim $oGrp
if not $domain $domain=@domain endif
$oGrp = GetObject("WinNT://" + $domain + "/" + $group + ",group" )
if @error exit 1 endif
if $oGrp.IsMember("WinNT://" + $domain + "/" + @wksta + "$$" )
$ComputerInGroup=1
else
$ComputerInGroup=0
endif
endfunction



No error received on the ComputerInGroup, but no mapping either. The following error results from the InGroup with two groups specified:

Script error : invalid/function call: too many parameters !
If InGroup (“Educate Group”,”Research-Institute Group”)

Anyone else have this version of ScriptLogic? I have submitted this to ScriptLogic, and will share any response I receive (if any).

tjcarst



Top
#123143 - 2004-07-16 06:37 PM Re: ScriptLogic 5.52 broke some kix login items
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Maybe when you installed the latest scriptlogic, it didn't upgrade the version of Kixtart from (whatever you had) to something newer than version 4.10, when the multiple group ingroup function was added ?

Just tried your script with Kixtart 4.02, got this message:


Script error : invalid method/function call: too many parameters !
if InGroup ("Educate Group","Research-Institute Group")


Top
#123144 - 2004-07-16 07:10 PM Re: ScriptLogic 5.52 broke some kix login items
tjcarst Offline
Hey THIS is FUN

Registered: 2003-09-08
Posts: 243
Loc: USA
I was running 4.22 and it ran fine. I was afraid ScriptLogic would downgrade my kix, so I told it to leave it alone. I could re-install ScriptLogic and see what happens, but it is just an eval and I don't know if I'll be able to purchase ScriptLogic. I hate to mess up my kix environment, it was running so beautifully.

tjcarst

Top
#123145 - 2004-07-16 07:12 PM Re: ScriptLogic 5.52 broke some kix login items
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Well, I did see your post over at scriptlogic - they're the experts so I would just sit back and wait for a response. What I would do is to dir /s for all versions of kix32.exe on your machine, then try to sort-out were scriptlogic is calling kix32.exe from, and try to fix things up under the covers.
Top
#123146 - 2004-07-16 07:19 PM Re: ScriptLogic 5.52 broke some kix login items
tjcarst Offline
Hey THIS is FUN

Registered: 2003-09-08
Posts: 243
Loc: USA
It looks like there are issues with the ComputerInGroup function in relation to how it is used by ScriptLogic. Maybe it is affecting my original kix environment as well.

http://www.scriptlogic.com/forums/display_message.asp?mid=12061

tjcarst

Top
#123147 - 2004-07-16 07:26 PM Re: ScriptLogic 5.52 broke some kix login items
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Are you using the ComputerInGroup() function ? afaik, this is just a custom SL UDF that does what it says it does, can't imagine it would have anything to do with "effecting" your environment. Might "effect" the script itself though, if it had issues.

Did you have a chance to enum your versions of kix32.exe on your machine ?

Top
#123148 - 2004-07-16 07:32 PM Re: ScriptLogic 5.52 broke some kix login items
tjcarst Offline
Hey THIS is FUN

Registered: 2003-09-08
Posts: 243
Loc: USA
Thanks, Shawn.

I made a copy of my netlogon share BEFORE installing SL 5.52, so I can see what files were changed. I have also emailed support at SL, but since this is an eval, I don't k now what kind of response I'll get.

I've since modified my kix logon script and now at least my users can map drives, but I really would rather have my kix working as it used to work. I've spend hours, days mabye, making a printer installation script that uses computer group membership to map and set default printers. It saves us a lot of time. I really can't have this broken. SL uses LPT ports for mapping, which I really don't like. I wish they'd find a way to map it without needing LPT ports. I've seen you can add custom scripts to SL, so if they get these issues ironed out, maybe I can add the ComputerInGroup to SL and have a nice way to deploy the printers without LPT ports.

Thanks for your quick responses.

tjcarst

Top
#123149 - 2004-07-16 07:42 PM Re: ScriptLogic 5.52 broke some kix login items
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
oops, im sorry - ComputerInGroup is your function. I was focusing on the error there, which is purely builtin Ingroup() related. Since your script is "bombing-out" before you even get to ComputerInGroup, still suspect that this is just a simple Kixtart versioning issue - whether SL is calling it from the netlogon share versus from some other unexpected location. Sorry for the confusion. Hope our scriptlogic friends can shed some light on this.


Top
#123150 - 2004-07-16 08:36 PM Re: ScriptLogic 5.52 broke some kix login items
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
A word of caution with ScriptLogic.. The way I avoided having problems is to create a separate Folder in the Netlogon share called SLOGIC. For example -

%logonserver%\netlogon\slogic

Then, when you "Assign Login Script" to the users, it is -
SLOGIC\SLOGIC which automatically picks up off of the login share..

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#123151 - 2004-07-16 08:53 PM Re: ScriptLogic 5.52 broke some kix login items
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Think I know what it is ... your using those friggin weird qurly-double-quotes thingies that are in some of the kixtart examples ... for example your example (from the error message):

If InGroup (“Educate Group”,”Research-Institute Group”)

try this ... edit your script and try over-typing each double-quote with another "fresh" double-quote and re-running the script.

Top
#123152 - 2004-07-16 08:59 PM Re: ScriptLogic 5.52 broke some kix login items
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
HEHEE
Keen eye there “Curly” :0
think we'll have to nickname ja Shawn “Curly” “Eagle-eye” “Basta”
I'm disappointed though that you did not plug my FAQ.


Edited by Les (2004-07-16 08:59 PM)
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#123153 - 2004-07-16 09:04 PM Re: ScriptLogic 5.52 broke some kix login items
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
lol, some other eagle-eye over at SL noticed this too ! funny thing is, if one runs with the curly quotes, a different error is generated - so now im not sure anymore.
Top
#123154 - 2004-07-17 12:15 AM Re: ScriptLogic 5.52 broke some kix login items
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
hmmm, was following the thread over at SL ... appears that Kent was right - way to go buddy !

-Shawn

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 857 anonymous users online.
Newest Members
JimDunn, fgarcia, Viginette, ManuvdWielNL, Sir_Barrington
17890 Registered Users

Generated in 0.071 seconds in which 0.025 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org