Count how many users are in an AD group

Updated 1 month ago by admin

The following article explains how to count how many users are members of a particular Active Directory group. This can be useful when synchronising specific users for MFA to ensure you have adequate licenses available.

  1. Log in to one of your Active Directory domain controllers
  2. Open the Powershell terminal as an administrator
  3. Use the following command: (Get-ADGroup <group> -Properties *).Member.Count where <group> is the name of an Active Directory security group.

Example, for a group called "MFA_Users":

(Get-ADGroup MFA_Users -Properties *).Member.Count
  1. Ensure that you have sufficient MFA licenses to cover the number returned in the command output

How did we do?