Link to home
Create AccountLog in
Avatar of BonJerome
BonJerome

asked on

Find messages in Exchange mailboxes by MessageId

Is there a way to locate a message in someone's mailbox by the MessageId?

I don't mean by using tracking logs; that only shows me that it was delivered to the mailbox, but it doesn't show me the message actually existing in the mailbox.

I've also tried to find the message with Exchange Search to no avail. This will normally find even deleted items within the retention timeframe.
Avatar of suriyaehnop
suriyaehnop
Flag of Malaysia image

Avatar of BonJerome
BonJerome

ASKER

Yes, Search-Mailbox is the cmdlet for Exchange Search I was trying earlier. Does anyone know a way to incorporate Search-Mailbox to find an email in a specific mailbox? MessageId is known; Subject/sender are not known.
Does anyone have a way to incorporate Search-Mailbox into finding an actual message by MessageId? This shouldn't be close yet because it hasn't been answered.
Avatar of Davis McCarn
This article tells you how to find the message by MessageID in Exchange 2007 or newer:
https://www.codetwo.com/kb/messageid/
It also links to the TechNet article for using the Search-Mailbox to do it.
@Davis: Thank you, but that article describes searching for message tracking logs, not for messages themselves, the way Search-Mailbox does. And the link in the article is to the TechNet page for Get-MessageTrackingLog.

What I'm looking for is a way to use Search-Mailbox (or something that gets actual messages)  to get messages by MessageId.

Example:
1. UserA sends a message to 50 people.
2. UserB sends a reply-all to UserA's message.
3. UserA sends a reply-all to UserB's message.
4. At the same time, UserC sends a reply-all to UserB's message.

The goal: pull all instances of UserA's last message (line 3) out of everyone's mailboxes using Search-Mailbox, but none of the other messages.

To my knowledge, the best way to identify the instances of that specific message is by the MessageId. I already know that Subject, Sender, Recipient, Timestamp don't grab only the desired message, because they are not unique. And Search-Mailbox doesn't have the ability to use MessageId as a search parameter.

Does anyone have an answer or an idea?
ASKER CERTIFIED SOLUTION
Avatar of Vasil Michev (MVP)
Vasil Michev (MVP)
Flag of Bulgaria image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Alright, thanks. If anyone in the future does find away, please let us know!