Hello Ialejo and Welcome to the board.Maybe try something like this.
code:
If Ingroup ("CA-TO-GM")<>0
use J: "\\Servername\Share"
ENDIF
If Ingroup ("CA-WH-WP")<>0
use K: "\\Servername\Share"
ENDIF
QUIT
The <>0 helps to verify membership for either local or domain.
You do not appear to be doing any real checking, your code to run is outside the IF statement. KiXtart supports mapping drives without shelling out and running the NET USE command.
Without really running your code I would assume that regardless of membership... All systems that "understand" your code would map both J: and K: every logon regardless of group membership since it comes after the IF ENDIF statement.
As the code looks here, the NT/2000 machines should not be running it any better then Win9x systems. Except that they may understand the Run "Net use J: \\Servername\Share" statement and the Win9x systems are actually erroring on it.
Give the code above a try and let us know how it goes.
[ 27 December 2001: Message edited by: NTDOC ]