Use PowerShell to copy the font file into a Fonts folder, then register it in the registry; use HKCU for one user or HKLM for all users. Skip the registry step, and the font may copy to disk but never appear in apps or terminals. This guide shows the exact Windows install font PowerShell path from file to registration, plus how to verify it in Windows 10 and Windows 11.
Font install decision table
| Scenario | PowerShell action | Verification step |
|---|---|---|
| Single-user install | Copy the font file into %LOCALAPPDATA%\Microsoft\Windows\Fonts, then add a user-level name-to-file entry under HKCU\Software\Microsoft\Windows NT\CurrentVersion\Fonts. | Confirm the file exists in the user Fonts folder and the matching HKCU value points to that file name. |
| All-users install | Copy the font file into C:\Windows\Fonts, then add a machine-level name-to-file entry under HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts from an elevated PowerShell session. |
Confirm the file exists in C:\Windows\Fonts and the matching HKLM value is present for the font display name. |
| Silent batch install | Use one script to copy several font files into the target Fonts folder, then create the registry entries in one pass with no prompts. | Check each file path and each registry value, then open Settings > Personalization > Fonts or the font picker in a test app. |
| Nerd Fonts | Install the Nerd Fonts file the same way as any other font file, then choose it later in the terminal or editor that needs icon glyphs. | Confirm the Nerd Font name appears in the installed font list and in the app’s font picker. |
What you'll need
- Windows 10 or Windows 11.
- PowerShell 5.1 or PowerShell 7.
- The font file you want to install, usually .ttf, .otf, or a variable font file.
- Admin rights if you plan to write to
C:\Windows\Fontsand HKLM. - A font file name you can check after the copy.
- A terminal or editor for the final font choice check.
How do you install a font with PowerShell?
Use PowerShell to copy the font file into the right Fonts folder, then add the registry entry that points Windows to that file. The steps below use standard PowerShell commands and the built-in Windows font folders, including the system font location.
File to registry path
For a per-user install, the file lands in %LOCALAPPDATA%\Microsoft\Windows\Fonts and the matching registry entry goes under HKCU\Software\Microsoft\Windows NT\CurrentVersion\Fonts. For an all-users install, the file goes in C:\Windows\Fonts and the registry entry goes under HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts. Per-user installs are the safer choice on supported Windows 10 and Windows 11 builds, but some older builds and some apps may not pick them up consistently, so an all-users install can still be the better choice there.
OpenType and TrueType files use the same flow here.
- Pick the install scope. Use HKCU and the user Fonts folder if only one Windows account needs the font. Use HKLM and
C:\Windows\Fontsif every account on the device should see it. - Copy the font file. Put the file in the target Fonts folder first, then register it. If the download came in a ZIP, extract the actual .ttf or .otf file first. The copy gives Windows the file itself; the registry entry tells Windows and apps which face name points to that file.
- Add the name mapping. Create the registry value under the matching key and set its data to the font file name.
- Open the font list. Check the installed font list in Settings > Personalization > Fonts, then confirm the font appears in the app where you plan to use it. Windows may not show the font there until the session refreshes or the font cache updates, so log off and back on or restart if it does not appear right away.
Use the all-users version when needed. Run PowerShell as administrator, then use C:\Windows\Fonts and the HKLM path:
$fontFile = 'C:\Path\To\YourFont.ttf'
$target = 'C:\Windows\Fonts'
$regPath = 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts'
$fontName = 'Your Font Name (TrueType)'
Copy-Item $fontFile -Destination $target -Force
New-ItemProperty -Path $regPath -Name $fontName -PropertyType String -Value ([IO.Path]::GetFileName($fontFile)) -Force | Out-NullUse PowerShell commands. A per-user install can use commands like these:
$fontFile = 'C:\Path\To\YourFont.ttf'
$target = Join-Path $env:LOCALAPPDATA 'Microsoft\Windows\Fonts'
$regPath = 'HKCU:\Software\Microsoft\Windows NT\CurrentVersion\Fonts'
$fontName = 'Your Font Name (TrueType)'
New-Item -ItemType Directory -Path $target -Force | Out-Null
Copy-Item $fontFile -Destination $target -Force
New-ItemProperty -Path $regPath -Name $fontName -PropertyType String -Value ([IO.Path]::GetFileName($fontFile)) -Force | Out-NullHow do you install Nerd Fonts with PowerShell?
Install Nerd Fonts the same way you install any other font file, then select that face in Windows Terminal, another terminal host, or an editor. Nerd Fonts are common for PowerShell users because they add icon glyphs that menus and prompts can use.
Developer-font path
- Choose the Nerd Font file. Use the exact font file you downloaded, then decide whether the font is for one account or for all users.
- Select it in your app. Open the terminal or editor font settings and pick the Nerd Font face there.
Copy and register it. Copy it into the chosen Fonts folder and add the matching registry entry under HKCU or HKLM. For example:
$fontFile = 'C:\Path\To\NerdFont.ttf'
$target = Join-Path $env:LOCALAPPDATA 'Microsoft\Windows\Fonts'
$regPath = 'HKCU:\Software\Microsoft\Windows NT\CurrentVersion\Fonts'
$fontName = 'Nerd Font Name (TrueType)'
New-Item -ItemType Directory -Path $target -Force | Out-Null
Copy-Item $fontFile -Destination $target -Force
New-ItemProperty -Path $regPath -Name $fontName -PropertyType String -Value ([IO.Path]::GetFileName($fontFile)) -Force | Out-NullHow do you verify the font was registered?
Check both places: the file on disk and the registry name-to-file mapping. If only the file exists, the font may not show up in apps. If only the registry value exists, Windows has nothing to load from the Fonts folder. Check %LOCALAPPDATA%\Microsoft\Windows\Fonts for a per-user install, or C:\Windows\Fonts for an all-users install, then check the matching registry branch.
Verification checklist
- File exists in the target Fonts folder.
- Registry value exists under HKCU\Software\Microsoft\Windows NT\CurrentVersion\Fonts or HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts.
- Value data points to the exact file name.
- Font appears in Settings > Personalization > Fonts.
- Font appears in the app's own font list or picker.
Common mistakes
Copying a font file without registration is the most common miss in scripted installs. Another frequent error is writing to HKLM from a non-elevated session. A third is mixing up font installation and PowerShell console font choice; those are separate settings.
What goes wrong
- The file is copied, but the face never appears. Add the registry mapping under the right branch.
- The install works for one account only. Check whether you wrote to HKCU instead of HKLM.
- The terminal still shows the old font. Change the console host font in its settings; installation does not switch it automatically.
- The registry value points to the wrong file name. Correct the value so it matches the font file you copied.
How do you list installed fonts in PowerShell?
List fonts by checking the same registry branches used for installation and by looking in the Windows Fonts folders. That gives you a direct view of what Windows has registered, which is more useful than guessing from file names alone.
Listing targets
For a per-user check, inspect HKCU\Software\Microsoft\Windows NT\CurrentVersion\Fonts and %LOCALAPPDATA%\Microsoft\Windows\Fonts. For a machine-wide check, inspect HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts and C:\Windows\Fonts. Use the file name together with the registry entry to confirm the install.
Get-ItemProperty 'HKCU:\Software\Microsoft\Windows NT\CurrentVersion\Fonts'
Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts'
Get-ChildItem "$env:LOCALAPPDATA\Microsoft\Windows\Fonts"
Get-ChildItem 'C:\Windows\Fonts'How to change PowerShell font
Change the console host font in the terminal or PowerShell window settings, not in the font installation step. The font must already be installed before it can appear in the face list. Then choose the font face and size in the host’s appearance settings.
Console font settings
PowerShell 5.1 and PowerShell 7 both run in a console host that can use its own font setting. Windows Terminal has its own profile settings, while the classic console window uses a different properties dialog. The install step does not set the console face for you.
Frequently asked questions
What font is powershell
PowerShell does not have one fixed font. The active font depends on the console host settings, such as Windows Terminal profile settings or the classic console window properties. If you want a specific face, install it first, then choose that face in the host’s font picker.
Which font used on Windows PowerShell?
Windows PowerShell uses whatever font the console host is set to use. The installed font list and the selected console font are separate things. Check the host settings if the face looks wrong, and check the registry if the font does not appear in the picker at all.
How to change powershell font: open the font settings
Open the font settings for the host you are using, then select the installed face and size there. For Windows Terminal, edit the profile appearance settings. For the classic console window, use its Properties dialog. The font must already be installed first.
How do you install a font from the Windows command line?
Use PowerShell for the copy-and-register path. Copy the file into %LOCALAPPDATA%\Microsoft\Windows\Fonts for one user or C:\Windows\Fonts for all users, then add the matching registry value under HKCU or HKLM.
How do you install fonts for all users with PowerShell?
Run an elevated PowerShell session, copy the font file into C:\Windows\Fonts, and create the font name mapping under HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts. Confirm both the file and the registry value afterward.
Can PowerShell install fonts silently?
Yes. A script can copy multiple font files and create the needed registry values without prompts. The key point is that the script still writes the file and the matching registry entry for each font, then checks both locations after the batch completes.