Well,

I don't think you have to give user name and password to it as it will use current user credentials, this would shrink it down to a simple :

code:
if ingroup("Groupname")
use [driveletter]: "\\Server\share"
endif

hth

Jochen
_________________________