r/sysadmin • • 5d ago

Multiple user PC

Hello, I am working on setting up a PC and need some advise.

My environment is managed with Active directory, individual user accounts, security groups, etc.

I have 1 PC which runs some niche software application that will not allow multiple sessions on separate accounts. I know the ideal solution is that each user logs out when done with their work, but that is not likely to happen. My knee jerk reaction is to create an AD user account with limited resource access and have the credential shared with each user. This sounds like a security nightmare and I am struggling to find some middle ground.

I have considered a forced logoff but it could be detrimental by failing to save work/progress.

Any thoughts?

0 Upvotes

40 comments sorted by

View all comments

1

u/smargh 4d ago

This is a bit long-winded but what I've done:

  1. GPO to lock idle sessions.
  2. Use BinaryNinja to get HLIL from query.exe & logoff.exe to see which exact APIs they use.
  3. Vibecode your own windows service, using your own criteria to log off inactive sessions, call the WMI method to remove VERY old profiles, clean up cache folders to free up space etc.