#28674 - 2002-09-09 05:41 PM
INGROUP
|
Kathy
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
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 ]
|
Top
|
|
|
|
#28676 - 2002-09-09 05:47 PM
Re: INGROUP
|
Kdyer
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
|
Top
|
|
|
|
#28677 - 2002-09-09 05:56 PM
Re: INGROUP
|
Kathy
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
KiX Supporter
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Kathy,
What version of Kixtart are we working with here?
Kent
|
Top
|
|
|
|
#28679 - 2002-09-09 06:36 PM
Re: INGROUP
|
Kathy
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
|
|
|
|
#28681 - 2002-09-09 06:40 PM
Re: INGROUP
|
Kathy
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
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
|
|
|
|
#28687 - 2002-09-09 10:35 PM
Re: INGROUP
|
Kathy
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
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.
|
Top
|
|
|
|
#28689 - 2002-09-10 12:18 AM
Re: INGROUP
|
Kdyer
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
|
Top
|
|
|
|
#28690 - 2002-09-10 04:07 PM
Re: INGROUP
|
bruno-France
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
|
|
|
|
#28692 - 2002-09-10 09:20 PM
Re: INGROUP
|
Kathy
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
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 557 anonymous users online.
|
|
|