Installs a custom font from a network share, registers it in Windows, and refreshes the font cache without requiring a reboot. Safe for SCCM deployment and repeat runs.
- Windows 10/11, PowerShell 5.1
- Admin privileges
- Access to a shared
.otfor.ttffont file
- Checks admin rights.
- Copies the font file →
%WINDIR%\Fonts. - Updates registry:
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts - Broadcasts
WM_FONTCHANGEso apps see the font immediately.
Run from an elevated console:
powershell.exe -ExecutionPolicy Bypass -File .\Install-Font.ps10Success1Copy/registry error2Invalid path or preprocessing failure3Not admin
- File exists in
%WINDIR%\Fonts - Registry has correct display name → filename mapping
- Font visible in Settings → Fonts
Install command:
powershell.exe -ExecutionPolicy Bypass -File Install-Font.ps1
Detection options:
- File exists in
%WINDIR%\Fonts - Registry entry present under Fonts key
- Idempotent: reruns won’t break existing installs.
- To update: replace font file on network share and redeploy.
- To uninstall: remove file and registry value, then rebroadcast font change.