Page 2 of 2 <12
Topic Options
#28694 - 2002-09-10 10:15 PM Re: INGROUP
Wolven Offline
Fresh Scripter

Registered: 2002-09-10
Posts: 8
Hello Kathy I just got my INGROUP problem working and maybe my fix will work for you. I have multiple OS's as well. I have a LOGIN.BAT file executing my KIX script, as follows;

LOGIN.BAT
@echo off
Rem Branched startup script for Kixtart.
Rem Windows XP drops all parameters after EXE if %0 is used.
Rem %0\..\ is only required for Windows 95, 98, and Me.
Rem Detect OS (NT or other)
if (%OS%) == (Windows_NT) goto NT_XP

:9x
%0\..\wKix32.exe testsmh.kix
goto end

:NT_XP
wkix32.exe test.kix
:end

End LOGIN.BAT

Begin TEST.KIX

SELECTCASE InGroup("Group") $Drive="drive letter" $SHARE="\\servername\share" ? "Mapping drive $Drive to $Share" Use "$Drive:" /Delete Use "$Drive:" $ShareIf @error = 0 ? " Map Successful" eLSE ? " Error mapping drive $Drive to $Share" EndIF $Drive="drive letter" $Share="\\servername\share" ? "Mapping drive $Drive to $Share" Use "$Drive:" /Delete Use "$Drive:" $ShareIf @error = 0 ? " Map Successful" eLSE ? " Error mapping drive $Drive to $Share" EndIFENDSELECT

--------------------------------------------------------------------------------

FYI for other novices; Each "GROUP" must have only a single CASE statement following the SELECT statemet with all the subsequent drive mappings underneath. Only use the "ENDSELECT" statement at the very end of your script.

Try this logic and apply it to your situation, I hope this helps.

Top
#28695 - 2002-09-10 10:18 PM Re: INGROUP
Wolven Offline
Fresh Scripter

Registered: 2002-09-10
Posts: 8
Sorry about the KIX dump, trying again:
code:
SELECT
CASE InGroup("GROUP")
$Drive="DRIVE LETTER"
$SHARE="\\SERVERNAME\SHARE"
? "Mapping drive $Drive to $Share"
Use "$Drive:" /Delete
Use "$Drive:" $Share
If @error = 0
? " Map Successful"
eLSE
? " Error mapping drive $Drive to $Share"
EndIF

$Drive="DRIVE LETTER"
$Share="\\SERVERNAME\SHARE"
? "Mapping drive $Drive to $Share"
Use "$Drive:" /Delete
Use "$Drive:" $Share
If @error = 0
? " Map Successful"
eLSE
? " Error mapping drive $Drive to $Share"
EndIF

ENDSELECT

End KIX script

CASE: per group
SELECT:Beginning of Group delineation
ENDSELECT: End of script file.

Once again, hope this helps

{edit} Bullock - Added code tags

[ 10. September 2002, 22:26: Message edited by: Howard Bullock ]

Top
#28696 - 2002-09-10 11:00 PM Re: INGROUP
Kathy Offline
Getting the hang of it

Registered: 2002-09-09
Posts: 96
Loc: Marshall, TX
Thanks everyone for your help. There is a KIXTART.LOG that I found that helped a lot. With the information in it and your help I have INGROUP running.
_________________________
Stupid is forever - Ignorance can be fixed.

Top
#28697 - 2002-09-10 11:02 PM Re: INGROUP
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
What was the ultimate fix? Was it the Local Groups under 9x?

It maybe helpful for future troubleshooting sessions.

Thanks!

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

Top
#28698 - 2002-09-10 11:03 PM Re: INGROUP
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Kathy,
Please post the error and the solution so others that come across this thread later may learn from it.

Thanks
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#28699 - 2002-09-11 09:28 PM Re: INGROUP
Kathy Offline
Getting the hang of it

Registered: 2002-09-09
Posts: 96
Loc: Marshall, TX
1. Be Sure the user's PC is connecting to the correct domain. The one I was testing was set up long ago when there was a workgroup domain and it was attaching to that domain when it should have been attaching to the xx domain.

2. Be sure the Kix32.exe pgm resides on local hard drive and the dlls are in the c:\windows\system folder...see the instructions for installing on win9X pc.

3. Be sure the KXRPC service is running on all DCs.

4. REALLY HELPFULL was the kixtart.log that is found on the local HD. It pointed me the right direction.
_________________________
Stupid is forever - Ignorance can be fixed.

Top
#28700 - 2002-09-11 09:34 PM Re: INGROUP
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Kathy,

What was in the KIXTART.LOG that was insightful?

Just curious.

Thanks!

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

Top
#28701 - 2002-09-11 09:36 PM Re: INGROUP
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
kathy, what I read from this...

the actual solution was found with help of kixtart.log which showed the domain mismatch.

the others seemed to be irrelevant in this issue...
am I right?
_________________________
!

download KiXnet

Top
#28702 - 2002-09-11 10:51 PM Re: INGROUP
Kathy Offline
Getting the hang of it

Registered: 2002-09-09
Posts: 96
Loc: Marshall, TX
That is true. But if you are a novice like I am, I like to know all that I need to do and or check to be sure I have everything in order to make kixtart work. I thought others might like to know.
_________________________
Stupid is forever - Ignorance can be fixed.

Top
#28703 - 2002-09-11 11:00 PM Re: INGROUP
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
>Kathy,

>What was in the KIXTART.LOG that was insightful?

>Just curious.
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#28704 - 2002-09-12 03:21 PM Re: INGROUP
Kathy Offline
Getting the hang of it

Registered: 2002-09-09
Posts: 96
Loc: Marshall, TX
Messages about what was going on while kixtart was trying to run. "Cannot retrieve user's domain info", etc.
_________________________
Stupid is forever - Ignorance can be fixed.

Top
#28705 - 2002-09-12 09:42 PM Re: INGROUP
Wolven Offline
Fresh Scripter

Registered: 2002-09-10
Posts: 8
Just FYI- To save time and effort on copying the KIXTART files on each 9x system. You can call the KIXTART executable from a batchfile as long as yo u have all the appropriate files in the NETLOGON share on the Domain Controllers you're logging into.

Code:
%0\..\wKix32.exe kix.script

For multiple OS's executing KIXTART.

Rem Detect OS (NT or other)
if (%OS%) == (Windows_NT) goto NT_XP

:9x
%0\..\wKix32.exe kix.script
goto end

:NT_XP
wkix32.exe kix.script
:end

Top
#28706 - 2002-09-12 09:51 PM Re: INGROUP
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
A word of caution on Wintendos...
When using WKIX32, always call it with a Start /W

Topic: Kix32 crashing periodically on Win98
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#28707 - 2002-10-31 08:15 AM Re: INGROUP
jbastete Offline
Fresh Scripter

Registered: 2002-06-23
Posts: 17
Loc: Houston
Yes Please post your solution. We are having the same problems. And I am thinking of rewriting our login scripts in vbs if I can't get this one figured out. Thank everyone.
_________________________
Net Admin

Top
#28708 - 2002-10-31 08:19 AM Re: INGROUP
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
jbastete, I understood I already replied into your previous post.
and, here the solution is before your eyes and still you keep on posting and digging up old topics.

if you feel that you can do better with vbs, do, but as far as I know your problem has nothing to do with the language.
even though you write it as exe it should fail if you don't do as recommended.

so, could you just read the posts and FAQ on the problem.
maybe even take couple of deep breaths.
_________________________
!

download KiXnet

Top
#28709 - 2002-10-31 04:29 PM Re: INGROUP
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
And read ABC's of KiXtart board etiquette and message to new forum users
_________________________
There are two types of vessels, submarines and targets.

Top
Page 2 of 2 <12


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

Who's Online
0 registered and 259 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.112 seconds in which 0.039 seconds were spent on a total of 13 queries. Zlib compression enabled.

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