|
|
|||||||
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 |
||||||||
|
|
|||||||
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 ] |
||||||||
|
|
|||||||
Using WINSET.EXE and PUTINENV.EXE, you may want to look at the following article - 0120 » Solve those logon script problems. Kent |
||||||||
|
|
|||||||
RPC service is running on the Win2k PDC machine. |
||||||||
|
|
|||||||
Kathy, What version of Kixtart are we working with here? Kent |
||||||||
|
|
|||||||
v 4.11 |
||||||||
|
|
|||||||
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. |
||||||||
|
|
|||||||
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 |
||||||||
|
|
|||||||
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. |
||||||||
|
|
|||||||
Try this script and report back: code:DEBUG ON |
||||||||
|
|
|||||||
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. |
||||||||
|
|
|||||||
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 ? |
||||||||
|
|
|||||||
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 ] |
||||||||
|
|
|||||||
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? |
||||||||
|
|
|||||||
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. |
||||||||
|
|
|||||||
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:HTH,IF @inwin = 1 Kent |
||||||||
|
|
|||||||
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 |
||||||||
|
|
|||||||
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. |
||||||||
|
|
|||||||
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 |
||||||||
|
|
|||||||
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...   |
||||||||
|
|
|||||||
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. |
||||||||
|
|
|||||||
Sorry about the KIX dump, trying again: code:End KIX scriptSELECT 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 ] |
||||||||
|
|
|||||||
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. |
||||||||
|
|
|||||||
What was the ultimate fix? Was it the Local Groups under 9x? It maybe helpful for future troubleshooting sessions. Thanks! Kent |
||||||||
|
|
|||||||
Kathy, Please post the error and the solution so others that come across this thread later may learn from it. Thanks |
||||||||
|
|
|||||||
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. |
||||||||
|
|
|||||||
Kathy, What was in the KIXTART.LOG that was insightful? Just curious. Thanks! Kent |
||||||||
|
|
|||||||
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? |
||||||||
|
|
|||||||
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. |
||||||||
|
|
|||||||
>Kathy, >What was in the KIXTART.LOG that was insightful? >Just curious. |
||||||||
|
|
|||||||
Messages about what was going on while kixtart was trying to run. "Cannot retrieve user's domain info", etc. |
||||||||
|
|
|||||||
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 |
||||||||
|
|
|||||||
A word of caution on Wintendos... When using WKIX32, always call it with a Start /W Topic: Kix32 crashing periodically on Win98 |
||||||||
|
|
|||||||
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. |
||||||||
|
|
|||||||
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. |
||||||||
|
|
|||||||
And read ABC's of KiXtart board etiquette and message to new forum users |