One of my register computers have some weird additional display drivers in which when the computer is put to sleep, the additional display port is closed leaving the customer display internet explorer window to move back to the main screen. To counter this, In my case I can simply close Internet Explorer and when the next print job to the customer display is done it will update to the correct monitor. I have a very simple batch script to run to fix this problem.
C:/SambaFiles/ I have a file called
The contents of this batch file is
taskkill /im iexplore.exe exit
In samba I have an action
And I call this action whenever a user logs in, as generally when someone logs in the customer wont be present in my case.
This works perfectly for my setup