Custom session stealer for Windows fast user switching
For a pure Batch solution, see here instead: https://gist.github.com/tresf/ff91bd29f1f6846c13bf6f8bc255ab55
- 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.ps1
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