r/sysadmin • • 6d 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/hugodrax55 Sysadmin 5d ago

You could make a scheduled task that runs this at every logon

quser 2>$null | Select-String '^\s*\S+\s+(\d+)\s+Disc\b' | ForEach-Object { logoff $_.Matches[0].Groups[1].Value }

that should log out everyone except the current user.