Well, the thing is the 98 computers are not in the group that get the Z mapped drive but that's not a problem i can choose a different drive letter.

I have been told here that the $ sign might causing the problem, and regarding the InGroup() i did the same thing for printers and it worked just great, here is the code.

if ingroup("Oki5300_Printer_Group")
addprinterconnection("\\dc\Oki5300")
endif

if ingroup("Oki5400_Printer_Group")
addprinterconnection("\\dc\Oki5400")
endif

if ingroup("OkiAcc_Printer_Group")
addprinterconnection("\\dc\OkiAcc")
endif