PowerShell GUI script to unlock an Active Directory user’s account

PowerShell GUI script to unlock an Active Directory user’s account. The script will need to be run from a computer which is part of the domain. It needs access to the ActiveDirectory PowerShell module. It will first try to load it locally, if not available it will setup a session to a Domain Controller and will import it from there (This requires that the user running this script needs appropriate rights to do so).

Read more

PowerShell GUI script to reset an Active Directory user’s password

PowerShell GUI script to reset an Active Directory user’s password. The script will need to be run from a computer which is part of the domain. It needs access to the ActiveDirectory PowerShell module. It will first try to load it locally, if not available it will setup a session to a Domain Controller and will import it from there (This requires that the user running this script needs appropriate rights to do so).

Read more

PowerShell function to find the location where an Active Directory user was locked out

In case an Active Directory user gets frequently locked out, you can use this PowerShell function to check on which computer the lockout occurs. It does so by querying the Security Event Logs of the Domain Controllers. Once you have determined on which computer the lockout occurs, you still need to find out what exactly is causing the account lockout. This can be a manual drive mapping, a service running under the user account, an ODBC connection, etc.

Read more