Can this be used when linux-based thin clients are used to RDP to a Windows 2008R2 Terminal server?
 Code:
If Left(@WKSTA, 6) = "be_105"
	;Delete the printer.
	$rc = DelPrinterConnection("printer_for_room_BE")
	;Connect the printer.
	$rc = AddPrinterConnection("\\printerserver\printer_for_room_BE")
	;Set the printer as default.
	$rc = SetDefaultPrinter("printer_for_room_BE")
Else
	;Do nothing.
EndIf

Taken from:

http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=188748


The clients do have unique hostnames.


Edited by Arend_ (2017-03-31 02:22 PM)
Edit Reason: Please use code tags