Hello,
I have the problem that I did not get my printers mapped to %clientname%, when a client logs on the terminal server Win2003. Unfortunately, I was able to find any further help.

Workstation-printer.ini
 Code:
[Workstation1]
Printers=\\PSSERVER\Print1
Default=\\PSSERVER\Print2

[Workstation2]
Printers=\\PSSERVER\Print2;\\PSSERVER\Print-PDF
Default=\\PSSERVER\Print2


Workstation.kix
 Code:
$ID = Left (@WkSta, 12)
$PrinterList = Split(ReadProfileString('%logonserver%\NETLOGON\Wprinter.ini', $ID, 'Printers'), ';')
$DefPrinter  = ReadProfileString('%logonserver%\NETLOGON\Wprinter.ini', $ID, 'Default')
For Each $Printer in $PrinterList
  AddPrinterConnection($Printer)
Next
SetDefaultPrinter($DefPrinter)


How can I retrieve the %clientname% and then work through the appropriate ini file? With the workstation works fine.I hope you can help me.

This Host : %CLIENTNAME% ???

cu Bratenbengel


Edited by Bratenbengel (2011-06-18 11:55 AM)
_________________________
cu Bratenbengel