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
Windows Server > Windows PowerShell
Comments
Post a Comment