hi,
the script is in use at a windows server 2003, i just use the AddPrinterConnection command (without SetDefaultPrinter):
Code:
  
$pr_single_string = "\\printserver\printer"
If ADDPRINTERCONNECTION ($pr_single_string) = 0
; print
Else
? "Error="+@ERROR
Endif



Version 4.12 of KiXtart is in use.
I checked further the permissions of the user where the script is executed from, the user is local administrator on the machine...

thx!


Edited by homar76 (2005-05-11 10:22 AM)