Hi Glenn,

Can i use a scheduled task to run when a student logs onto a windows terminal server from a linux thin client to run a kix script in elevated status to install a printer?

(From post http://www.kixtart.org/forums/ubbthreads...rue#Post197370)

The script works for me but my account is admin. This is the script that I am testing:

 Code:
;--------Start IF_ELSE.kix--------
If Left(@WKSTA, 1) = "w"
;Delete the printer.
$rc = DelPrinterConnection("PR2-A-E9-17")
;Connect the printer.
$rc = AddPrinterConnection("\\cur-prs\PR2-A-E9-17")
;Set the printer as default.
$rc = SetDefaultPrinter("\\cur-prs\PR2-A-E9-17")
Else
;Do nothing.
EndIf
;-------- end IF_ELSE.kix--------


Edited by Mart (2017-04-04 02:03 PM)
Edit Reason: Please use code tags when posting code.