Paylinks for BLOCKS
Knowledgebase
Connecting to Exchange Online with powershell for getting the Message Trace logs
Posted by Dan Mansfield on 26 February 2015 10:51 AM
Connect to Office 365 first of all

open powershell!

$UserCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session

Do the download:

Get-MessageTrace -StartDate "02/11/2015 00:00:00" -EndDate "02/10/2015 00:00:00" -PageSize 5000 | Select MessageID,Received,*Address,*IP,Subject,Status,Size | Export-Csv messagetrace.csv -NoTypeInformation


X

 

D

(0 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).

ERROR: This domain name (powertoolreview.co.uk), does not match the domain name in the license key file.

For assistance with your license, please contact the Kayako support team: https://support.kayako.com