Links

Custom Fonts

PowerShell script to silently download and install fonts from a zip archive.

Overview

Dev Insight: This script was written to deploy custom fonts required by an accounting software vendor. It uses a third-party utility called FontReg.
Prerequisites:
  1. 1.
    Gather necessary font files (.ttf, .ttc, or .otf)
  2. 2.
    Compress fonts into an archive (.zip)
  3. 3.
    Download FontReg
  4. 4.
    Upload archive & FontReg.exe to your preferred file host
  5. 5.
    Insert the url to download FontReg.exe on line 8 of the script below
  6. 6.
    Deploy via your RMM solution

Script

Note: To help prevent abuse, this script will only move font files with the .ttf, .ttc, or .otf file extensions to the Local Font Store. Custom fonts will need to be one of these types in order to be installed.
Usage: .\InstallFonts.ps1 -URL https://example.com/fonts.zip

Learn More

Want to learn more about how this script works? Included below are official documentation links for all cmdlets used in this script, as well as other useful documentation where applicable.
Cmdlet Documentation: