We help IT Professionals succeed at work.
Get Started

Exchange Server 2013 Message Tracking log Powershell ?

1,728 Views
Last Modified: 2017-04-05
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 "emite@domain.com" -Recipients "itoperat@domain.com" -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

Open in new window


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

Open in new window


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

Any help would be greatly appreciated.

Thanks,
Comment
Watch Question
Mohammad Ishtyaq khatriSr. Systems Engineer
CERTIFIED EXPERT
Commented:
This problem has been solved!
Unlock 5 Answers and 11 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE