Forcing Log Off with task manager

Page 1 of 2 12 LastLast

  1. Posts : 32
    windows 10
       #1

    Forcing Log Off with task manager


    I have several windows 10 machines where people just "Lock" their systems but leave many programs up and running. I am trying to create a task in the task scheduler to "Log Off" the user even of their machine is locked but can not get it to work. It will only work if its left open but not LOCKED..

    Any help?
      My Computer


  2. Posts : 1,604
    Win 10 home 20H2 19042.1110
       #2
      My Computers


  3. Posts : 32
    windows 10
    Thread Starter
       #3

    Jacee said:
    This shows you how to do the sign out manually .. But looking for a way to do it in the task manager or similar for being idle?
      My Computer


  4. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #4

    Hello @john510,

    john510 said:
    I have several windows 10 machines where people just "Lock" their systems but leave many programs up and running. I am trying to create a task in the task scheduler to "Log Off" the user even of their machine is locked but can not get it to work. It will only work if its left open but not LOCKED..

    Are you talking about something like this? => Log Off ALL But Current User

    I hope this helps.
      My Computer


  5. Posts : 32
    windows 10
    Thread Starter
       #5

    Paul Black said:
    Hello @john510,




    Are you talking about something like this? => Log Off ALL But Current User

    I hope this helps.
    NO, I'am looking to Log off a user that locks their computer everyday rather then Logging off themselves. They always lock the computer but it still runs the programs in the backgrounds while locked.

    trying to make it kick in automatically with a task manager so I don't have to do it manually
      My Computer


  6. Posts : 31,594
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #6

    john510 said:
    ...trying to make it kick in automatically with a task manager so I don't have to do it manually
    No, not Task Manager. What you probably mean is 'is there a way to do it with Task Scheduler'. If anyone knows, it would be @Kari.
      My Computers


  7. Posts : 32
    windows 10
    Thread Starter
       #7

    Bree said:
    No, not Task Manager. What you probably mean is 'is there a way to do it with Task Scheduler'. If anyone knows, it would be @Kari.
    Sorry your correct .. Task scheduler..
      My Computer


  8. Posts : 17,661
    Windows 10 Pro
       #8

    @John, please do not VM or PM other members for help. In this case, I already got notification about your issue as @Bree mentioned me. Messaging about your issues does not help nor speed things up. If a member is willing to offer his / her assistance, they will reply as soon as they can, as they have time. This is a site based on voluntary work, things seldom happen immediately.

    Having said that, following task settings would force computer to shut down as soon as it has been idle for one hour, also when locked. Click screenshots to expand.

    General:

    Forcing Log Off with task manager-task-general.jpg

    Triggers:

    Forcing Log Off with task manager-task-triggers.jpg

    Actions:

    Forcing Log Off with task manager-task-actions.jpg

    Conditions:

    Forcing Log Off with task manager-task-conditions.jpg

    This allows users to lock PC for instance for lunch and coffee breaks (less than one hour), but if they lock PC after the workday, and it will remain idle for one hour, computer will be forced to shut down (the -f switch in shutdown command in Task Actions).

    Please notice: the built-in admin account must be enabled and have a password for this sample task to work.

    Alternatively, you could use trigger On Workstation Lock, which would then practically disable Lock function, shutting down PC whenever user locks it:

    Forcing Log Off with task manager-image.png

    Kari
      My Computer


  9. Posts : 32
    windows 10
    Thread Starter
       #9

    Kari said:
    @John, please do not VM or PM other members for help. In this case, I already got notification about your issue as @Bree mentioned me. Messaging about your issues does not help nor speed things up. If a member is willing to offer his / her assistance, they will reply as soon as they can, as they have time. This is a site based on voluntary work, things seldom happen immediately.

    Having said that, following task settings would force computer to shut down as soon as it has been idle for one hour, also when locked. Click screenshots to expand.

    General:

    Forcing Log Off with task manager-task-general.jpg

    Triggers:

    Forcing Log Off with task manager-task-triggers.jpg

    Actions:

    Forcing Log Off with task manager-task-actions.jpg

    Conditions:

    Forcing Log Off with task manager-task-conditions.jpg

    This allows users to lock PC for instance for lunch and coffee breaks (less than one hour), but if they lock PC after the workday, and it will remain idle for one hour, computer will be forced to shut down (the -f switch in shutdown command in Task Actions).

    Please notice: the built-in admin account must be enabled and have a password for this sample task to work.

    Alternatively, you could use trigger On Workstation Lock, which would then practically disable Lock function, shutting down PC whenever user locks it:

    Forcing Log Off with task manager-image.png

    Kari
    Ok sorry for the message then. I appreciate the response here I will give it a try. Thank you
      My Computer


  10. Posts : 17,661
    Windows 10 Pro
       #10

    john510 said:
    I appreciate the response here I will give it a try.
    I must apologize, I read your original post wrong. In Task Actions, the sample task forces the computer to shut down (shutdown -s -t 0 -f).

    If you want to just log user off, use command shutdown -l -f instead.

    Kari
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 06:19.
Find Us




Windows 10 Forums