troubleshooting Question

Exchange Server 2013 Message Tracking log Powershell ?

Avatar of Senior IT System Engineer
Senior IT System EngineerFlag for Australia asked on
PowershellExchangeActive DirectoryScripting LanguagesMicrosoft 365
11 Comments5 Solutions1731 ViewsLast Modified:
Hi All,

I've got 5x mailbox servers spread across different data centers.

Previously I used to able using my Powershell IDE from my laptop to get the Message Tracking log from ALL Exchange 2010 HubTransport server. But now I wonder what could be the change for Exchange Server 2013 ?

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://PRODHTCAS-02-VM/PowerShell/ -Authentication Kerberos
Import-PSSession $Session -AllowClobber
Import-Module ActiveDirectory -ErrorAction STOP

Get-TransportServer | Get-Messagetrackinglog -Sender "" -Recipients "" -EventID "RECEIVE" -Start "25/01/2017 9:00:00 AM" -End "25/03/2016 9:08:00 PM" | ft -wrap Timestamp, Source, Sender, Recipients, MessageSubject, TotalBytes | Out-GridView

Do I have to run that command above for each mailbox server now in 2013 ?

This is the error message I'm getting, I'm just copy pasting one erro message since it is repeated for the number of my mailbox server:
The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the parameters that take pipeline input.
    + CategoryInfo          : InvalidArgument: (PRODMBX02-VM:PSObject) [Get-MessageTrackingLog], ParameterBindingException
    + FullyQualifiedErrorId : InputObjectNotBound,Get-MessageTrackingLog
    + PSComputerName        : PRODMBXCAS04-VM

Note: PRODMBXCAS04-VM is where I usually connect for PowerShell remoting.

Any help would be greatly appreciated.

Mohammad Ishtyaq khatri
Sr. Systems Engineer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 5 Answers and 11 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 5 Answers and 11 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros