How to change the default font size in the new Outlook with Intune… not

Recently I was asked the typical simple task – “Hey, can we setup the default Font Size in our Outlook to Arial 11 ?”

I had done this task in the past but it was some time ago and I had forgotten how I did it but I remembered that I did “something with Intune”. Naturally I googled how to do it with Intune and came upon articles, which were telling me to create an Outlook template, that the settings will be saved to the Registry key Path:

Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\16.0\Common\MailSettings

And then to create a PowerShell script, and Remediation Script and deploy it to the machines – All Good !

You can imagine my surprise when I went to the registry key and found 0 values

So this is the “….Not” part of the Blog – we don’t even need to do this with Intune anymore – it is super easy with the new Outlook – we can do this all directly from PowerShell

<#
.SYNOPSIS
This script installs and imports the Exchange Online Management module, connects to Exchange Online, sets the default font name and size for all mailboxes, and then disconnects from Exchange Online.

.DESCRIPTION
The script performs the following steps:
1. Installs the Exchange Online Management module if it is not already installed.
2. Imports the Exchange Online Management module.
3. Connects to Exchange Online using the specified user principal name.
4. Retrieves all mailboxes and sets the default font name and size for each mailbox.
5. Disconnects from Exchange Online.

.NOTES
- Ensure that you have the necessary permissions to connect to Exchange Online and modify mailbox settings.
- The script uses the `-Force`, `-AllowClobber`, `-AllowPrerelease`, and `-SkipPublisherCheck` parameters to install the module without user intervention.
- The `-ResultSize unlimited` parameter is used to retrieve all mailboxes.

#>

Install-Module -Name ExchangeOnlineManagement -Force -AllowClobber -AllowPrerelease -SkipPublisherCheck

Import-Module ExchangeOnlineManagement

Connect-ExchangeOnline -UserPrincipalName <User Name>

Get-Mailbox -ResultSize unlimited | Set-MailboxMessageConfiguration -DefaultFontName <Insert Font Name e.G. Arial> -DefaultFontSize <Insert Font Size e.G. 11>

Disconnect-ExchangeOnline

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *