That's it. Now you can use this report or export in Excel and find the users in Active Directory to delete them.

Maybe need a research to find the commands that can cover your requirements but remember that will do it once. Now you have a small script that can use it once a month or 3 months to identify in minute inactive users.

I hope to help you and learn from this article.

Have a nice weekend !!!!.

Do you have suggestions or feedback? Use our commented system to discuss it with other IT Pro

Askme4Tech is my Blog to the IT Community. From this site i share tips, news and in depth tutorials for IT Professionals working with Microsoft products.

My goal is to create a share Knowledge base for IT Professionals and Power Users that works with Microsoft Products and to provide valuable help in daily technical problems and keep up to date with news from IT industry.