Solved

Install/copy fonts to all computers on my network

Posted on 2011-09-09
7
1,111 Views
Last Modified: 2012-05-12
I have a set of fonts that need to be installed/copied to every computer on my network. What is the simplest way to do this... script, or GPO?
0
Comment
Question by:lenivan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
7 Comments
 
LVL 2

Expert Comment

by:LondonCitizen
ID: 36513298
You could run batch file using netlogon script or Group Policy
Each target PC would then run the batch on startup and copy fonts from your Share

Something simple like this

copy \\server\networkshare\font1.ttf c:\windows\fonts

or you can create batch which would copy fonts from single PC on to all others

Something like this
copy \\server\networkshare\font1.ttf \\clientpc1\c$\windows\fonts
copy \\server\networkshare\font1.ttf \\clientpc2\c$\windows\fonts
copy \\server\networkshare\font1.ttf \\clientpc3\c$\windows\fonts

This is somewhat slower, but you could use excel to generate ip addresses for target machines to speed up the process.


Once done, you would need to update local machine registry on each PC through GP.
Also fonts would not be available until next reboot.

Here is the registry path:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts

Other option would be to try to create MSI package with your 3 fonts, and deploy through GP as you would do with installing any other software remotely.

Take a look at this:
http://support.microsoft.com/kb/816102
0
 

Author Comment

by:lenivan
ID: 36531040
I actually have 100 fonts that need to be copied over to a number of machines. Is there another way other than listing each font individually?
0
 
LVL 2

Expert Comment

by:LondonCitizen
ID: 36532356
Yes, just create a folder on the share and put all required fonts in it. then just filter out copy process by extension.

 via netlogon
copy \\server\networkshare\fontcopy\*.*.ttf c:\windows\fonts

without net logon.
copy \\server\networkshare\fonttocopy\*.ttf \\clientpc1\c$\findows\fonts
copy \\server\networkshare\fonttocopy\*.ttf \\clientpc2\c$\findows\fonts
copy \\server\networkshare\fonttocopy\*.ttf \\clientpc3\c$\findows\fonts
0
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

 
LVL 2

Expert Comment

by:LondonCitizen
ID: 36532374
I meant via GP not netlogon but the principle is the same
Also you could do push down the changes to registry via GP.
0
 
LVL 2

Expert Comment

by:LondonCitizen
ID: 36532640
I also come accross on internet to this simple VB script which can be called upon your client at startup.

All you need to change sRoot and provide correct path to your server share with all the fonts.
Also make sure permissions are properly set and your clients can read from your share.

Sub InstallFonts
  on error resume next
  Const FONTS = &H14
  dim , oFSO,oShell, oFolder1, oFolder2, sRoot
  sRoot="\\servername\sharename\fonts\"
  Set oShell = CreateObject("Shell.Application")
  set oFSO=createobject("scripting.filesystemobject")
  Set oFolder1 = oShell.Namespace(FONTS)
  set oFolder2=ofso.getfolder(sRoot)
  for each oFile in oFolder2.files
    sName=lcase(oFile.name)
    if right(sName,4)=".ttf" then
      if not ofso.fileexists(oFolder1.self.path & "\" & sName) then
        oFolder1.copyhere sRoot & sName
      end if
    end if
  next
  on error goto 0
End Sub
0
 
LVL 2

Accepted Solution

by:
LondonCitizen earned 500 total points
ID: 36532782
If you don't fancy VBscripts, here is a small example just to summarize command prompt

1. Create installfonts.bat with following
copy \\servername\servershare\font\*.ttf C:\windows\fonts\

2. Setup GP to run installfonts.bat on startup
3. Push down GP to test machine

2. Go to your PC
3. Make sure that you have all your desired fonts installed
4  Go to registry editor and Export from your  HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts
5. Save to fontstoregister.reg
3. Setup new GPO called Fonts and import fontstoregister.reg
4. Push down GPO to a test PC.
5. If success push down to all desired machines
6. Push down GP to start installfonts.bat on startup to all desired machines
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

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…
A procedure for exporting installed hotfix details of remote computers using powershell
This Micro Tutorial will teach you the basics of configuring your computer to improve its speed. It will also teach you how to disable programs that are running in the background simultaneously. This will be demonstrated using Windows 7 operating…
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum editing capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.

756 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