PowerShell Lab
Build, find and save PowerShell
Reviewed templates and commands with requirements, permissions and risk spelled out. Nothing here runs anything — you copy, review and run it yourself.
Search pages, tools, PowerShell commands and ports
Find whether an email was delivered, filtered or failed in the last 10 days.
1Connect-ExchangeOnline -ShowBanner:$false2Get-MessageTraceV2 -SenderAddress 'sender@external.com' -RecipientAddress 'jane.doe@example.com' -StartDate (Get-Date).AddDays(-2) -EndDate (Get-Date) |3 Select-Object Received, SenderAddress, RecipientAddress, Subject, StatusCovers up to 10 days per query (90 days in total). Older module versions only have Get-MessageTrace, which Microsoft is retiring — update ExchangeOnlineManagement if V2 is missing.