first I suggest you change the use lines to be kix.
what I means is:
IF InGroup("Accounts") RUN "net use g: \\ServerX\accounts"
ENDIF

is the same as:
IF InGroup("Accounts") use g: "\\ServerX\accounts"
ENDIF
_________________________
!

download KiXnet