To get all distributions of mailbox
Hi,
Is there any exchange powershell command to get distributions list of mailbox. I'm used below command but it only show address list ONLY
Get-Mailbox -Identity <name> | fl addressslistmembership
May 20th, 2010 10:51am
Hi,
Is there any exchange powershell command to get distributions list of mailbox. I'm used below command but it only show address list ONLY
Get-Mailbox -Identity <name> | fl addressslistmembership
You can use it:
Get-DistributionGroup | where { (Get-DistributionGroupMember $_ | foreach {$_.PrimarySmtpAddress}) -contains "yourUserPrimaryEmailAddress" }
OR
Get-DistributionGroup | where { (Get-DistributionGroupMember $_ | foreach {$_.name}) -contains "yourUserName" }
Regards,
Laeeq Qazi|Team Lead(Exchange + Sharepoint + BES + DynamicsCRM)
www.HostingController.com
Free Windows Admin Tool Kit Click here and download it now
May 20th, 2010 12:37pm
This one is working
Get-DistributionGroup | where { (Get-DistributionGroupMember $_ | foreach {$_.PrimarySmtpAddress}) -contains "yourUserPrimaryEmailAddress" }
but second one is not working. The command is correct but no output sanme as above command.
May 21st, 2010 5:45am
This one is working
Get-DistributionGroup | where { (Get-DistributionGroupMember $_ | foreach {$_.PrimarySmtpAddress}) -contains "yourUserPrimaryEmailAddress" }
but second one is not working. The command is correct but no output sanme as above command.
Hi,
This one
Get-DistributionGroup | where { (Get-DistributionGroupMember $_ | foreach {$_.name}) -contains "yourUserName" }
will also work if you give the Name of the mailbox which is called CN in Active Directory and not the DisplayName.
you can get the name of mailbox using
get-mailbox yourUserPrimaryEmailAddress |FL Name
Regards,Laeeq Qazi|Team Lead(Exchange + Sharepoint + BES + DynamicsCRM)
www.HostingController.com
Free Windows Admin Tool Kit Click here and download it now
May 21st, 2010 12:49pm