Find empty AD groups – Powershell

Find empty AD groups – Powershell

In old environments we can meet a lot of old groups in Ad which was created, but often are not used or even without any member. I will show you short script which will find all AD groups and give us count of members in every of them.

As a result we will have list of all groups with member count sorted from 0 to up. Below show you fragment of that.

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

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