I was going to use a check on OU, for mapping printers for users in that spesific OU.

ps. I am getting the error code 2 when using setdefaultprinter, any idea ?

This is my script :

IF INGROUP ("Stamsund")
If AddPrinterConnection ("\\aks01\hp4200-stamsund") = 0
? "Added printer connection...."
endif
SetDefaultPrinter("\\aks01\hp4200-stamsund")
? "Set default printer to HP LaserJet 4...."


Edited by Trygve (2005-11-17 04:10 PM)