Please, tell me if there is an opportunity to run searching and displaying an MessageID of every single email, which I will get via my code. I was trying to figure out it, but I have only blank column without any messageid record. My code is located in attachment. Many thanks for your answers. Jochonon
Invoke-Expression $command | Select-Object Timestamp, EventID, Source, Sender, Recipients,
MessageSubject, ClientIp, ClientHostname, ServerIp, ServerHostname, RecipientStatus,
RelatedRecipientAddress, RecipientCount, TotalBytes, MessageInfo, ConnectorID, MesasgeId |
Out-GridView
Write-Debug "Hledání bylo dokončeno."
$command?MessageIdis provided? What if you doInvoke-Expression $command | Get-Member? IsMessageIdpart of the properties listed?