Lets say we have a Windows 2008 server and there are 4 users (A,B,C,D) logon. If User "B" disconnects from the session ('broken connection'), how can we automatically log off User B? I've searched and we can use 'Remote Desktop Session Host Configuration' to setup disconnected users to log off, but it applies to every/all users. How can we make that rule applicable to a specific user?
Create a scheduled task that runs a powershell script
Get-TSSession -State Disconnected -UserName userName | Stop-TSSession -Force
Or just group all such users into a dedicated server...
Go to Computer Management, click Local Users and Groups, find your username, and click Sessions tab. From there, you set the different options.