Code:
if ingroup('ITtest')
  if  ADDPRINTERCONNECTION ('\\PRINT01\HB_LSC_4250')
   "ERROR: Failed to add printer, reason: ["+@ERROR+"] @SERROR"+@CRLF
	Else
		"Printer added successfully"+@CRLF
	EndIf
   ADDPRINTERCONNECTION ('\\PRINT01\HB_LSC_HP')
   ADDPRINTERCONNECTION ('\\PRINT01\MIS_1022')
   ADDPRINTERCONNECTION (\\PRINT01\OR_LSC_HP)
   setdefaultprinter (\\PRINT01\MIS_1022) 
   ?"  ITTest'S Printers assigned"
endif


Sample of the code. I logged in as my test user and added the above listed printer without a hitch. Logged out and back in, the printer was still there. Not a permissions issue. The above script showed no errors. The event log on the test server showed only 1 error about not creating an client printer due to drivers.


Edited by Allen (2008-05-21 10:19 PM)
Edit Reason: added code tags