question

sime3000 avatar image
0 Votes"
sime3000 asked EricYin-MSFT commented

Enumerating errors in EMS - Exchange Management Shell

We have several malformed contacts in our GAL that generate a Warning when running get-mailcontact in the EMS. We would like to be able to get a count of the total number of contacts that have errors.

We have a large number of mail-contacts so casually browsing through the output of get-mailcontact is not practical. Additionally some of these contacts may generate 2-3 Warning messages for a single contact.

Any ideas on how to get a total count of the mail-contacts that generate a warning?

windows-server-powershelloffice-exchange-server-administration
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,
Maybe you can export the result to csv file and sort it via Excel functions.
And I know you are looking for some powershell scripts that counts for you, so I add windows-server-powershell tag for this thread. I suppose you'd better post the warning messages here as it should be needed when writing scipts. Here is an example: https://social.technet.microsoft.com/Forums/en-US/ebbe9c1b-1075-473e-9c7e-af69be4ff87b/getmailbox-error-handling?forum=exchangesvradmin

0 Votes 0 ·

I am writing here to confirm with you how the thing going now?
If you need further help, please provide more detailed information, so that we can give more appropriate suggestions.


If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in [our documentation][99] to enable e-mail notifications if you want to receive the related email notification for this thread.

0 Votes 0 ·

0 Answers