I found this awesome Windows powershell script that allows you to install fonts via the command line. This is very convenient for mass deployment.$ssfFonts = 0x14$fontSourceFolder = "\\PATH\TO\FONTS"$Shell = New-Object -ComObject Shell.Application$SystemFontsFolder = $Shell.Namespace($ssfFonts)$FontFiles = Get-ChildItem $fontSourceFolder$SystemFontsPath = $SystemFontsFolder.Self.Path$rebootFlag = $falseforeach($FontFile in $FontFiles) { # $FontFile will be copied to this path: $targetPath = Join-Path $SystemFontsPath $FontFile.Name # So, see if target exists... if(Test-Path $targetPath){ # font file with the same name already there. # delete and replace. $rebootFlag = $true Remove-Item $targetPath -Force Copy-Item $FontFile.FullName $targetPath -Force }else{ #install the font. $SystemFontsFolder.CopyHere($FontFile.fullname) }}#Follow-up messageif($rebootFlag){ Write-Host "At least one existing font overwritten. A reboot may be necessary."}
Related Articles
Linux - Specify From Address W...
I struggled a bit with figuring out how to specify the from email address when sending mail on the Linux command line. In short, you need to use the -r option....
Windows - Disable Startup Reco...
If a colleague's PC crashes, Windows will restart into start-up recovery. The problem here is that start-up recovery often makes an even bigger mess of the com...
Windows - Turn Off Internet Ex...
Yes, I know it's a security feature, but it's very frustrating for my colleagues that constantly download PDFs via Internet Explorer, confirming each and every ...
How to Spot a Fraudulent Onlin...
I offer some tips on distinguishing lawful online businesses from dishonest ones. Check the site reputation and scan for malware. I compiled a list a service...