[ITEM]
08.05.2020

Install Fonts Remotely With Powershell

99

To install PowerShell on a Windows client or Windows Server (works on Windows 7 SP1, Server 2008 R2, and later), download the MSI package from our GitHub releases page. Scroll down to the Assets section of the Release you want to install. The Assets section may be.

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 = 'PATHTOFONTS'
$Shell = New-Object -ComObject Shell.Application
$SystemFontsFolder = $Shell.Namespace($ssfFonts)
$FontFiles = Get-ChildItem $fontSourceFolder
$SystemFontsPath = $SystemFontsFolder.Self.Path
$rebootFlag = $false
foreach($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 message
if($rebootFlag){
Write-Host 'At least one existing font overwritten. A reboot may be necessary.'
}

I had to install a bunch of fonts on many computers and the stuff on Google wasn't much help.
So, I thought about it for like two seconds and came up with a way to install the fonts remotely.

1. Install the fonts like normal on the a test system.

2. Go to that systems registry
a.Start>run>regedit
b. Go to: HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionFonts
c. R-Click on the fonts folder and select export (export it to your desktop)
d. Delete all of the fonts listed in the exported file, except the ones you want to deploy
e. Also, Do NOT delete these lines:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionFonts]

3. Copy the script below (Make sure to change the paths to refelect your network / BTW it is a batch file!)

Powershell script to install fonts sccm

————Copy Everything Below This Line————
xcopy 'SERVER NAME HERESharesFONTWordPerfect Fonts*.*' 'C:WINDOWSFonts' /Y /C /Q
xcopy 'SERVER NAME HEREDeployRegkeysfonts.reg' 'C:scripts' /Y /C /Q
regedit /S C:scriptsfonts.reg
————Copy Everything Above This Line————

Drvstore folder vista Tech support scams are an industry-wide issue where scammers trick you into paying for unnecessary technical support services. You can help protect yourself from scammers by verifying that the contact is a Microsoft Agent or Microsoft Employee and that the phone number is an official Microsoft global customer service number. Driver Store.; 2 minutes to read; In this article. Starting with Windows Vista, the driver store is a trusted collection of inbox and third-party driver packages.The operating system maintains this collection in a secure location on the local hard disk.

Deploy this via a logon script or Altiris
*** The computer will need to be rebooted for the added fonts to register, you could always add
(shutdown.exe -r -f -t 10) to the end of the script!

This information is provided 'AS IS' with no warranties expressed or implied.

[/ITEM]
[/MAIN]
08.05.2020

Install Fonts Remotely With Powershell

75

To install PowerShell on a Windows client or Windows Server (works on Windows 7 SP1, Server 2008 R2, and later), download the MSI package from our GitHub releases page. Scroll down to the Assets section of the Release you want to install. The Assets section may be.

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 = 'PATHTOFONTS'
$Shell = New-Object -ComObject Shell.Application
$SystemFontsFolder = $Shell.Namespace($ssfFonts)
$FontFiles = Get-ChildItem $fontSourceFolder
$SystemFontsPath = $SystemFontsFolder.Self.Path
$rebootFlag = $false
foreach($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 message
if($rebootFlag){
Write-Host 'At least one existing font overwritten. A reboot may be necessary.'
}

I had to install a bunch of fonts on many computers and the stuff on Google wasn't much help.
So, I thought about it for like two seconds and came up with a way to install the fonts remotely.

1. Install the fonts like normal on the a test system.

2. Go to that systems registry
a.Start>run>regedit
b. Go to: HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionFonts
c. R-Click on the fonts folder and select export (export it to your desktop)
d. Delete all of the fonts listed in the exported file, except the ones you want to deploy
e. Also, Do NOT delete these lines:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionFonts]

3. Copy the script below (Make sure to change the paths to refelect your network / BTW it is a batch file!)

Powershell script to install fonts sccm

————Copy Everything Below This Line————
xcopy 'SERVER NAME HERESharesFONTWordPerfect Fonts*.*' 'C:WINDOWSFonts' /Y /C /Q
xcopy 'SERVER NAME HEREDeployRegkeysfonts.reg' 'C:scripts' /Y /C /Q
regedit /S C:scriptsfonts.reg
————Copy Everything Above This Line————

Drvstore folder vista Tech support scams are an industry-wide issue where scammers trick you into paying for unnecessary technical support services. You can help protect yourself from scammers by verifying that the contact is a Microsoft Agent or Microsoft Employee and that the phone number is an official Microsoft global customer service number. Driver Store.; 2 minutes to read; In this article. Starting with Windows Vista, the driver store is a trusted collection of inbox and third-party driver packages.The operating system maintains this collection in a secure location on the local hard disk.

Deploy this via a logon script or Altiris
*** The computer will need to be rebooted for the added fonts to register, you could always add
(shutdown.exe -r -f -t 10) to the end of the script!

This information is provided 'AS IS' with no warranties expressed or implied.