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

Posted on 2016-08-24
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 41

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 41

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.
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.


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 41

Accepted Solution

Vasil Michev (MVP) earned 500 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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

The following article is intended as a guide to using PowerShell as a more versatile and reliable form of application detection in SCCM.
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…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit If you want to manage em…

734 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