Hi, having difficulties with the following script...

;Map HP12whse Printer
$SystemList = 'terminalserver','testserver','dbserver3','printserver',"
If AScan ($SystemList, @WKSTA)>=0
;Do nothing
Else
IF INGROUP("HP12whse")
If AddPrinterConnection ("\\printserver\HP12whse") = 0
? "Attach network printer \\printserver\HP12whse"
Endif
EndIf

Everything looks good but hangs up as soon as it hits "if ingroup".

Thanks.