Solved

Deploying 100 Fonts

Posted on 2016-08-25
2
76 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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You may have a outside contractor who comes in once a week or seasonal to do some work in your office but you only want to give him access to the programs and files he needs and keep privet all other documents and programs, can you do this on a loca…
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
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 to another domain controller. Log onto the new domain controller with a user account t…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

895 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

16 Experts available now in Live!

Get 1:1 Help Now