How does Windows define inactivity?

AxiomX_SA 1 Reputation point
2021-12-14T20:23:51.413+00:00

Recently I have been setting up GPO's for machine inactivity limits, and was trying to understand the mechanics behind how Windows defines inactivity.

My assumption was that Windows classifies inactivity as a lack of user input (mouse movement, clicks, keystrokes). Is this true, or does it also consider other factors (like if an automated process is running, if a program is installing, etc)?

Windows for business Windows Server User experience Other
Windows for business Windows Client for IT Pros User experience Other
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Limitless Technology 39,916 Reputation points
    2021-12-17T11:59:34.497+00:00

    Hi @AxiomX_SA

    Windows evaluates Idle session on different factors:

    • User inactivity: lack of input (click, tap, press)
    • Screen inactivity: Detection of ES_DISPLAY_REQUIRED flag, for example during Presentations
    • Process inactivity: when only process with Priority State is below "Normal"
    • Power source changed: AC/battery, battery-UPS

    Hope this helps with your query,

    --If the reply is helpful, please Upvote and Accept as answer--

    1 person found this answer helpful.
    0 comments No comments

  2. Anonymous
    2021-12-14T20:36:58.44+00:00

    If your query was related to power triggering screen lock or hibernate then these one may help.
    https://learn.microsoft.com/en-us/windows-hardware/design/device-experiences/powercfg-command-line-options
    https://learn.microsoft.com/en-us/windows-hardware/design/device-experiences/modern-standby-sleepstudy

    --please don't forget to upvote and Accept as answer if the reply is helpful--


  3. Castorix31 90,521 Reputation points
    2021-12-14T20:52:34.457+00:00

    Inactivity, or idle state, is checked from user input
    Windows uses APIs like GetLastInputInfo to detect user activity

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.