Hey Mart,

I saw your post yesterday, and i was convinced that this should work.

but i've just tested it, and no printers are added, but the xdclient still works.


ps. this earlier script works, but that gives the xdclient error popup, but in that script the printers are added.
 Quote:

$ComputerPrt = IIf(%XDClientName%,%XDCLientName%,@WKSTA)
$ComputerPrt = Left($ComputerPrt, 6)

select
case $ComputerPrt = "LA-DOCK"
AddPrinterConnection ("\\VA-PRN-001\printer1")
SetDefaultPrinter("\\VA-PRN-001\printer1")



thank you so much for your effort.


Edited by arjanv (2011-06-10 12:20 PM)