Deploy fonts using PSAppDeployTookit through Microsoft Endpoint ManagerA short manual about deploying fonts to end-user devices using Microsoft Endpoint Manager and PSAppDeployToolkit.

A couple of weeks ago I received a question from my colleague about how to deploy fonts to end-user devices using Microsoft Endpoint Manager (Intune).

Earlier, I saw multiple posts on how to do this using simple PowerShell scripts. Of course - that can be done this way, but I decided to learn how to use PSADT in different cases.

So what I have done?

PSADT part

Show-InstallationWelcome -CloseApps 'iexplore' -AllowDefer -DeferTimes 3 -CheckDiskSpace -PersistPrompt
        $fonts = Get-ChildItem -Path $dirSupportFiles
        foreach ($font in $fonts) {
            Copy-File -Path "$dirSupportFiles\$($font.name)" -Destination "$envWindir\Fonts\$($font.name)"
            if ($font.Extension -eq ".ttf") {
                $fontType = "TrueType"
            }
            else {
                $fontType = "OpenType"
            }

            Set-RegistryKey -Key 'HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Fonts' -Name "$($font.baseName) $($fontType)" -Value $font.name -Type String
        }

Code is very simple - get all fonts from the SupportFiles folder, copy them to the Fonts folder and register it in the registry

Microsoft Win32 Content Prep Tool

1) You need to pack the earlier created package to the .intunewin file. The whole process I described here.

MEM part

How it is finally look in Installation Status?

Deploy fonts using PSAppDeployTookit through Microsoft Endpoint Manager

I’m planning more posts about PSADT because I’m in love with that software.

Thanks for reading!