Solved

Finding who sent messages to a user who's mailbox was full in Exchange 2007

Posted on 2014-11-21
5
14 Views
Last Modified: 2016-07-17
Hi so I'm trying to find a list of people that emailed a user when there mail box was full.  I found internally using  the microsoft exchange trouble shooting assistant message tracking .  Setting sender as Microsoft Exchange account and looking for failed messages there were very few.  But when the sender is postmaster there are a lot more messages and since I can't actually see the messages I don't know if post master is sending the message because that user's mailbox was full.  I know this is a really particular request but I think it would be useful for others as well.  I'm wondering if there's a unique failure for mailbox full I can search for.  I think as I'm writing this I may have figured it out but now to dump this to txt that the user could use like excel or csv.  Basically search I used was recipient and fail.  Anyone know how to do this in powershell and export list to a file.

Thanks!!
0
Comment
Question by:Strider10
  • 2
5 Comments
 
LVL 26

Accepted Solution

by:
Nick67 earned 500 total points
Comment Utility
Looks like it should be pretty simple.
The message tracking tool shows what PowerShell commands are being issued.
Tracking fails for 'someone@somewhere.com for the last week is this
get-messagetrackinglog -Recipients:someone@somewhere.com -EventID "FAIL" -Start "11/17/2014 4:32:00 PM" -End "11/21/2014 4:42:00 PM"

From this site
http://blogs.technet.com/b/heyscriptingguy/archive/2014/02/04/use-powershell-to-create-csv-file-to-open-in-excel.aspx

It looks like we could append this bit
| Export-Csv -Path c:\someValidPath\file.csv -Encoding ascii -NoTypeInformation
to get the Exchange Management Shell to pipe the results out to a csv

Note that you CAN'T do this straight up from the command line's PowerShell.
You have to fire up the Exchange Management Shell or the right cmdlets won't be available

I tested this on my Exchange 2007 /SBS 2008 box.
C:\Windows\system32>get-messagetrackinglog -Recipients:me@myoutfit.co
m
-EventID "RECEIVE" -Start "11/17/2014 4:32:00 PM" -End "11/21/2014 4:42:00 PM"
 | Export-Csv -Path C:\Users\myname\Desktop\test.csv -Encoding ascii -NoTypeI
nformation

Worked like a hot damn!
I got a CSV of all my RECEIVE items on my desktop
0
 

Author Comment

by:Strider10
Comment Utility
Thank you Nick67 for the fast response!  I'm definitely using the CSV output on many more of my powershell scripts I've wanted to look into that for a while just never took the time.  Thanks so much!
0
 
LVL 26

Expert Comment

by:Nick67
Comment Utility
Not to be a PITA, but I believed this was answered
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Explore the encryption capabilities built into Google Apps and how these features can help you meet privacy policy and regulatory compliance, but are not a full solution. Understand and compare the most popular email encryption services for Google A…
Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
To show how to generate a certificate request 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 Servers >> Certificates…
The purpose of this video is to demonstrate how to set up Lists in Mailchimp. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchimp account. : Click on Lists. Click on Create List Button : Choose the desi…

763 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now