suriyaehnop
asked on
Exchange Management Shell
I would like to have a cmdlet which can remove the user from distributions list which he member of.
Let say, this userA is member of distri1,distri2,distri3... etct
Let say, this userA is member of distri1,distri2,distri3...
ASKER
Thank,
Is there any cmdlet in Exchange Management Shell that can query this
Is there any cmdlet in Exchange Management Shell that can query this
You can use remove-distributiongroupme mber
Remove-DistributionGroupMe mber -Identity "GROUPNAME" -Member "USER"
Remove-DistributionGroupMe
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://myitforum.com/cs2/blogs/yli628/archive/2007/08/27/powershell-script-to-list-user-group-membership-in-active-directory.aspx
Output of this pass it to Remove-DistributionGroupMe