0

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."

5
  • 2
    What is $command? Commented May 8, 2024 at 20:07
  • $command = "get-messagetrackinglog #*for more details, i would like to write u an email Commented May 11, 2024 at 11:53
  • Are you sure that MessageId is provided? What if you do Invoke-Expression $command | Get-Member? Is MessageId part of the properties listed? Commented May 13, 2024 at 13:13
  • No, it isn't. It displays nothing or this: Commented Jun 13, 2024 at 17:59
  • Import-PSSession : No command proxies have been created, because all of the requested remote commands would shadow existing local commands. Use the AllowClobber parameter if you want to shadow existing local commands. At C:\Users\admin02\Desktop\MessageTrackingGUI.ps1:237 char:9 + Import-PSSession $Session -DisableNameChecking | Out-Null + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidResult: (:) [Import-PSSession], ArgumentException + FullyQualifiedErrorId Commented Jun 13, 2024 at 18:00

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.