Well I know taht I can do this :

If Ingroup("abc")
addprinterconnection("\\printserver\printshare")
EndIf

and that works but the problem for me is that I would like to do the same using the computer name cause Ingroup only accept username !!! Is there a way ?