Solved

Deploying 100 Fonts

Posted on 2016-08-25
2
67 Views
Last Modified: 2016-09-15
Hi

What is a quick and efficient way of deploying 100 fonts to over 150 users on a domain. I though GPO would be easy but it looks time consuming.

Thanks
0
Comment
Question by:Technical Information
2 Comments
 
LVL 95

Accepted Solution

by:
Lee W, MVP earned 250 total points
ID: 41770608
You should be able to deploy fonts using a VBscript (or probably powershell too, but not my area).

On Error Resume Next

Set Args = WScript.Arguments
FontPath = Args.Item(0)

Set FSO = CreateObject("Scripting.FileSystemObject")
Set FontFolder = FSO.GetFolder(FontPath)

Set FileCollection = FontFolder.Files
For Each FontFile in FileCollection
	'Install Open Type Fonts and True Type Fonts
    If Right(FontFile.Name, 4) = ".ttf" Or Right(FontFile.Name, 4) = ".otf" Then Call InstallFonts(FontPath, FontFile.Name)
Next

Sub InstallFonts(FontPath, FontFileName)

	Set Shell = CreateObject("Shell.Application")
	Set Folder = Shell.Namespace(FontPath)
	
	Set FontItem = Folder.ParseName(FontFileName)
	FontItem.InvokeVerb("Install")

End Sub

If Err.Number > 0 Then
	WScript.Echo Err.Number
	WScript.Echo "Error: Font installation attempt may have failed." 
End If

Set Args = Nothing

Open in new window


Obviously test first.

Usage should be:
path\to\FontInstallerScript.vbs "pathToFonts"

If you put the script and fonts on a network share and then run it from a group policy, that should do the trick.
0
 
LVL 11

Assisted Solution

by:zalazar
zalazar earned 250 total points
ID: 41770977
If you have the possibility to deploy software via a software distribution agent, e.g. SCCM, I would go for a software deployment package.
You could create an installation package, e.g. with Inno Setup that holds all the fonts.
http://www.jrsoftware.org/isinfo.php
http://www.jrsoftware.org/ishelp/index.php?topic=filessection
In this way you are more certain that all fonts will be installed correctly.
Doing this over the network and via a script has a higher chance of interruption and problems.

If you would go for a script then at least logging of success and failed message to a central log share is necessary. In this way you have an overview on which computers the fonts are installed and if it was successful or not.

You could also use the software installation package in combination with a script.
The advantage of using a software distribution agent and deployment package is that the complete package will be downloaded to the local disk first before it will be installed.

Please note that Administrative permissions are required for the installation of fonts.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

What to do when Windows Update is not working correctly? What tools can I use to detect the cause of the malfunction problem? What does this numeric error code mean? These and other questions that you have been asking in the past are answered here (…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now