It would be something like this:
code:
IF INGROUP('GroupA')
$rc=ADDPRINTERCONNECTION('\\server\printer')
ELSE
IF READVALUE('HKEY_CURRENT_USER\Printers\...','...')='...'
$rc=DELPRINTERCONNECTION('\\server\printer')
ENDIF
ENDIF

_________________________
There are two types of vessels, submarines and targets.