How to manage winmail.dat with Exchange Online

Roberto Sitzia 41 Reputation points

Hi All,

I have recently migrated one customer of mine to Microsoft 365 Business Standard subscription with Outlook 365 installed on Windows 10 20H2 PCs.
After about three weeks just one user complains that two contacts receives wimail.dat attachments instead of originally PDF documents sent.

Microsoft support has been replied with the link below

With instructions within the link above (Scenario 1) I should be able to set just for the user experiencing the problem to disable TNEF, but I have not been able to use cmdlet Get-MailContact on the Exchange Online PowerShell environment. I have setup my environment to Connect to Exchange Online using Remote PowerShell and I can connect succesfully and query mailboxes but cmdlet in Get-MailConnect isn't recognized.

I could set up Scenario 2 but why I cannot use that cmdlet?

Thank you in advance.

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,273 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Ian Xue (Shanghai Wicresoft Co., Ltd.) 27,431 Reputation points Microsoft Vendor


    Did you run the cmdlets in the Exchange Management Shell? The Get-MailContact cmdlet is part of the module ExchangePowerShell.

    To install the Exchange Management Shell you may refer to this link

    Best Regards,
    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Roberto Sitzia 41 Reputation points

    Hi Ian Xue,

    thanks for your reply and support.

    I'm working with Exchange Online (as part of Microsoft 365 subscription) but the link to install Exchange Management Shell is intended for Exchange Server 2016/2019.

    As I have written, actually I'm able to connect to Exchange Online PowerShell environment through EXO V2 module, but unable to use the Get-MailContact cmdlet.
    Can I use it in Exchange Online?
    If yes, how?

    Thank you in advance.

    Best regards,

    0 comments No comments