+ Post New Thread
Results 1 to 12 of 12
How do you do....it? Thread, Deploying Font To All PC's in Technical; Hi Everyone, I am looking to deploy a font to all machines within the network...how can this be done? Thanks!...
  1. #1

    Join Date
    Dec 2010
    Posts
    22
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Deploying Font To All PC's

    Hi Everyone,

    I am looking to deploy a font to all machines within the network...how can this be done?

    Thanks!

  2. #2

    witch's Avatar
    Join Date
    Nov 2005
    Location
    Dorset
    Posts
    11,378
    Thank Post
    1,399
    Thanked 2,416 Times in 1,697 Posts
    Rep Power
    710
    I do it by running a script and applying it to the highest level policy in GP as computer settings, startup script etc. Works well

  3. #3

    Join Date
    Dec 2010
    Posts
    22
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Quote Originally Posted by witch View Post
    I do it by running a script and applying it to the highest level policy in GP as computer settings, startup script etc. Works well
    Thanks for that.

    Do you have a copy of the script you are willing to post?

    Thanks

  4. #4

    witch's Avatar
    Join Date
    Nov 2005
    Location
    Dorset
    Posts
    11,378
    Thank Post
    1,399
    Thanked 2,416 Times in 1,697 Posts
    Rep Power
    710
    If I can find it!!

    *I think I am in the wrong school but I found this:
    on error resume next
    Const FONTS = &H14
    dim oFSO,oShell, oFolder1, oFolder2, sRoot
    sRoot="\\dcserver01\Shared Resources\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
    Can someone tell me if that's it?
    Last edited by witch; 14th February 2011 at 08:20 AM.

  5. Thanks to witch from:

    TechSupp (14th February 2011)

  6. #5

    Join Date
    Dec 2010
    Posts
    22
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Quote Originally Posted by witch View Post
    If I can find it!!

    *I think I am in the wrong school but I found this:
    on error resume next
    Const FONTS = &H14
    dim oFSO,oShell, oFolder1, oFolder2, sRoot
    sRoot="\\dcserver01\Shared Resources\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
    Can someone tell me if that's it?
    Thanks for that. So if I am right I guess I only have to change the highlighted bits below:

    *I think I am in the wrong school but I found this:
    on error resume next
    Const FONTS = &H14
    dim oFSO,oShell, oFolder1, oFolder2, sRoot
    sRoot="SERVER NAME AND SHARE"
    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(FONT NAME LESS .TTF)
    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

    Hope thats right?!

  7. #6
    TechSupp's Avatar
    Join Date
    Mar 2007
    Location
    South Yorkshire
    Posts
    1,900
    Thank Post
    304
    Thanked 122 Times in 103 Posts
    Rep Power
    42
    T6hink if I read it correct (and I'm not the worlds best programmer!) you only need to change the server name and share bit. The font bit stays the same as its just searching the shared resource folder for all files that end in .ttf and then looping through them, copying them if they match the .ttf format.
    Glad I looked as I was looking for something like this!

  8. #7

    witch's Avatar
    Join Date
    Nov 2005
    Location
    Dorset
    Posts
    11,378
    Thank Post
    1,399
    Thanked 2,416 Times in 1,697 Posts
    Rep Power
    710
    Quote Originally Posted by TechSupp View Post
    T6hink if I read it correct (and I'm not the worlds best programmer!) you only need to change the server name and share bit. The font bit stays the same as its just searching the shared resource folder for all files that end in .ttf and then looping through them, copying them if they match the .ttf format.
    Glad I looked as I was looking for something like this!
    Ah - that would explain why it looked odd to me - I couldnt see the name of the font - but you are right I think, it just looks for all .ttf files

  9. #8


    Join Date
    Feb 2007
    Location
    51.403651, -0.515458
    Posts
    9,053
    Thank Post
    231
    Thanked 2,716 Times in 2,004 Posts
    Rep Power
    794
    Just come across a couple of nifty PowerShell scripts from Microsoft which can be used to install and delete fonts so thought it would be worth posting.

    The best thing about these scripts are that they support every font format Windows does (.fon, .fnt, .ttf, .ttc, .otf, .mmm, .pbf and .pfm) and will notify running applications of the changes.

    Source: http://blogs.technet.com/b/deploymen...owershell.aspx

    Examples...

    Code:
    Add-Font.ps1 -file "X:\Fonts\MyFont.ttf"
    
    Add-Font.ps1 -folder "\\Server\Fonts"
    
    Remove-Font.ps1 -file "MyFont.ttf"
    Attached Files Attached Files

  10. #9

    Join Date
    Dec 2010
    Posts
    22
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Quote Originally Posted by Arthur View Post
    Just come across a couple of nifty PowerShell scripts from Microsoft which can be used to install and delete fonts so thought it would be worth posting.

    The best thing about these scripts are that they support every font format Windows does (.fon, .fnt, .ttf, .ttc, .otf, .mmm, .pbf and .pfm) and will notify running applications of the changes.

    Source: Adding and Removing Fonts with Windows PowerShell - The Deployment Guys - Site Home - TechNet Blogs

    Examples...

    Code:
    Add-Font.ps1 -file "X:\Fonts\MyFont.ttf"
    
    Add-Font.ps1 -folder "\\Server\Fonts"
    
    Remove-Font.ps1 -file "MyFont.ttf"
    Thanks, will take a look!

  11. #10

    Join Date
    May 2011
    Posts
    1
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Sadly the Type 1 fonts are not supported in the script

    Code:
    # Type 1 fonts require handling multiple resource files.
    # Not supported in this script
    #$hashFontFileTypes.Add(".mmm", "")
    #$hashFontFileTypes.Add(".pbf", "")
    #$hashFontFileTypes.Add(".pfm", "")
    This is the thing I need to cover, but cannot find any suitable solution and the fact that Type 1 fonts are written to registries as MultiString Values makes this matter complicated to handle...

    Thanks anyway.

  12. #11


    Join Date
    Feb 2007
    Location
    51.403651, -0.515458
    Posts
    9,053
    Thank Post
    231
    Thanked 2,716 Times in 2,004 Posts
    Rep Power
    794
    Not sure how I missed that.

    Quote Originally Posted by test258 View Post
    Sadly the Type 1 fonts are not supported in the script
    Probably the easiest thing to do would be to convert the Type 1 fonts into another format. There's a website that will do this for you (for free) here:

    http://onlinefontconverter.com/

  13. #12

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,803
    Thank Post
    3,314
    Thanked 1,056 Times in 977 Posts
    Rep Power
    365
    or when its summer holidays you could create a new image inclusive of the fonts, latest java, flash, shockwave, a video player ( vlc / windows media player classic home cinema or the likes ) and the default stuff and do it that way and any other software you can use GPO to install / remove it depending on if its joined to the domain such as Microsoft Office via MSI

SHARE:
+ Post New Thread

Similar Threads

  1. what font???
    By gibbo_ap in forum General Chat
    Replies: 2
    Last Post: 10th September 2010, 03:08 PM
  2. [Website] What Font Are You?
    By DaveP in forum Jokes/Interweb Things
    Replies: 21
    Last Post: 13th March 2010, 08:48 AM
  3. What Font
    By Devontechie in forum General Chat
    Replies: 4
    Last Post: 17th December 2009, 02:09 PM
  4. What Font
    By mossj in forum Graphics Requests
    Replies: 14
    Last Post: 4th July 2009, 10:42 PM
  5. C++ The name of font being used
    By Pashers in forum Coding
    Replies: 2
    Last Post: 4th February 2009, 02:36 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •