Hi Guys,
I've noticed by searching the forums, that quite a few people have had difficulty with InGroup(), however nobody seems to be having the same problem as me!

I'm starting to recreate all my company's login scripts using kixtart, and moving away from VBS. However, sometimes when i use the InGroup() function, it doesnt recognise the logged in user as being a member of that group.
Here is my setup:

In the login script part of the user details in Active Directory, i'm first calling a batch script, which simply calls the kixscript.

Code:
 
@echo off
@Echo Starting INNOVATIONS Login Script
start /wait kix32.exe \\INNOPARK.AD\NETLOGON\KIX\KIXINNOLOGON.KIX /f



Here's an extract from my kixscript where i'm having the problems:
Code:

; ================================
; = ALL USERS =
; ================================
AT (20,22) " All User Actions"
AT (21,22) "Removing Drives: S,Z"
Use S: /DEL
Use Z: /DEL
Sleep 0.5
GoSub Blank_Line2

;--------------------------
;- MAP DRIVES -
;--------------------------
AT (21,22) "Mapping Drives: S,Z"
Use S: $SDrive
Use Z: $ZDrive
Sleep 0.5
GoSub Blank_Line2

; ================================
; = SPECIFIC USERS =
; ================================

;--------------------------
;- CUSTOMER SERVICE -
;--------------------------
If InGroup ("Customer Service")
GoSub Blank_Line1
AT (20,22) " Customer Service"

; ---- CALL CENTRE ONLY ---
If InGroup("Call Centre")
AT (21,22) "Removing Drive: Q:"
Use Q: /DEL
Sleep 0.5
GoSub Blank_line2

AT (21,22) "Mapping Drive: Q:"
Use Q: $QDrive
Sleep 0.5
GoSub Blank_Line2
EndIf

; ---- ALL OTHER CS STAFF ----
AT (21,22) "Removing Drive: T"
Use T: /DEL
Sleep 0.5
GoSub Blank_line2

AT (21,22) "Mapping Drive: T"
Use T: $TDrive1
Sleep 0.5
GoSub Blank_Line2

; ---- MAP PRINTERS ----
AT (21,22) "Mapping Printers"
If InGroup ("Call Centre")
AddPrinterConnection ($T632CS)
SetDefaultPrinter ($T632CS)
EndIf

If InGroup("CS Team Leaders")
AddPrinterConnection ($T632CSBU)
EndIf

If InGroup("CS Team Players")
AddPrinterConnection ($T632CSBU)
EndIf

If InGroup("CustAdmin")
AddPrinterConnection ($T632DataAdmin)
SetDefaultPrinter ($T632DataAdmin)
EndIf

If InGroup("Data Entry")
AddPrinterConnection ($T632Mailroom)
SetDefaultPrinter ($T632Mailroom)
EndIf

Sleep 0.5
GoSub Blank_Line2

;---- COPY SHORTCUTS ----
Copy $FoxProCS $Desktop /c
Copy $OutlookWeb $Desktop /c

EndIf



It simply won't recognise the user as being a member of the "Customer Service" group, therefor only maps drives S and Z.

In Active Directory, i can assure you that my test user account is a member of "Customer Service" and "Customer Service Team Leaders". However, when I enumerate the groups using the code below, it displays membership for "Customer Service Team Leaders" only. It's very bizzare!

Code:

$Index = 0
Do
$Group = EnumGroup($Index)
? "Member of group: " + $Group
$Index=$Index+1
Until Len($Group) = 0

Sleep 15



Can anyone think of any reason why Kixtart wouldn't be picking up the group membership? Any help what so ever would be greatly appreciated.