Here's a link to another site that uses computer group membership as well.

http://www.kixscripts.com/forum/tm.asp?m=581&p=1&tmode=1

Posted by Howard Bullock:
You will need to create a group for each printer you want to map.

For example, if your printer is named " laserjet1" on the server named " server1" then create a group called " prt_server1~laserjet1" . Place the computers that should map this printer into the group.

code:
$usr = GetObject(" WinNT://"  + @domain + " /"  + @wksta + " $$" ) 
if @error <> 0
? @serror
else
For Each $grp In $usr.Groups
$GrpName = $grp.Name
if left($GrpName, 4) = " prt_"
$printer = substr($GrpName, 5)
$printer = join(split($printer," ~" )," \" )
AddPrinterConnection(" \\" + $printer)
endif
Next
endif