Solved

How to find public folder alias in Exchange 2010

Posted on 2014-09-22
7
719 Views
Last Modified: 2014-09-24
Recently upgraded from Exchange 2003 to 2010, so I'm still very much the newb with Exchange Power Shell.  I need to find the several public folders whose email addresses/aliases begin with 'member' among our about 200 mail-enabled public folders.  It could be the beginning of the primary or other email address for any given public folder.

Our AD domain is still 2003.  When I do a 'get-mailbox -identity member', the error I get back references one of the AD 2003 DCs.  Doesn't make sense to me.

Thanks.
0
Comment
Question by:phershey
  • 3
  • 3
7 Comments
 
LVL 16

Accepted Solution

by:
Rajitha Chimmani earned 250 total points
ID: 40337503
Powershell will connect to any available DCs. If you wish not to connect to 2003 DC you got to specify the domain controller.

Use the following command to find out the public folders. You may receive errors if there are any non-mail enabled public folders under your root.

Get-PublicFolder "\" -Recurse -DomainController "DCname" | Get-MailPublicFolder | where {$_.emailaddresses -like "member*"} | Select identity

Open in new window

0
 

Author Comment

by:phershey
ID: 40337536
That works. You're certainly right about the non-mail enabled folders.  We have a few hundred, and only about 1/4 are email enabled.  Thanks for the help.  I have got to get off my duff and into PowerShell.
0
 
LVL 16

Expert Comment

by:Rajitha Chimmani
ID: 40337627
Cool. Looks like you forgot to accept the answer. Else please post any further questions on this,
0
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 
LVL 16

Assisted Solution

by:Postmaster
Postmaster earned 250 total points
ID: 40338414
You can always query AD directly with a tool like LDIFDE.
This will produce a file that can be read as TXT.
(alias matches mailnickname)

ldifde -f D:\ldif_PubFolders.ldf -r "(|(&(objectClass=publicFolder)(displayName=member*)) (&(objectClass=publicFolder)(proxyaddresses=member*)))" -l "displayname,proxyaddresses,mailnickname"
0
 

Author Comment

by:phershey
ID: 40341584
Now I'm working through all the public folders, trying to clean up ones with invalid aliases.  Initially these were all mail-enabled public folders for which whoever setup them up initially entered an alias with a space in it.  Those are all cleared up, but I'm still getting the 'inconsistent state' error with the valid values for an alias for some public folders that are NOT mail-enabled.  Obviously for these only the field on the General tab has the public folder name. I've tried removing the space from a couple of these, 'Policyholder Service' becoming 'PolicyholderService', but I still get the same error message:

VERBOSE: Connected to CAS-CA1.agia.in.
{PS] C:\Windows\system32>Get-MailPublicFolder "Policyholder*" | Get-PublicFolderStatistics | Select AdminDisplayName, FolderPath
WARNING: The object agia.in/Microsoft Exchange System Objects/Policyholder Service has been corrupted, and it's in an inconsistent state. The following validation errors happened:
WARNING: Property expression "Policyholder Service" isn't valid. Valid values are: Strings formed with characters from A to Z (uppercase or lowercase), digits from 0 to 9, !, #, $, %, &, ', *, +, -, /, =, ?, ^, _, `, {, |, } or ~. One or more periods may be embedded in an alias, but each period should be preceded and followed by at least one of the other characters. Unicode characters from +00A1 to U+00FF are also valid in an alias, but they will be mapped to a best-fit US-ASCII string in the e-mail address, which is generated from such an alias.

AdminDisplayName                                                    FolderPath
---------------                                                    ----------
PolicyholderService                                                 Customer Service\ULLICO\PolicyholderService



Any ideas what could be causing this?  This example is not mail-enabled.  I'm extremely puzzled.
0
 
LVL 16

Expert Comment

by:Rajitha Chimmani
ID: 40342036
I guess its due to a space in alias which is not accepted. You might want to open the properties from PF management console for this PF and remove the space.
0
 

Author Comment

by:phershey
ID: 40342086
My point is that as it is not an email-enabled public folder, there is no alias.

Hence my puzzlement.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Lotus Notes – formerly IBM Notes – is an email client application, while IBM Domino (earlier Lotus Domino) is an email server. The client possesses a set of features that are even more advanced as compared to that of Outlook. Likewise, IBM Domino is…
MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
In this video we show how to create an Accepted Domain in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Ac…
In this video we show how to create an email address policy in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Mail Flow…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question