Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Error when trying to resolve winmail.dat problem in Office 365

Posted on 2016-08-24
Medium Priority
Last Modified: 2016-08-30

I am getting the attached error when trying to run through the following fix for Office 365 emails.

Open Powershell as an Admin

Set-ExecutionPolicy RemoteSigned

$UserCredential = Get-Credential

(input office 365 admin login details)

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri -Credential $UserCredential -Authentication Basic -AllowRedirection

Import-PSSession $Session

Set-RemoteDomain Default -TNEFEnabled $false

To confirm that the setting change was applied use:

Get-RemoteDomain |fl

In the returned results, look for:  TNEFEnabled:  False

The above fix is intented to resolve the winmail.dat problem that happens with some recipients when sending to btinernet accounts.

Is it possible someone would be able to shed any light on what this error means please?

Any help is appreciated.

Kind regards,
Systemagic Support.
Question by:systemagic
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
LVL 43

Expert Comment

by:Vasil Michev (MVP)
ID: 41768786
I dont see any attachment, maybe try uploading it again?

Author Comment

ID: 41768803
Apologies, can you now see the attachment?
LVL 43

Expert Comment

by:Vasil Michev (MVP)
ID: 41768814
Yup. It seems that the user you are connected with doesnt have the necessary permissions. Make sure you run it with a user that has at least the Exchange admin role.
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 41775846
Thank you for that Vasil, I have had a look in the Exchange admin center and can't find anywhere to assign the Exchange admin role to that user.

Do you know where I need to be looking in there please?

Thanks for your help.
LVL 43

Accepted Solution

Vasil Michev (MVP) earned 2000 total points
ID: 41775864
Go to the O365 portal -> Admin -> Users -> select the users -> Roles -> assign the Exchange admin role (or Global admin). Or simply run the cmdlet with account that already has the permissions.

Author Closing Comment

ID: 41776233
Thanks for your help, believe this has resolved it.

Featured Post

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
Cancel future meetings from user mailboxes in Office 365 using Remove-CalendarEvents
In a previous video Micro Tutorial here at Experts Exchange (, I explained how to get a free, one-month trial of Office …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question