Hello Folks

I have botched and hacked a script together so I can mount drives on clients machines. The OS are varied, Win95/98 and Win 2000. I have a mixed Domain with ADS running on a few Window 2000 servers with some NT servers.

The script works fine except INGROUP is ingnored on the Windows 2000 client. What am I doing wrong.
Also, can I get rid of the

SHELL "Winset.exe HOMEDIR=@HOMEDIR"???

from the top of the script. I believe its just for the WIn95/98 clients. Using Kix2001 v4.11.00

The rest of the script is here:

I have batch script first:

@ECHO OFF
Z:\kix32.exe /d script1.scr
EXIT

Then this is the script1.scr:

SHELL "winset.exe USERNAME=@USERID"
SHELL "Winset.exe HOMEDIR=@HOMEDIR"
BREAK ON ;(re)set Ctrl-C/Break handling
SMALL
?
"HI, @FULLNAME"
? ""@USERID
?
? "Your Logon Server:" @LSERVER
?
? "Your Password is " @PWAGE " Days Old."
?
? "Home Directory Location:"
? @Homeshr "\" @HomeDir
?
?
CLS
RUN "NET Use F: \\adv***al\apps"
RUN "NET Use H: \\adv**ta\apps"
SLEEP 5
RUN "NET USE U: \\advglobal\@USERID$"
SLEEP 10
If INGROUP("Domain Admins") RUN "Net Use O: \\advmeta\o"
ENDIF
If INGROUP("Sun") RUN "Net Use S: \\advsun\sun426"
ENDIF
SLEEP 4
CLS
RUN "\\adv***bal\interchk\w95inst\setup.exe -inl -a"
RUN "start /wait \\adv***bal\interchk\savagent.exe -update -poll 3600"
RUN "\\adv***bal\interchk\run95sag.exe -update"
sleep 4
EXIT

If you can help. Much appreciated

[Razz]

Cheers

SurfKat