{"id":233,"date":"2016-05-25T15:34:09","date_gmt":"2016-05-25T15:34:09","guid":{"rendered":"http:\/\/www.evermoretechnologies.com\/blog\/?p=233"},"modified":"2017-12-15T23:40:32","modified_gmt":"2017-12-15T23:40:32","slug":"winmail-dat-attachments-from-outlook-on-office-365","status":"publish","type":"post","link":"https:\/\/www.evermoretechnologies.com\/blog\/2016\/05\/winmail-dat-attachments-from-outlook-on-office-365\/","title":{"rendered":"Winmail.dat attachments from Outlook on Office 365"},"content":{"rendered":"<p>So, I setup a new e-mail account on Office 365. \u00a0For two reasons:<br \/>\n1. I like using Outlook and a hosted Exchange instance lets me leverage way more Outlook features than something like Google Apps.<br \/>\n2. I am leaving my current job and will be losing my Word, Excel, etc. software when I do.<\/p>\n<p>It seemed like the best of both worlds, however; after I setup my account in Outlook, all of my test e-mails had a winmail.dat attachment on them.<\/p>\n<p>I came to learn that this is because Office 365 uses a TNEF format that works great on Exchange and Outlook, but other e-mail servers and clients can get confused by them.<\/p>\n<p>Some research in Microsoft documentation told me how to change that setting for one domain or one e-mail, as long as that e-mail was in my contacts, but not how to globally change it. \u00a0Luckily I found the answer. \u00a0Use Windows Powershell to login to your Office 365 instance.<\/p>\n<p>First, run Windows Powershell as an Administrator. \u00a0This is needed to change an Execution policy. \u00a0Then type in:<\/p>\n<p><code>Set-ExecutionPolicy RemoteSigned<\/code><\/p>\n<p>Once that is done, you can setup your session using these commands.<\/p>\n<p><code>$UserCredential = Get-Credential<\/code><\/p>\n<p>This will open a dialog box where you can type in your office 365 username and password. (myusername@mycompany.onmicrosoft.com)<\/p>\n<p>Then:<br \/>\n<code>$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https:\/\/outlook.office365.com\/powershell-liveid\/ -Credential $UserCredential -Authentication Basic -AllowRedirection<\/code><\/p>\n<p>Finally:<br \/>\n<code>Import-PSSession $Session<\/code><\/p>\n<p>Now you&#8217;re connected. To set the policy for all external e-mails to not use the TNEF format, run this command.<br \/>\n<code>Set-RemoteDomain Default -TNEFEnabled $false<\/code><\/p>\n<p>Then just to clean things up, run this command<br \/>\n<code>Remove-PSSession $Session<\/code><\/p>\n<p>This simple set of rules did the trick for me.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So, I setup a new e-mail account on Office 365. \u00a0For two reasons: 1. I like using Outlook and a hosted Exchange instance lets me leverage way more Outlook features&#8230; <a href=\"https:\/\/www.evermoretechnologies.com\/blog\/2016\/05\/winmail-dat-attachments-from-outlook-on-office-365\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.evermoretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/233"}],"collection":[{"href":"https:\/\/www.evermoretechnologies.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.evermoretechnologies.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.evermoretechnologies.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.evermoretechnologies.com\/blog\/wp-json\/wp\/v2\/comments?post=233"}],"version-history":[{"count":1,"href":"https:\/\/www.evermoretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/233\/revisions"}],"predecessor-version":[{"id":234,"href":"https:\/\/www.evermoretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/233\/revisions\/234"}],"wp:attachment":[{"href":"https:\/\/www.evermoretechnologies.com\/blog\/wp-json\/wp\/v2\/media?parent=233"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.evermoretechnologies.com\/blog\/wp-json\/wp\/v2\/categories?post=233"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.evermoretechnologies.com\/blog\/wp-json\/wp\/v2\/tags?post=233"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}