Below script is used to find, how a user account got locked.