Force user logoff after 3 days of inactivity

aarciniega

New Member
Just want to start off by saying I'm a noob so bear with me.

Background: We have multiple fire stations running Vista Business where there could be 20 users logged onto the PC at any given time, thanks to "fast user switching" We encourage fast user switching its just, the users never log off and after weeks of not rebooting its starting to cause issues.

Goal: I' am trying to write a script or a task that will run that would log off users who have been inactive for 2-3 days. I do not want this to affect the others users who are already logged on the the PC.

Thanks,
Alex :D
 

My Computer

My Computers

System One System Two

  • Operating System
    Windows 10 Pro 64-bit
    Manufacturer/Model
    Custom
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G7 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
  • Operating System
    Windows 10 Pro
    Manufacturer/Model
    HP Envy Y0F94AV
    CPU
    i7-7500U @ 2.70 GHz
    Memory
    16 GB DDR4-2133
    Graphics card(s)
    NVIDIA GeForce 940MX
    Sound Card
    Conexant ISST Audio
    Monitor(s) Displays
    17.3" UHD IPS touch
    Screen Resolution
    3480 x 2160
    Hard Drives
    512 GB M.2 SSD
Hello Alex, and welcome to Vista Forums.

I'm not sure how to do what you are wanting, but as a workaround for now, you can use Task Manager in an administrator account to log off these users.

http://www.vistax64.com/tutorials/133754-task-manager-users-log-off-local-user.html

Hope this helps some,
Shawn

Thanks for your reply. Yes, I could on a case by case basis but we have about 30 fire stations. The fire fighters will leave the station and the PC will automatically lock, but they are sill logged on. The Fire fighter may not be back for a week or more. Some stations have 20 users logged in at one time, may of which have been inactive for many days. This causes some memory issues. Any other suggestions?
 

My Computer

Back
Top