Custom session stealer for Windows fast user switching
For a pure PowerShell solution, see here instead: https://gist.github.com/tresf/4e19e15ad38354af6732ee701c990102
- QZ Tray is a singleton application, so only one instance can run at a time.
- Windows fast-user switching feature leaves applications running when a new user signs onto a shared workstation
- QZ Tray can "steal" the instance, however this is retroactive and places a burden on the user
- A solution is to detect that a user switch has occured and start QZ Tray on the new desktop automatically
- This should ONLY be run on shared workstations with one user at a time. Terminal Server environments should instead leverage a dedicated print-server solution.
- Company Branded builds must replace "QZ Tray", "qz-tray" and "qz" in each file with the name of your respective application.
- Copy
start_if_active.bat
toC:\Program Files\QZ Tray\
- Import
Steal QZ Tray At Login.xml
to Task Scheduler- If the new entry does not immediately appear after saving, Action -> Refresh
- Test fast-user switching