Hello, I am trying to locate a script or set of commands to use in powershell that will help finding terminal server sessions that did not disconnect properly when leaving the server like my account. my account keeps getting locked out of accessing our server across the domain i need an easy way to find out what server session did not disconnect properly based upon my account name
I looked at doing somthing similar a few years ago. You have to check all the DC’s security logs for account lock out and then check to see where it had come from.
Microsoft to have a tool called Account Lockout Status (LockoutStatus.exe) which I used to find these problems. It looks like this has been updated to have a commandline part now, which you might be able to use from PowerShell.