Find an AD Group Using a Wildcard

Find an AD Group Using a Wildcard
If you try searching for an AD group using the “dsa.msc” tool, you’ll notice it cannot search for a group based on a partial name. It doesn’t support wildcards.
To perform such searches, we will use the PowerShell Active Directory module.
You can install it with the following command:
Import-Module ActiveDirectory
Once the module is installed, use the following command and replace “PartOfMyGroup” with the part of the group name you’re looking for:
Get-ADGroup -Filter {name -like "*PartOfMyGroup*"} -Properties Description,info | Select Name,samaccountname,Description,info | Sort Name
This will give you all AD groups that contain the specified text in their name.
Enjoy! 😎

Authors
SysOps Engineer | IT Teacher
Versatile IT Engineer with a dual specialization in System Engineering and Management, AlexIn Tech teaches IT to CFC apprentice IT specialists at ETML, the Technical School of Lausanne 🇨🇭. Passionate about IT, innovation, and knowledge sharing, he shares his discoveries and learnings here to inspire new generations.