Kathy
(Getting the hang of it)
2002-09-09 05:41 PM
INGROUP

HELP! I cannot get INGROUP to work. I can do everything else fine. I have WIN2K server (PDC) all kixtart in \netlogon. I have users on Win98 workstations. What am I not doing correctly?

Here is copy of my testing script:

SHELL "winset.exe USERNAME=@USERID"
BREAK ON ;(re)set Ctrl-C/Break handling
COLOR r+/n
SMALL
? "USER INFORMATION"
?
AT (4,4)
"HI, @userid"
?
AT (6,4)
@FULLNAME ;full name of current user
?
AT (8,4)
@COMMENT ;user comment in User Manager
?
SLEEP 10
CLS
?
COLOR g+/n
? "WHAT TIME IS IT?"
?
? @DAY", " @DATE
?
? @TIME
?
? "This is the " @WDAYNO "the day of the week"
?
? "This is day Number " @YDAYNO " of " @YEAR
?
? "This is Day Number " @MDAYNO " of Month Number " @MONTHNO
?
? @MONTH ", " @YEAR
?
SLEEP 10
CLS
?
?
COLOR m+/n
? "COMPUTER INFORMATION"
?
? "MAC Address of your Network Card:"
? @ADDRESS
?
? "Netbios Computer Name:"
? @WKSTA
?
? "Version of Windows You are Running:"
? "1 = Windows NT, 2 = Windows 95"
? @INWIN
?
? "Your Operating System's Version Number:"
? @DOS
?
SLEEP 10
CLS
?
?
COLOR c+/n
? "NETWORK INFORMATION"
?
? "Logon Domain Name:"
? @DOMAIN
?
? "Home Directory Location:"
? @HOMESHR "\" @HOMEDIR
?
? "Directory Where Network Software Resides:"
? @LANROOT
?
SLEEP 10
CLS
?
COLOR y+/n
? "Logon Server:"
? @LSERVER ;logon server
?
? "Drive That is Redirected to \\logonserver\NETLOGON:"
? @LDRIVE
?
? "Network Software Version:"
? @LM
?
? "Your Password is " @PWAGE " Days Old."
? "The Maximum Password Age is " @MAXPWAGE " Days."
? "You Are Logged on With " @PRIV " Privileges."
?
SLEEP 10
CLS
?
?
If INGROUP("Domain Admins")
DISPLAY "\Admins.txt"
ELSE
DISPLAY "\Users.txt"
ENDIF
SLEEP 3
?
COLOR b+/n
? "Thank you for Test Driving Version " @KIX " of..."
BIG
? "KiXtart!!"
sleep 4
SMALL
MESSAGEBOX ("This Concludes This Test of the Logon Script!",
"KiXtart", 0)
EXIT


Kdyer
(KiX Supporter)
2002-09-09 05:43 PM
Re: INGROUP

Kathy,

Welcome to the board.

Are you running the KXRPC Service on your Servers for you 9x clients?

In the FAQ Section, there is an article that talks about this - KXRPC - Everything you wanted to know about KXRPC.

Kent

[ 09. September 2002, 17:45: Message edited by: kdyer ]


Kdyer
(KiX Supporter)
2002-09-09 05:47 PM
Re: INGROUP

Using WINSET.EXE and PUTINENV.EXE, you may want to look at the following article - 0120 » Solve those logon script problems.

Kent


Kathy
(Getting the hang of it)
2002-09-09 05:56 PM
Re: INGROUP

RPC service is running on the Win2k PDC machine.

Kdyer
(KiX Supporter)
2002-09-09 06:12 PM
Re: INGROUP

Kathy,

What version of Kixtart are we working with here?

Kent


Kathy
(Getting the hang of it)
2002-09-09 06:36 PM
Re: INGROUP

v 4.11

Sealeopard
(KiX Master)
2002-09-09 06:40 PM
Re: INGROUP

What exactly happens when you run the script. The way you wrote it, something must happen. For example, if you log in as domain admin, does it display the domain admin text or the domain user text? Or does KiXtart just exit with an error message? If you put DEBUG ON into the first line of your KiXtart script it'll allow you to step through the script line by line.

Kathy
(Getting the hang of it)
2002-09-09 06:40 PM
Re: INGROUP

1. Kixtart v4.11 on Win2k server \netlogon
2. Kixrpc service running
3. Users win98
4. Copy of kx*.dlls are on user's local c:\windows\system folder.
5. Copy of kx*.dlls are in \netlogon
6. Can run any script commands except INGROUP
7. INGROUP("TEST") = 1
Display "Works.txt"
ELSE
Display "No.txt"
ENDIF


Kathy
(Getting the hang of it)
2002-09-09 06:42 PM
Re: INGROUP

Everything in the script works except INGROUP.
Only one INGROUP statment. I need to pick out the users in a particular group in order to map a drive and copy an desktop icon lnk to their desktop. I can map drives and copy icons all day, just cannot get INGROUP to do it just for the ones in the group. Global group.


Sealeopard
(KiX Master)
2002-09-09 06:46 PM
Re: INGROUP

Try this script and report back:
code:
DEBUG ON
? 'Testing INGROUP function'
IF INGROUP('Domain Users')
? 'Account is in "Domain Users" group'
ELSE
? 'Account is not in "Domain Users" group'
ENDIF
? 'Press [ENTER] to continue'
gets $enter



Les
(KiX Master)
2002-09-09 06:46 PM
Re: INGROUP

Kkathy,
If there's a NetWare client, check the provider order issue.

If you don't have the KXRPC running on BDCs then that could also be the issue.


ShawnAdministrator
(KiX Supporter)
2002-09-09 06:46 PM
Re: INGROUP

Kathy, you mentioned that you have KXRPC running on your PDC ... but do you have it running on ALL you DC's, or does your domain just have the one DC ?

ShawnAdministrator
(KiX Supporter)
2002-09-09 06:48 PM
Re: INGROUP

wow - another triple !

[sorry kathy - a triple is when three members respond at the same - in this case all at 18:46]

[ 09. September 2002, 18:53: Message edited by: Shawn ]


Kathy
(Getting the hang of it)
2002-09-09 10:35 PM
Re: INGROUP

Let me try and put this clearer:
1. Win2k server PDC/SDCs running KIXRPC services
2. Users on Win98
3. Kixtart v 4.11
4. kx*.dlls are on the \netlogon and users c:\windwos\system folders.
5. All script command/functions that I have tried work except INGROUP.

Sample:
IF INGROUP("TEST")
Display "ITWORKS.txt"
ELSE
Display "DOESNOT.txt"
ENDIF

USER is in the TEST Global Group in AD.
I always get the DOESNOT.TXT file on the screen.
What am I doing wrong?


Howard Bullock
(KiX Supporter)
2002-09-09 10:45 PM
Re: INGROUP

Have you logged on AFTER changing the group membership? If you add yourself to a group after logon INGROUP doesn't see it. INGROUP works off the Token cache and user security token which contain the global group to which the use belongs.

Kdyer
(KiX Supporter)
2002-09-10 12:18 AM
Re: INGROUP

Kathy,

Did you create Local Groups in User Manager/Active Directory Users and Computers? As I remember it, it is necessary for Group Detection in Win9x. In other words the Domain Admins Local is a "member" of Domain Admins.

For example..

code:
 IF @inwin = 1
IF INGROUP("Domain Admins")
DISPLAY "\Admins.txt"
ELSE
DISPLAY "\Users.txt"
ENDIF
SLEEP 3
ELSE
IF INGROUP("Domain Admins Local")
DISPLAY "\Admins.txt"
ELSE
DISPLAY "\Users.txt"
ENDIF
SLEEP 3
ENDIF

HTH,

Kent


bruno-France
(Fresh Scripter)
2002-09-10 04:07 PM
Re: INGROUP

Don't search the ingroups don't work with the 4.11 i have write they are some days but i see you are the same answer like me "are you running kixrcp", yes ? but on all server logon.... etc..
i have not changing a word in my script and he work with the old release ! i have try with just few line but no and no INgroups cmd don't worh with users on W95 and W98
BRUNO


Les
(KiX Master)
2002-09-10 04:28 PM
Re: INGROUP

put a copy of 4.11 in a folder on the C: drive and run a test script from there. Use an out-of-the-box group like Domain Admins.

If that works, it could be a DLL version issue.

Also check network protocols and provider order.


Kathy
(Getting the hang of it)
2002-09-10 09:20 PM
Re: INGROUP

Does anyone have v4.11 INGROUP working? I have the kixrpc service running on both dcs. Message in her from Bruno says his is not working either. He says older version works ok. What version are you using that do work.

I have v4.11 w/win2k servers and win98 users. Script on win2k server /netlogon


LonkeroAdministrator
(KiX Master Guru)
2002-09-10 09:32 PM
Re: INGROUP

to kathy's question direct answer...

I have ingroup working just fine.

only difference is that I have no win9x machines on my task range. meaning, that I have successfully removed every win9x machine from our network logonscripts. there is still 2 or 3 machines with those systems but they have to manage on their own...

 


Wolven
(Fresh Scripter)
2002-09-10 10:15 PM
Re: INGROUP

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.


Wolven
(Fresh Scripter)
2002-09-10 10:18 PM
Re: INGROUP

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 ]


Kathy
(Getting the hang of it)
2002-09-10 11:00 PM
Re: INGROUP

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.

Kdyer
(KiX Supporter)
2002-09-10 11:02 PM
Re: INGROUP

What was the ultimate fix? Was it the Local Groups under 9x?

It maybe helpful for future troubleshooting sessions.

Thanks!

Kent


Les
(KiX Master)
2002-09-10 11:03 PM
Re: INGROUP

Kathy,
Please post the error and the solution so others that come across this thread later may learn from it.

Thanks


Kathy
(Getting the hang of it)
2002-09-11 09:28 PM
Re: INGROUP

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.


Kdyer
(KiX Supporter)
2002-09-11 09:34 PM
Re: INGROUP

Kathy,

What was in the KIXTART.LOG that was insightful?

Just curious.

Thanks!

Kent


LonkeroAdministrator
(KiX Master Guru)
2002-09-11 09:36 PM
Re: INGROUP

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?


Kathy
(Getting the hang of it)
2002-09-11 10:51 PM
Re: INGROUP

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.

Kdyer
(KiX Supporter)
2002-09-11 11:00 PM
Re: INGROUP

>Kathy,

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

>Just curious.


Kathy
(Getting the hang of it)
2002-09-12 03:21 PM
Re: INGROUP

Messages about what was going on while kixtart was trying to run. "Cannot retrieve user's domain info", etc.

Wolven
(Fresh Scripter)
2002-09-12 09:42 PM
Re: INGROUP

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


Les
(KiX Master)
2002-09-12 09:51 PM
Re: INGROUP

A word of caution on Wintendos...
When using WKIX32, always call it with a Start /W

Topic: Kix32 crashing periodically on Win98


jbastete
(Fresh Scripter)
2002-10-31 08:15 AM
Re: INGROUP

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.

LonkeroAdministrator
(KiX Master Guru)
2002-10-31 08:19 AM
Re: INGROUP

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.


Sealeopard
(KiX Master)
2002-10-31 04:29 PM
Re: INGROUP

And read ABC's of KiXtart board etiquette and message to new forum users