Jump to content

Nachrichtenfluss - Exchange online


Recommended Posts

Hi,

 

wenn es die lokale Zeit sein / werden soll:

Connect-ExchangeOnline

$Recipient = "email@adresse.tld"
$Start = Get-Date -Date "15.08.2022 00:00"
$End = Get-Date

$MSGTrace = Get-MessageTrace -RecipientAddress $Recipient `
    -StartDate $Start.ToUniversalTime() `
    -EndDate $End.ToUniversalTime() 

$MSGTrace |
    Select-Object @{label="Empfangen";expression={$_.Received.ToLocalTime()}},
        @{label="Absender";expression={$_.SenderAddress}},
        @{label="Empfänger";expression={$_.RecipientAddress}},
        @{label="Betreff";expression={$_.Subject}},
        @{label="an IP";expression={$_.ToIP}},
        @{label="von IP";expression={$_.FromIP}},
        @{label="Status";expression={$_.Status}} |
            Sort-Object Empfangen -Descending |
                Out-GridView

 

Gruß

Jan

Edited by testperson
  • Thanks 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...