Quantcast
Channel: SQLServerCentral » Programming » Powershell » Latest topics
Viewing all articles
Browse latest Browse all 467

Get-ADGroup with wildcards

$
0
0
Using the Quest AD cmdlets, this easily returns all groups with underscores around the $Code.Get-QADGroup "*`_$Code`_*" How can this be done with Get-ADGroup (ie, not using the Quest cmdlets, which not everyone has).The -Filter parm only accepts the * wildcard. Help says to use LDAPFilter parm, but I can't seem to get it right:Get-ADGroup -LDAPFilter {(name="*_$Code_*")} is not workingThanks!

Viewing all articles
Browse latest Browse all 467

Trending Articles