Install a Font for All Users from the Command Line
Copy a .ttf/.otf font into C:\Windows\Fonts and register it under HKLM so every account and every program can use it.
01Command
$ copy "C:\Downloads\MyFont.ttf" "%windir%\Fonts\" && reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" /v "MyFont (TrueType)" /t REG_SZ /d "MyFont.ttf" /f02What it does
Right-clicking a font and choosing "Install" only installs it for the current user; "Install for all users" needs admin rights and does exactly what this command does — puts the file in the system Fonts folder and creates a registry entry that tells Windows the font exists. The registry value name must describe the font (e.g. "MyFont (TrueType)" for .ttf files, "(OpenType)" for .otf), and the data is just the file name, not the full path. New apps pick the font up after they restart; you can also call AddFontResource or reboot if an old program doesn't see it.
03Risk
04Undo
$ reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" /v "MyFont (TrueType)" /f && del "%windir%\Fonts\MyFont.ttf"05Sources
- AddFontResourceA function (wingdi.h)Evidence: Documents how the system makes a font available: the font file must be placed in the Windows Fonts directory and registered under HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts.
- reg - SS64Evidence: Reference for reg add / reg delete syntax used to create and remove the font registry value.
Last verified: 2026-09-18 · Category: System & Settings
06Related solutions
Diagnose NTFS file system errors and bad sectors on any volume — including the system drive while Windows is running — before committing to a repair.
Robocopy is Windows' built-in robust file copier: use /MIR to keep a destination folder as an exact one-way mirror of a source, resumable and restartable.
Two-step command sequence that makes you the owner of a locked file tree and grants yourself full control — the standard fix for 'Access is denied' on old profiles and OS reinstall leftovers.