Script or commands in PS or similar terminal

Welcome Forums General PowerShell Q&A Script or commands in PS or similar terminal

Viewing 1 reply thread
  • Author
    Posts
    • #250844
      Participant
      Topics: 2
      Replies: 1
      Points: 25
      Rank: Member

      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

      thanks

    • #250859
      Participant
      Topics: 0
      Replies: 7
      Points: 45
      Rank: Member

      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.

      https://www.microsoft.com/en-us/download/details.aspx?id=15201

Viewing 1 reply thread
  • You must be logged in to reply to this topic.