Change Fonts

SOTI MobiControl
Windows

Changing system fonts on Windows 10 is simple with scripts. If the font files are already installed on the device, administrators can use the SOTI MobiControl web console to send scripts and set the system font to a specified font family or typeface.

Important:
  • It is recommended to test the script on a local/ test machine for its purpose and effects. 
  • SOTI MobiControl will not be responsible for any damage/loss to the data/setup based on the behavior of the script.

Change font

1 $string1 = "Windows Registry Editor Version 5.00
2 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts]
3 `"Segoe UI (TrueType)`"=`"`"
4 `"Segoe UI Bold (TrueType)`"=`"`"
5 `"Segoe UI Bold Italic (TrueType)`"=`"`"
6 `"Segoe UI Italic (TrueType)`"=`"`"
7 `"Segoe UI Light (TrueType)`"=`"`"
8 `"Segoe UI Semibold (TrueType)`"=`"`"
9 `"Segoe UI Symbol (TrueType)`"=`"`"
10 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
11 `"Segoe UI`"=`"$args`" "
12 Add-Content C:\MobiControl\new_font.reg $string1
13 Write-Output $?
14 Start-Process regedit.exe -ArgumentList '/s','C:\MobiControl\new_font.reg' -PassThru
15 Remove-Item -Path C:\MobiControl\new_font.reg

Reset font

1 $string1 = "Windows Registry Editor Version 5.00
2 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts]
3 `"Segoe UI (TrueType)`"=`"segoeui.ttf`"
4 `"Segoe UI Black (TrueType)`"=`"seguibl.ttf`"
5 `"Segoe UI Black Italic (TrueType)`"=`"seguibli.ttf`"
6 `"Segoe UI Bold (TrueType)`"=`"segoeuib.ttf`"
7 `"Segoe UI Bold Italic (TrueType)`"=`"segoeuiz.ttf`"
8 `"Segoe UI Emoji (TrueType)`"=`"seguiemj.ttf`"
9 `"Segoe UI Historic (TrueType)`"=`"seguihis.ttf`"
10 `"Segoe UI Italic (TrueType)`"=`"segoeuii.ttf`"
11 `"Segoe UI Light (TrueType)`"=`"segoeuil.ttf`"
12 `"Segoe UI Light Italic (TrueType)`"=`"seguili.ttf`"
13 `"Segoe UI Semibold (TrueType)`"=`"seguisb.ttf`"
14 `"Segoe UI Semibold Italic (TrueType)`"=`"seguisbi.ttf`"
15 `"Segoe UI Semilight (TrueType)`"=`"segoeuisl.ttf`"
16 `"Segoe UI Semilight Italic (TrueType)`"=`"seguisli.ttf`"
17 `"Segoe UI Symbol (TrueType)`"=`"seguisym.ttf`"
18 `"Segoe MDL2 Assets (TrueType)`"=`"segmdl2.ttf`"
19 `"Segoe Print (TrueType)`"=`"segoepr.ttf`"
20 `"Segoe Print Bold (TrueType)`"=`"segoeprb.ttf`"
21 `"Segoe Script (TrueType)`"=`"segoesc.ttf`"
22 `"Segoe Script Bold (TrueType)`"=`"segoescb.ttf`"
23 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
24 `"Segoe UI`"=- "
25 Add-Content C:\MobiControl\new_font.reg $string1
26 Write-Output $?
27 Start-Process regedit.exe -ArgumentList '/s','C:\MobiControl\new_font.reg' -PassThru
28 Remove-Item -Path C:\MobiControl\new_font.reg

Was this helpful?

Need more help?
Ask Community