Logoff Disconnected Users windows 10


  1. Posts : 2
    win 10
       #1

    Logoff Disconnected Users windows 10


    I need a script to force logoff all disconnected users after 1 or 2 hours of inactivity on windows 10 pro.

    Because in my work I have users that forget to logoff their account and that make a lot of load on the computer resources.

    It would be grateful if you can help me with it.
      My Computer


  2. Posts : 1,257
    win10 PRO on 5 PC's and Linux mint
       #2

    mossah said:
    I need a script to force logoff all disconnected users after 1 or 2 hours of inactivity on windows 10 pro.
    Because in my work I have users that forget to logoff their account and that make a lot of load on the computer resources.

    It would be grateful if you can help me with it.
    Set the pc to sleep or hibernate after a period of inactivity and shut down the network connection too.
    Prevent Windows 10 from Disconnecting Network during Sleep | Password Recovery

    If you can prevent it from disconnecting from network during sleep, then you can also disconnect it from network when it sleeps, would that do it?
      My Computer


  3. Posts : 2
    win 10
    Thread Starter
       #3

    sdowney717 said:
    Set the pc to sleep or hibernate after a period of inactivity and shut down the network connection too.
    Prevent Windows 10 from Disconnecting Network during Sleep | Password Recovery

    If you can prevent it from disconnecting from network during sleep, then you can also disconnect it from network when it sleeps, would that do it?
    Thank you, but I need a script because I need this solution for a lot of PCs'.
      My Computer


  4. Posts : 1,257
    win10 PRO on 5 PC's and Linux mint
       #4

    mossah said:
    Thank you, but I need a script because I need this solution for a lot of PCs'.
    Don't know if using commands active directory in a script will work?
    How to find and remove stale users and computers in Active Directory - Spiceworks

    You can get dsquery doing this
    Where can I get dsquery and other tools useful for debugging Active Directory issues? - Stack Overflow
      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 04:28.
Find Us




Windows 10 Forums