To follow up on the printers... if you only have lines like the following...

 Code:
$RC=addprinterconnection("server\printer")


the script is unfortunately reinstalling the printer drivers each time. Checking to see if the printers are already installed can greatly decrease the time the logon script runs.

The solution is to use a UDF like Primapstate() or PrinterConnection(). PrinterConnection is newer and allows you to manage your printers by Share Name instead of by the actual name.

So using the example above...

 Code:
if not printerconnection("\\server\printer")
  $RC=addprinterconnection("\\server\printer")
endif


or
 Code:
if not printerconnection("\\server\printer")
  $RC=printerconnection("\\server\printer","add")
endif


Additional Examples are included in the header of the links below.

Primapstate() - http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=83306#Post83306
PrinterConnection - http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=203840#Post203840

How to use UDFs -
http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=81943#Post81943

The rest of the UDFs are here -
http://www.kixtart.org/forums/ubbthreads.php?ubb=postlist&Board=7&page=1




Edited by Allen (2012-01-28 10:41 PM)