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.