“Open Sans Extrabold (TrueType)”=”OpenSans-ExtraBold.ttf” “C:\Windows\System32\config\systemprofile\AppData\Local\Microsoft\Windows\Fonts\”įor scripting, resort to something simple (no 0x14) (simple…is working for me) HKEY_USERS\.DEFAULT\Software\Microsoft\Windows NT\CurrentVersion\Fonts Yes, there are other areas Font data is stored in 1809, if using SCCM and System Account: Sc config "FontCache3.0.0.0" start = auto ping -n 4 127. Sc config "FontCache" start = auto ping -n 4 127. Reg DELETE "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" /fĭel /f /a /q "C:\Windows\ServiceProfiles\LocalService\AppData\Local\*FontCache*" del /f /a /q "C:\Windows\System32\FNTCACHE.DAT" del /q "C:\Users\%username%\AppData\Local\Microsoft\Windows\Fonts\*.*" Sc config "FontCache3.0.0.0" start = disabled
#Stop sc d font windows 10
Rebuild Font cache in Windows 10 sc stop "FontCache" ping -n 10 127. HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts If fonts don’t show up in C:\Windows\Fonts, delete the fonts from the user profile and the user’s registry-using the admin profile (or a different profile)Ĭ:\Users\%username%\AppData\Local\Microsoft\Windows\Fonts
#Stop sc d font install
Windows 1809 breaks PowerShell script to install fontĬan no longer install fonts via script in Windows 10 1809
Basically, this causes font issues, where the fonts appear to be installed, but are not. Since build 1809, the shell variable 0x14 is being overloaded and redirected to the user’s profile (if using SCCM and admin mode, the systemprofile is used). (New-Object -ComObject Shell.Application).Namespace(0x14).CopyHere($_.fullname) Remove-ItemProperty -Path HKLM:$path -Name "Open Sans Semibold Italic (TrueType)" Remove-ItemProperty -Path HKLM:$path -Name "Open Sans (TrueType)" Remove-ItemProperty -Path HKLM:$path -Name "Open Sans Semibold (TrueType)" Remove-ItemProperty -Path HKLM:$path -Name "Open Sans Light Italic (TrueType)" Remove-ItemProperty -Path HKLM:$path -Name "Open Sans Light (TrueType)"
Remove-ItemProperty -Path HKLM:$path -Name "Open Sans Italic (TrueType)" Remove-ItemProperty -Path HKLM:$path -Name "Open Sans Extrabold Italic (TrueType)" Remove-ItemProperty -Path HKLM:$path -Name "Open Sans Extrabold (TrueType)" Remove-ItemProperty -Path HKLM:$path -Name "Open Sans Bold Italic (TrueType)" Remove-ItemProperty -Path HKLM:$path -Name "Open Sans Bold (TrueType)" Remove-ItemProperty -Path HKLM:$path -Name "OpenSans (TrueType)" $path = "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" $ErrorActionPreference = "Silentl圜ontinue"