Finding email address in a DL
How do I find a particular email address which is added to a number of distribution list. I don't want to go one by one. any solution?
May 6th, 2010 4:48pm

A specific email or a specific account? Email Addresses are unique.
Free Windows Admin Tool Kit Click here and download it now
May 6th, 2010 5:02pm

How do I find a particular email address which is added to a number of distribution list. I don't want to go one by one. any solution? If u want to see all the Distribution Lists to which a user is member then u can use: PowerShell: Get-DistributionGroup | where { (Get-DistributionGroupMember $_ | foreach {$_.name}) -contains "yourUserName" } OR if programmatically then can use the code from :To get all Distribution Lists of a Mailbox ? Hope this is what u looking for. Regards, Laeeq Qazi|Team Lead(Exchange + Sharepoint + BES + DynamicsCRM) www.HostingController.com
May 6th, 2010 5:37pm

specific accoutn e.g. admin@admin.local
Free Windows Admin Tool Kit Click here and download it now
May 6th, 2010 10:54pm

specific accoutn e.g. admin@admin.local Put the name of this user in the command mentioned in my last post and u will get what u want. Does that not solve your problem? OR i could not understand what u need? Regards,Laeeq Qazi|Team Lead(Exchange + Sharepoint + BES + DynamicsCRM) www.HostingController.com
May 6th, 2010 11:00pm

that command eosn't output anything.
Free Windows Admin Tool Kit Click here and download it now
May 6th, 2010 11:04pm

that command eosn't output anything. Say your user admin@admin.local has user name 'admin' and is member of 2 distribution list. Now this command: Get-DistributionGroup | where { (Get-DistributionGroupMember $_ | foreach {$_.name}) -contains "admin" } will show u a the 2 distribution lists this user 'admin' is member of. You have to place User Name (or CN) in in the place of 'admin' in this command. You can get the user name of admin@admin.local using get-mailbox admin@admin.local |FL Name Regards,Laeeq Qazi|Team Lead(Exchange + Sharepoint + BES + DynamicsCRM) www.HostingController.com
May 6th, 2010 11:11pm

specific accoutn e.g. admin@admin.local Ok try this one with PrimarySmtpAddress. No need to change the command, just run as is on your server for admin@admin.local Get-DistributionGroup | where { (Get-DistributionGroupMember $_ | foreach {$_.PrimarySmtpAddress}) -contains "admin@admin.local" } If your user has some other Primary email address than admin@admin.local then use that one in above command. Regards,Laeeq Qazi|Team Lead(Exchange + Sharepoint + BES + DynamicsCRM) www.HostingController.com
Free Windows Admin Tool Kit Click here and download it now
May 6th, 2010 11:20pm

Slightly differet tack: get-distributiongroup |? {(get-distributiongroupmember $_ |% {$_.name}) -contains (get-recipient admin@admin.local).name}$m = "114 111 98 95 99 97 109 112 98 101 108 108 64 99 101 110 116 114 97 108 116 101 99 104 110 111 108 111 103 121 46 110 101 116";$ofs="";[string]($m.Split() |% {[char][int]$_})
May 6th, 2010 11:34pm

if i wanted to do this for all the users in a specific OU what would the syntax look like? or From an input-csv with fields such as -samid and -primarysmtpaddress
Free Windows Admin Tool Kit Click here and download it now
August 7th, 2010 12:31am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics