Page 1 of 2 12>
Topic Options
#28674 - 2002-09-09 05:41 PM INGROUP
Kathy Offline
Getting the hang of it

Registered: 2002-09-09
Posts: 96
Loc: Marshall, TX
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
_________________________
Stupid is forever - Ignorance can be fixed.

Top
#28675 - 2002-09-09 05:43 PM Re: INGROUP
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
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 ]
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#28676 - 2002-09-09 05:47 PM Re: INGROUP
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Using WINSET.EXE and PUTINENV.EXE, you may want to look at the following article - 0120 » Solve those logon script problems.

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

Top
#28677 - 2002-09-09 05:56 PM Re: INGROUP
Kathy Offline
Getting the hang of it

Registered: 2002-09-09
Posts: 96
Loc: Marshall, TX
RPC service is running on the Win2k PDC machine.
_________________________
Stupid is forever - Ignorance can be fixed.

Top
#28678 - 2002-09-09 06:12 PM Re: INGROUP
Kdyer Offline
KiX Supporter
*****

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

What version of Kixtart are we working with here?

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

Top
#28679 - 2002-09-09 06:36 PM Re: INGROUP
Kathy Offline
Getting the hang of it

Registered: 2002-09-09
Posts: 96
Loc: Marshall, TX
v 4.11
_________________________
Stupid is forever - Ignorance can be fixed.

Top
#28680 - 2002-09-09 06:40 PM Re: INGROUP
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
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.
_________________________
There are two types of vessels, submarines and targets.

Top
#28681 - 2002-09-09 06:40 PM Re: INGROUP
Kathy Offline
Getting the hang of it

Registered: 2002-09-09
Posts: 96
Loc: Marshall, TX
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
_________________________
Stupid is forever - Ignorance can be fixed.

Top
#28682 - 2002-09-09 06:42 PM Re: INGROUP
Kathy Offline
Getting the hang of it

Registered: 2002-09-09
Posts: 96
Loc: Marshall, TX
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.
_________________________
Stupid is forever - Ignorance can be fixed.

Top
#28683 - 2002-09-09 06:46 PM Re: INGROUP
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
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

_________________________
There are two types of vessels, submarines and targets.

Top
#28684 - 2002-09-09 06:46 PM Re: INGROUP
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
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.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#28685 - 2002-09-09 06:46 PM Re: INGROUP
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
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 ?
Top
#28686 - 2002-09-09 06:48 PM Re: INGROUP
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
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 ]

Top
#28687 - 2002-09-09 10:35 PM Re: INGROUP
Kathy Offline
Getting the hang of it

Registered: 2002-09-09
Posts: 96
Loc: Marshall, TX
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?
_________________________
Stupid is forever - Ignorance can be fixed.

Top
#28688 - 2002-09-09 10:45 PM Re: INGROUP
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
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.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#28689 - 2002-09-10 12:18 AM Re: INGROUP
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
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
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#28690 - 2002-09-10 04:07 PM Re: INGROUP
bruno-France Offline
Fresh Scripter

Registered: 2002-08-30
Posts: 7
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

Top
#28691 - 2002-09-10 04:28 PM Re: INGROUP
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
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.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#28692 - 2002-09-10 09:20 PM Re: INGROUP
Kathy Offline
Getting the hang of it

Registered: 2002-09-09
Posts: 96
Loc: Marshall, TX
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
_________________________
Stupid is forever - Ignorance can be fixed.

Top
#28693 - 2002-09-10 09:32 PM Re: INGROUP
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
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...

 
_________________________
!

download KiXnet

Top
Page 1 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 248 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.117 seconds in which 0.07 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