Automate AD Authentication Tests with PowerShell

A common method to investigate for Active Directory authentication issues is inspecting logs and event viewer, it’s simple and effective. But it’s a reactive thinking and it isn’t unusual for me to check if all user credentials provided were correct,  most of the time for a large number of users and that’s the reason why I wrote this simple (proactive) script to automate the testing process and the efficiency of an on-boarding process. It also works with local users, not just ActiveDirectory users.

As example I prefer not to use a csv file to store credential to test for security reasons. But if this script is used to manage on-boarding of new employee and to test access to some programs is better not to break the automation with a get-credential cmdlet.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.