First.Thank you all for your answers and great help \:\)

it's:
 Code:
$computerprt = IIf(%XDClientName%,%XDClientName%,@WKSTA)
$computerprt = Left($computerprt, 6)
 


i've test it, but it doesn't work. no printers.
the XDClientName.exe works,because the variable is written.
when i launch \\server\netlogon\kix32.exe logonscript.kix from start - run
then the printers are loaded.

how to solve this?

any idea?