#28694 - 2002-09-10 10:15 PM
Re: INGROUP
|
Wolven
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
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
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
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
|
Top
|
|
|
|
#28699 - 2002-09-11 09:28 PM
Re: INGROUP
|
Kathy
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
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
|
Top
|
|
|
|
#28702 - 2002-09-11 10:51 PM
Re: INGROUP
|
Kathy
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
KiX Supporter
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
>Kathy,
>What was in the KIXTART.LOG that was insightful?
>Just curious.
|
Top
|
|
|
|
#28704 - 2002-09-12 03:21 PM
Re: INGROUP
|
Kathy
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
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
|
|
|
|
#28707 - 2002-10-31 08:15 AM
Re: INGROUP
|
jbastete
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
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 259 anonymous users online.
|
|
|