Hoppa till innehåll

  • Logga in via Facebook Logga in via Twitter Logga in via Windows Live Log In with LinkedIn Log In with Google      Sign In   
  • Registrera dig nu!





Foto
* * * * - 1 Betyg

How to allow a user to logout someone else from a Locked Computer

Skriven av Markus Lassfolk , i tips 08 June 2012 · 532 visningar

script logoff logout locked force log off windows 7 win7 vista
It does happen that on a shared computer, someone might have forgot to log off which prevents new users from logging on.
You can use either a Screen Saver to log off the user when it becomes active, or use a Scheduled Task which is triggered on Idle time.

Or, you can do like this. Replace the "Ease of Access" function at the Locked Screen with a Log off function.
  • Create a bat file like this
    @Echo off
    %windir%\system32\shutdown /l /f
    %windir%\logoff.exe
  • Download a "Bat to Exe" converter and run it on your bat file so you get a exe file
  • Take Ownership and grant Administrators Full Access to %windir%\system32\utilman.exe
  • Replace utilman.exe with your .exe file from Step 2
That's it. Now when a computer is locked, the user can simply press the "Easy of Access" button at the Locked Screen and it will Log off the current user and make it possible to log on to the system.

I've not tried it, but it should be possible to Deploy the .exe file to multiple computers with Group Policy Preferences so you don't have to do it manually.

Källa: windows 7 - logoff efter viss tids inaktivitet / idle





John Bryntze
Jun 25 2012 15:07
Nice, men Windows7 "Switch user" fungerar ju bra, så behövs detta?

Trackbacks för detta inlägg [ Trackback URL ]

Det finns inga Trackbacks för detta inlägg