Windows 10: Forcing Log Off with task manager

Discus and support Forcing Log Off with task manager in User Accounts and Family Safety to solve the problem; 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... Discussion in 'User Accounts and Family Safety' started by john510, May 16, 2021.

  1. john510 Win User

    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?

    :)
     
    john510, May 16, 2021
    #1
  2. Kari Win User

    Forcing Log Off with task manager

    @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 [​IMG]


    Triggers:


    Forcing Log Off with task manager [​IMG]


    Actions:


    Forcing Log Off with task manager [​IMG]


    Conditions:


    Forcing Log Off with task manager [​IMG]


    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 [​IMG]
     
  3. john510 Win User
    Forcing Log Off with task manager

    Ok sorry for the message then. I appreciate the response here I will give it a try. Thank you
     
    john510, May 16, 2021
    #3
  4. Kari Win User

    Forcing Log Off with task manager

    Forcing Log Off with task manager

    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.
     
Thema:

Forcing Log Off with task manager

Loading...
  1. Forcing Log Off with task manager - Similar Threads - Forcing Log Off

  2. Task Manager - Job will not run if not logged on

    in Windows 10 Software and Apps
    Task Manager - Job will not run if not logged on: I hae a batch run scheduled in Task Manager. The job always ran in Windows 10. It won't run in Windows 11.The task is run under the Admin account, and the password is stored.If I click "only run if user is logged on", while I am logged on, it runs.If I click "Run even if user...
  3. Task Manager - Job will not run if not logged on

    in Windows 10 Gaming
    Task Manager - Job will not run if not logged on: I have a batch run scheduled in Task Manager. The job always ran in Windows 10. It won't run in Windows 11.The task is run under the Admin account, and the password is stored.If I click "only run if user is logged on", while I am logged on, it runs.If I click "Run even if...
  4. no task manager and power off

    in Windows 10 Gaming
    no task manager and power off: hello, i think i have a virus on my computer,when i try to open taks manager, it says task manager has been disbled by administrator, and when i do ctrl alt r or do windows key and turn it off, the onlly option available is to lock your device does anyone know how to fix...
  5. no task manager and power off

    in Windows 10 Software and Apps
    no task manager and power off: hello, i think i have a virus on my computer,when i try to open taks manager, it says task manager has been disbled by administrator, and when i do ctrl alt r or do windows key and turn it off, the onlly option available is to lock your device does anyone know how to fix...
  6. Force Log off option

    in Windows Hello & Lockscreen
    Force Log off option: HI,The issue im facing is when the Domain password is Expired or locked user removes the the network cable and Login and plug back the network cable. so that user is able to login.Is there any way we can forcefully Logoff the user pc when the password is expired or locked?...
  7. Force Log off option

    in Windows 10 Gaming
    Force Log off option: HI,The issue im facing is when the Domain password is Expired or locked user removes the the network cable and Login and plug back the network cable. so that user is able to login.Is there any way we can forcefully Logoff the user pc when the password is expired or locked?...
  8. Force Log off option

    in Windows 10 Software and Apps
    Force Log off option: HI,The issue im facing is when the Domain password is Expired or locked user removes the the network cable and Login and plug back the network cable. so that user is able to login.Is there any way we can forcefully Logoff the user pc when the password is expired or locked?...
  9. Forcing Log Off with task manager

    in Windows 10 Support
    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...
  10. Have to Force Quit "Task Manager" Everytime

    in Windows 10 Support
    Have to Force Quit "Task Manager" Everytime: I've somewhat recently ran into this problem on my Windows 10 machine. Every time I boot up Task Manager and want to close it (using the X button), Task Manager crashes and I have to force quit it. It's not a major concern, but it does annoy me and lose me a few seconds each...