Solved

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

Posted on 2014-11-21
5
18 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
ID: 40458775
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
ID: 40458850
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
ID: 41714682
Not to be a PITA, but I believed this was answered
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Utilizing an array to gracefully append to a list of EmailAddresses
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…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

911 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

22 Experts available now in Live!

Get 1:1 Help Now