Sunday, November 7, 2021

Find Locked Accounts in AD with Powershell

 Hello there, lately I have been working with Powershell as a way to be able to create simple programs to help me to my BAU day.

This code will give you all locked accounts in your AD environment:

Search-AdAccount -LockedOut

Simple!

No comments: