top of page

Find an AD group using a wildcard

If you try to search for an AD group using the "dsa.msc" tool, you'll find that it can't search for a group based on just a part of the name. It does not take wilcard into account.

To perform this type of search, we're going to use the Active Directory PowerShell module.

You can install it with the following command:

Import-Module ActiveDirectory

Once the module has been installed, use the following command to replace the "PartOfMyGroup" with the part of the group you're looking for.

Get-ADGroup -Filter {name -like "*PartOfMyGroup*"} -Properties Description,info | Select Name,samaccountname,Description,info | Sort Name

That way you'll get all the AD groups whose name contains the piece of text you're looking for.

Enjoy! 😎


bottom of page