Powershell to find out disconnected RDP session and log off at the same time
11:59 11 Apr 2017

Is there a script that can log out my disconnected RDP session from any server? This is causing constant Active Directory account lockouts.

powershell logout rdp windows-server disconnected-session