Start a SCCM task only when the user is logged off

Marc 631 Reputation points
2022-11-05T16:28:37.813+00:00

Is there an option that can I setup that allow me to start a task-sequence only if it is detected the user is logged off (not using the PC)?
Thanks

Microsoft Configuration Manager Deployment
Microsoft Configuration Manager Deployment
Microsoft Configuration Manager: An integrated solution for for managing large groups of personal computers and servers.Deployment: The process of delivering, assembling, and maintaining a particular version of a software system at a site.
922 questions
0 comments No comments
{count} votes

Accepted answer
  1. CherryZhang-MSFT 6,481 Reputation points
    2022-11-11T08:16:08.357+00:00

    Hi @Marc ,

    Thank you for your feedback.

    I did more research on your question. You want to deploy the task sequence only when no users are logged on to the computer, right? According to my research, I found a similar case. We can implement it by verifying the "explorer.exe" is running which only exists when a user is logged on to the machine.

    For more steps, please refer to the following article:
    https://adventuresofageek.com/2019/10/09/deploy-task-sequence-to-run-with-no-user-logged-on/

    If I misunderstand something, please let me know. Looking forward to your feedback.

    Best regards,
    Cherry


    If the response is helpful, please click “Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


6 additional answers

Sort by: Most helpful
  1. CherryZhang-MSFT 6,481 Reputation points
    2022-11-07T06:28:02.39+00:00

    Hi @Marc ,

    We can set the deployment for the task sequence as 'Required' and specify Assignment schedule as Log off. The screenshots for your reference:
    257782-1.png

    257668-2.png

    The article for your reference:
    Deploy a task sequence - Configuration Manager | Microsoft Learn

    Looking forward to your feedback.

    Best regards,
    Cherry


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

  2. Marten Theunissen 246 Reputation points
    2022-11-05T17:06:51.927+00:00

    Good day and welcome,

    You could create a custom task that monitors the event log for a log off event and use that as a trigger to initiate your tasks. Please see link below.

    Mark as answered if the information was helpful to your cause.

    https://qtechbabble.wordpress.com/2019/12/09/trigger-a-windows-scheduled-task-for-logoff/

    Regards
    M

    0 comments No comments

  3. Marc 631 Reputation points
    2022-11-05T18:51:17.763+00:00

    Thank you MartenTheunissen-2934,

    I am not an expert. I have heard SCCM doesn't have a native option to do an inventory of task scheduler. Do you mind explain me how can use this task scheduler option with SCCM?

    0 comments No comments

  4. Marc 631 Reputation points
    2022-11-06T11:36:56.897+00:00

    Any help ???

    0 comments No comments