WinExit.scr Only want to auto-logoff administrators

Posted on 2008-11-11
Last Modified: 2013-12-04
I have a few workstations that are shared. For example, on one shared workstation, it stays logged in under a restricted user account and runs our time-clock program. This is so workers can clock in and out on this PC. If a supervisor wishes to check his/her email, he/she logs the restricted user off and logs in as themselves which is an admin account on that PC. Many time, the supervisor forgets to logoff and, for security reasons, I have their screen saver come up after 10 minutes which locks the computer. When a worker comes up to clock in or out, the workstation is locked and they either have to find the supervisor or call on IT. I want to use the winexit.scr (or any other method) to logoff only these administrators after a period of inactivity. What would be even better is when it logs them off, it logs the restricted user back on automatically.

Workstation is Win XP Pro on an a domain running 2003 R2.

Any chances someone knows how to do this?

Thank you,
    1 Comment
    LVL 52

    Accepted Solution

    The screensaver is a per-user-setting. Login as admin and set winexit.scr as screensaver and you are done.
    To logon the other user automatically you could configure a logoff script for the administrative user that uses shutdown.exe -f -r -t 00 to immediately restart the computer. Configure autologon (as the restricted user) and that one will get logged in automatically after restart.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    In a recent article here at Experts Exchange (, I discussed my nine-month sandbox testing of the Windows 10 Technical Preview, specifically with respect to r…
    For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now