Get-MailPublicFolders - List all SMTP Addresses
on Exchange 2007 (PublicFolders), how can we list all associated Primary / Secondary SMTP Addresses on a Public Folder, I need to create a list of all public folders and there associated email addresses, I tried the ADUC query "objectclass=publicfolder" and it will only list Primary SMTP Addresses. When I type Get-Mailpublicfolder it gives me alias and identity Any suggestions ? Thanks
November 18th, 2010 4:53am

Hi, Try Get-recipient -resultsize unlimited | select Name -expand emailaddresses | Select SmtpAddress, add another if you need for public folders only, do let us know if this didn't help.Ripu Daman Mina | MCSE 2003 & MCSA Messaging
Free Windows Admin Tool Kit Click here and download it now
November 18th, 2010 7:29am

Hi, Try Get-recipient -resultsize unlimited | select Name -expand emailaddresses | Select SmtpAddress, add another if you need for public folders only, do let us know if this didn't help. Ripu Daman Mina | MCSE 2003 & MCSA Messaging Get-recipient -resultsize unlimited | select Name -expand emailaddresses | Select SmtpAddress Hi Ripu, Thanks for the input, the command you mentioned just lists out all the email addresses on our exchange. I have quiet a few Public Folders, like : Depts Dept1 Dept2 Dept3 Customers Cust1 Cust2 Cust3 Most of the public folders have multiple email addresses associated to them, i tried some commands but it looses the formatting, i have even tried to increase the window / buffer size of EMS window. Just after a Powershell command which will list the names of the Public folders and all email addresses associated to them. Will be grateful Kind Regards Edit : Get-PublicFolder -Recurse | Get-MailPublicFolder | Select Displayname, Emailaddresses > c:\users\myusername\PFrecursesmtp.txt Hi Ripu, I just tried the above command, it outputs (red color) for the folders which are not mail-enabled but outputs the right one, only one problem : for some public folders where we have 4 or 5 email addresses assigned to them, it shows only the first few letters of the email address and then ..... is there a way i can have a complete output with no truncations ? Thanks so much
November 18th, 2010 7:47am

Get-Mailpublicfolder | fl alias,emailaddresses
Free Windows Admin Tool Kit Click here and download it now
November 18th, 2010 7:52am

Get-Mailpublicfolder | fl alias,emailaddresses Thanks Andy - that worked Thanks Ripu for your input too !!
November 18th, 2010 9:24am

Can we have additional information of permissions with this?Shashi
Free Windows Admin Tool Kit Click here and download it now
April 13th, 2011 3:33am

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

Other recent topics Other recent topics