Exchange 2007/2010 Email stats

Produces email stats from Exchange 2007 or 2010 Message Tracking Logs

4.4 Star
Add to favorites
E-mail Twitter Digg Facebook
Sign in to ask a question

  • exchange 2016
    2 Posts | Last post June 27, 2019
    • hii,
      can you please provide the updated version for exchange 2016 ? 
    • Change 
      $hts =  get-exchangeserver |? {($_.serverrole -match "hubtransport") -or ($_.AdminDisplayVersion -like "Version 15.1*")} |% {$} 
      $hts = Get-TransportService
  • the term is not reconized as the name of a cmdlet. what shoul i do ?
    1 Posts | Last post October 02, 2018
    • Hello,
      when I try to run this script this errors occur : Get-AcceptedDomain : The term 'Get-AcceptedDomain' is not recognized as the name of a cmdlet, function, script file,
      or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and
      try again.
      Could you help me in order to get this script working?
      Thank you
  • date range
    5 Posts | Last post May 01, 2018
    • Has anyone been able to update the script to allow for date ranges instead of previous day only?
    • Hi John,
      Try modify this line:
      $rundate = "7/2/2014"
      Format is MM/DD/YYYY
    • How do you get it to check all logs for the previous 30 days, not just the one day?
    • You can add 
      $startdate = "05/01/2015 12:00 AM"
      $enddate = "05/31/2015 11:59 PM"
      and change the script with the same. get-messagetrackinglog -Server $ht -Start "$startdate" -End "$enddate" -resultsize unlimited . Also, remove the $rundate variable from the script. Let me know if you need whole script running for whole month
    • Hi
      Are you able to provide script to search for the whole month?
  • exchange 2013
    1 Posts | Last post December 05, 2017
    • Is this script supported on exchange 2013 as well ?
  • Monthly Reporting (Date Range) and Single Server
    2 Posts | Last post November 27, 2017
    • I'd like to use this for monthly reporting of users.  but i need to specify a single exchange server and a date range for the report.  anyone done anything like this with the script ?
    • To change this report for a specific server, change the line (line number 23) that reads 
      $hts = get-exchangeserver |? {$_.serverrole -match "hubtransport" } |% {$}
      $hts = get-exchangeserver | Where-Object {$ -match "exchangeservername"} |% {$} 
      I added a line $like this $startdate = $($today.adddays(-30)).toshortdatestring() right below 
      $rundate = $($today.adddays(-1)).toshortdatestring() 
      (line 7)
      I changed the lines below
      #    get-messagetrackinglog -Server $ht -Start "$rundate" -End "$rundate 11:59:59 PM" -resultsize unlimited |
      to this
      	get-messagetrackinglog -Server $ht -Start "$startdate" -End "$rundate 11:59:59 PM" -resultsize unlimited |
  • Script doesn't work
    1 Posts | Last post September 12, 2017
    • I have tried this is exchange shell and powershell and it doesn't work at all.  I have tried as a ps1 file and copy and pasting with no luck.  It says the get-date commandlet doesn't even exist.  Am I missing something here?  This is a 2008 R2 server with Exchange 2010.
  • Incorrect Output3
    1 Posts | Last post July 14, 2017
    • To add another thought, sorry. If one of the emails I sent was to a Distribution list with say 10 members, does that 1 email count as 10 sent since there are 10 members in the DL?
  • Incorrect Output2
    1 Posts | Last post July 14, 2017
    • Just to make things a bit clearer. I ran the script again. I was able to edit the script to just look at HUB Transports locally, not globally. The output of the default script is for 24 hours. It says I had a "Sent Total" of 108
      Looking in my sent folder, I have 32.
      Can someone explain the difference in Totals please
  • Incorrect Output
    1 Posts | Last post July 14, 2017
    • I had run this script, just point it o only my U.S Transport servers
      For me, it says I sent 42 message in a 24 hours period (Sent Total)
      Comparing that to doing the below messaging tracking, the below say I sent 4. 
      As we can see these are not even close. I know I sent more than 4
      Get-TransportServer -identity *nycs* | Get-MessageTrackingLog -ResultSize Unlimited -Start $startDate -End $endDate -Sender $emailAddress | Select-Object Timestamp,ServerHostname,ClientHostname,Source,EventId,Sender,@{l="Recipients";e={$_.Recipients -join " "}},MessageSubject | Sort-Object -Property Timestamp | export-csv -path d:\mikep\Mikep.csv -notypeinformation
  • Not all HUB Transports
    1 Posts | Last post July 13, 2017
    • I need to only search a subset of HUBs as the environment has EURO and ASIA as well. 
      So just want to include hub transports name like *NYCS*
1 - 10 of 100 Items