Please see the other topic post from Glenn Barnas


 Code:
If InGroup('groupname')
  If AddPrinterConnection('\\server\share') = 0
    'Added printer' ?
  EndIf
EndIf