policy ( on-premises active directory) to force shutdown to all computers in domain after idl for 4 hours?

Sanaa Al-Tamimi 75 Reputation points
2023-12-21T08:21:03.24+00:00

How to make a policy (on-premises active directory) to force shutdown to all computers in domain after 4 hours idl means if a user not working or non-activates on the pc for 4 hours the device will shutdown or restart .

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

Accepted answer
  1. Anonymous
    2023-12-22T02:23:37.29+00:00

    Hello Sanaa Al-Tamimi,

    Thank you for posting in Q&A forum.

    There is no such existing GPO setting for your request, however, you can try one of the links below.

    HOW TO AUTO SHUTDOWN WINDOWS WHEN IT’S BEEN IDLE FOR A WHILE

    https://onmsft.com/how-to/auto-shutdown-your-windows/

    Automatically reboot idle computers

    http://www.intelliadmin.com/index.php/2015/03/automatically-reboot-idle-computers/

    How to: Auto log off users

    https://community.spiceworks.com/how_to/37465-auto-log-off-users

    This is for remote desktop session.
    https://4sysops.com/archives/automatically-log-off-idle-users-in-windows/

    **Tips:

    1.Please note: Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.

    1. Please do some tests in lab before you deploy it in production environment.**

    I hope the information above is helpful.

    If you have any question or concern, please feel free to let us know.

    Best Regards,
    Daisy Zhou

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Thameur-BOURBITA 36,266 Reputation points Moderator
    2023-12-21T08:41:40.0733333+00:00

    Hi @Sanaa Al-Tamimi

    During the update installation, you can prevent restarting your computer by enabling this GPO settings and specify active hours :

    User's image

    For more details please read the following article:

    Manage device restarts after updates


    Please don't forget to accept helpful answer


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.