Here is the following snippet of code that is not being evaluated correctly:
Code:

IF INGROUP("Engr","Truss","Receptionist")
$RETURNVALUE = EXISTKEY("HKEY_CURRENT_USER\Printers\,,corpsrv,engr_hp1300")
IF NOT $RETURNVALUE = 0
ADDPRINTERCONNECTION("\\corpsrv\engr_hp1300")
USE LPT3: "\\corpsrv\engr_hp1300"
ENDIF
; Make sure the user can run MATLIST -- they need a .get file and it gets
; created automatically if they don't have one (copied from one that works)
IF NOT EXIST("\\corpsrv\data\batch\paths\@USERID.get")
copy \\corpsrv\data\batch\paths\jenny.get \\corpsrv\data\batch\paths\@USERID.get
ENDIF

; The program was written to use a variable that exists in Novell but not NT, so we set it here
SETM "LINAME=@USERID"
? "LINAME set to @USERID" ; for MATLIST program -- look in %L\DATA\BATCH\PATHS\username.get

; Set up drive mappings here (X will go away eventually)
USE L: \\corpsrv\engr
USE G: \\corpsrv\apps
USE Q: \\corpsrv\data
USE U: \\corpsrv\utils
use X: \\corpsrv\X
ENDIF


This is when executing the script with /f that it doesn't detect that the user is in both the Truss and Engr groups. Here is the output of "ifmember.exe" when logged in as the user:
Quote:


H:\>\\corpsrv\netlogon\IFMEMBER.EXE /list
User is a member of group CORPSRV\Domain Users.
User is a member of group \Everyone.
User is a member of group BUILTIN\Users.
User is a member of group NT AUTHORITY\INTERACTIVE.
User is a member of group NT AUTHORITY\Authenticated Users.
User is a member of group \LOCAL.
User is a member of group CORPSRV\truss.
User is a member of group CORPSRV\engr.




As far as I know this used to always work. It is happening to two of my users who are in this group, one on XP and one on W2K. I have run the script in debug mode of course and no error, it just returns with 0 and skips the section.

Thanks for any help!

Misty


Edited by Jooel (2004-12-13 08:48 PM)