question

andreasbright-4989 avatar image
0 Votes"
andreasbright-4989 asked RebeccaNeill-6585 commented

Configure default mail client

Hi,

How can I change the default mail client in Windows from a Endpoint Manager policy ?
I want to change it to Outlook.

/Andy

mem-intune-generalmem-intune-device-configurations
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

If office 365 is so good why do we have to do all that? It should have a link inside it to make it work. Anyhow I did all that and it was an epic fail except for the programming part. I cannot click on a photo and have it send to as one of the links in the photo says. It does not work and is one of the most missed useful links that windows 7 had. I am still amazed at how unfriendly Windows 10 is compared to Windows 7.

0 Votes 0 ·
LuDaiMSFT-0289 avatar image
4 Votes"
LuDaiMSFT-0289 answered LuDaiMSFT-0289 edited

@andreasbright-4989 Thanks for posting in our Q&A. From your description, I know you want to change the default email client to outlook. If there’s any misunderstanding, feel free to let us know.

I have done the test in my lab. Here are the detailed steps for the reference:

  1. Select a windows10 test machine , navigate to Settings > Apps > Default apps and configure the email default app to outlook;

  2. Open cmd as administrator and run command: Dism /Online /Export-DefaultAppAssociations:c:\DefAppAss.xml. This can export the required app association file.
    41786-image.png

  3. Only keep the following part in this XML file which configure the default app for email.
    <?xml version="1.0" encoding="UTF-8"?>
    <DefaultAssociations>
    <Association Identifier="mailto" ProgId="Outlook.URL.mailto.15" ApplicationName="Outlook" />
    </DefaultAssociations>


  4. Open the Base64 encoder and encode the content in the previous step to Base64 format. The result in Base64 format is the OMA-URI value. Here is the Base64 encoder I used:
    https://www.base64encode.net/
    Note: Non-Microsoft link, just for the reference.
    41832-image.png

  5. Go to Microsoft Endpoint manager admin center. Create a custom profile and deploy this profile to the group you want.
    Name : Set a name for this profile.
    OMA-URI setting: ./Vendor/MSFT/Policy/Config/ApplicationDefaults/DefaultAssociationsConfiguration
    Data Type: String
    Value (The value is gotten from step 4 ) :
    PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjxEZWZhdWx0QXNzb2NpYXRpb25zPiANCiAgPEFzc29jaWF0aW9uIElkZW50aWZpZXI9Im1haWx0byIgUHJvZ0lkPSJPdXRsb29rLlVSTC5tYWlsdG8uMTUiIEFwcGxpY2F0aW9uTmFtZT0iT3V0bG9vayIgLz4NCjwvRGVmYXVsdEFzc29jaWF0aW9ucz4=
    41747-image.png

  6. After the profile deploy successfully, try to restart this device. We can find the email default app has be changed to outlook.
    41718-image.png


Hope it can help.


If the response 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.


image.png (75.6 KiB)
image.png (251.7 KiB)
image.png (132.6 KiB)
image.png (55.5 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

RahulJindal-2267 avatar image
2 Votes"
RahulJindal-2267 answered Stephan-2587 commented

The only way I am aware of is using the OMA CSP DefaultAssociationsConfiguration, exported xml and a base64 encoder.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Seems to be the case. There's the option string (XML-file), but that doesn't seem to work. You still have to use the string and convert the xml to base64... :( Don't know why there's the option to upload a xml file if it doesn't work. Maybe for other settings, but surely not for this one.

0 Votes 0 ·