search distribution groups from powershell


hello,
working exchange 2010 sp1 (ur6)

let's have 10-distribution groups, need search dgs see if belongs of dgs?
can done powershell script?

thanks,

this should help:

$name = 'joe blogs' foreach ($group in ('group1', 'group2')) {     if ((get-distributiongroupmember $group | select -exp name) -contains $name) {         write-host "$name member of $group" }     }


grant ward, a.k.a. bigteddy

what's new in powershell 3.0 (technet wiki)



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

server manager error: ADAM.events.xml could not be enumerated.

Cannot access Anywhere Access using domain name?

WMI Failure: Unable to update Local Resource Group