Skip to content
NormalEmail.dotm Intune
Home » Outlook Default Template with Intune (NormalEmail.dotm)

Outlook Default Template with Intune (NormalEmail.dotm)

Similar to Word, there is also a template file for e-mails in Outlook. This Outlook / Mail template can be easily distributed with Intune and a PowerShell Script or Win32 App. Unfortunately, not all settings are included in it. In addition, there are some registry entries that are required for the standard font etc.

I've told you how to distribute the "Normal.dotm" for Word summarized here.

Table of Contents

PowerShell to distribute the Outlook template

The script consists of two parts. In the first, the registry entries for the standard fonts for new mails and replies are set. In the second, I distribute the "NormalEmail.dotm" to also have the format templates under "Format Text".

To start, download the whole package using the button above.

In the first lines you have to specify the desired fonts and sizes. These are in a binary format. But don't worry, you can simply click together the settings in Outlook and then insert the variables in the script.
To do this, navigate in Outlook under "File > Options > Mail > Stationery and Fonts".
Here you can now prepare the settings.
Please do not use any special / custom fonts. These are often displayed unformatted by external recipients.

Outlook Settings, Mail, Stationery and Fonts
Outlook Settings, Stationery and Fonts

You can now find the settings you have made in the Registry Editor and transfer them from there to the script.
Computer\HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\MailSettings

Registry, MailSettings
# Font Settings Outlook $ComposeFontComplex = "" $ComposeFontSimple = "" $MarkCommentsWith = "" $ReplyFontComplex = "" $ReplyFontSimple = "" $TextFontComplex = "" $TextFontSimple = "" ####################################################### # Font Settings ####################################################### $Path = "HKCU:\Software\Policies\Microsoft\Office\16.0\Common\MailSettings" if(!(Test-Path $Path)){New-Item -Path $Path -Force} if($ComposeFontComplex){Set-ItemProperty -Path $Path -Name "ComposeFontComplex" -Value $ComposeFontComplex -Type "Binary"} if($ComposeFontSimple){Set-ItemProperty -Path $Path -Name "ComposeFontSimple" -Value $ComposeFontSimple -Type "Binary"} if($MarkCommentsWith){Set-ItemProperty -Path $Path -Name "MarkCommentsWith" -Value $MarkCommentsWith -Type "Binary"} if($ReplyFontComplex){Set-ItemProperty -Path $Path -Name "ReplyFontComplex" -Value $ReplyFontComplex -Type "Binary"} if($ReplyFontSimple){Set-ItemProperty -Path $Path -Name "ReplyFontSimple" -Value $ReplyFontSimple -Type "Binary"} if($TextFontComplex){Set-ItemProperty -Path $Path -Name "TextFontComplex" -Value $TextFontComplex -Type "Binary"} if($TextFontSimple){Set-ItemProperty -Path $Path -Name "TextFontSimple" -Value $TextFontSimple -Type "Binary"}
Code language: PowerShell (powershell)

The easiest way to prepare the "NormalEmail.dotm" is in Word. You can download my version from GitHub or rename an existing "Normal.dotm" to "NormalEmail.dotm" and customize it to suit you.
You don't have to change anything in the script to configure this file, just put it in the package and create a Win32 app from it.

With the "NormalEmail.dotm" you set the format templates in Outlook:

Demo Email, Styles

Create and upload Win32 app

As soon as you have filled in the registry keys and put your "NormalEmail.dotm" file in the folder, you can create a Win32 app from the whole thing. To do this, proceed as follows:

  1. Download the current "Microsoft Win32 Content Prep Tool" down.
  2. Open the tool and enter the following variables:
    1. Path to the folder, for example: C:\GitHub\scloud\Normal mail template
    2. install.ps1
    3. Path to the folder, for example: C:\GitHub\scloud\Normal mail template
Create Win32 App for NormalEmail.dotm

You will then find the finished win32 app with the name "install.intunewin" in the specified folder and can use it in the Microsoft Endpoint Manager under "Apps > Windows +Add" upload.

In the first step you enter at least a name, a description and a publisher. In the second you have to enter the following installation and deinstallation command.
It is also important that the installation context "users" is selected.

install command%SystemRoot%\sysnative\WindowsPowerShell\v1.0\powershell.exe -windowstyle hidden -executionpolicy bypass -command .\install.ps1
uninstall command%SystemRoot%\sysnative\WindowsPowerShell\v1.0\powershell.exe -windowstyle hidden -executionpolicy bypass -command .\uninstall.ps1
create win32 app for NormalEmail.dotm in Intune
install command

In the "Requirements" make sure that your managed operating systems are supported. There is no special requirement apart from Office 2016.

With the "Detection Rule" you can upload the prepared "check.ps1" file from my template.

NormalEmail.dotm detection rule PowerShell

We have no dependencies and only have to assign the package to the desired group at the end. If you wait a bit or install the app via Company Portal, the user has received the default Outlook template via Intune and you can update or delete it at any time.

Distribute the update of the Outlook template

If you want to update your template, you can do this by adjusting the "NormalEmail.dotm" and / or the registry entries and adjusting the version in the second line of "install.ps1" and "check.ps1". You can then repackage the Win32 app and upload it to the existing app in the Endpoint Manager. Don't forget to re-upload the "check.ps1" too!

1 thought on “Outlook Standard-Vorlage mit Intune (NormalEmail.dotm)”

  1. Pingback: Manage Office Templates with SharePoint and Intune | scloud

Leave a Reply

Your email address will not be published.

de_CH DE
de_CH DE
en_US EN
Exit mobile version