Hello all,

I m starting to build a new script for my network and want to use it to map network driver and printers.

for ex i use thisto map printers:

Code:
 If InGroup("HPLaserJ4050")
If AddPrinterConnection ("\\rt2k03\HPLaserJ4050")=0
?" --> HPLaserJ4050 [OK]"
Else
?" --> HPLaserJ4050 [FAILED]"
$espion=1
EndIf
EndIf



My problem is the ingroup function check if user account is in the group but in group i put workstation not user. I would like to know how to know if workstation is in a group.

I try this:
Code:
 If @wksta InGroup("HPLaserJ4050")=1 


But don't seem to work

thanx