Forums on Intune, SCCM, and Windows 11

Welcome to the forums. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your topics and posts, as well as connect with other members through your own private inbox!

PENDING Install Fonts using Sccm deployment

  • Thread starter Thread starter suraj
  • Start date Start date
  • Replies Replies 2
  • Views Views 2K

suraj

Member
Messages
8
Reaction score
1
Points
3
HI Prajawal,

I have tried your article related to font installation on win 10 21H2 and config manager 2111 environment. Deployment states successful but I could not see any fonts installed in the fonts folder. please help with this.If you have new script please share
 
HI Prajawal,

I have tried your article related to font installation on win 10 21H2 and config manager 2111 environment. Deployment states successful but I could not see any fonts installed in the fonts folder. please help with this.If you have new script please share

below is my script for the font install. dont remember where i downloaded it from but it works like charm

#Set Current Directory
$ScriptPath = $MyInvocation.MyCommand.Path
$CurrentDir = Split-Path $ScriptPath

#Set Font Reg Key Path
$FontRegPath = "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts"

#Grab the Font from the Current Directory
foreach ($Font in $(Get-ChildItem -Path $CurrentDir -Include *.ttf, *.otf, *.fon, *.fnt -Recurse)) {

#Copy Font to the Windows Font Directory
Copy-Item $Font "C:\Windows\Fonts" -Force

#Set the Registry Key to indicate the Font has been installed
New-ItemProperty -Path $FontRegPath -Name $Font.Name -Value $Font.Name -PropertyType String | Out-Null
}
 
Back
Top