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

Brink

Staff member
mvp

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
    16 GB (8GBx2) G.SKILL TridentZ DDR4 3200 MHz
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    3 x 27" Asus VE278Q
    Screen Resolution
    1920x1080
    Hard Drives
    1TB Samsung 970 EVO Plus M.2,
    250GB Samsung 960 EVO M.2,
    6TB WD Black WD6001FZWX
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Mouse
    Logitech MX Master
    Keyboard
    Logitech wireless K800
    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,
    Linksys EA9500 router,
    Arris SB8200 cable modem,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Lumia 1520 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

aarciniega

New Member
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

Top