Welcome to the board, Susan. The Post link is sitting next to the Previous, Index, Next, Expand,and Collapse links. Please be sure to visit the FAQ forum for some helpful information on getting started with KiX.
Now, to help you with your immediate problem. It looks like you haven't used the EnumGroup function properly. I don't think you need to use it anyway. Here is a re-write of your code to map shares based off of group membership...
Code:
Dim $server1, $server2
; *** assign values to the variables here ***
$server1 = "lantestsvr"
$server2 = "lantestsvr"
$dom = "lantest"
IF InGroup("Accounting","lantest\Accounting")
USE U: "\\$server1\groups\accounting"
ENDIF
IF InGroup("FoodBeverage","lantest\FoodBeverage")
USE V: "\\$server1\groups\foodbeverage"
ENDIF
IF InGroup("HumanResource","lantest\HumanResource")
USE W: "\\$server1\groups\humanresource"
ENDIF
IF InGroup("Programs","lantest\Programs")
USE H: "\\$server1\groups\programs"
ENDIF
USE Q: "\\$server1\public"
EXIT