General discussion

Locked

Installing Fonts with a script

By cgreeff ·
I'm trying to install a font to about 100 computers on two networks at work using a logon script that runs via a GPO in AD.

My bat file looks like this:

If exist c:\windows\fonts\metr53w.ttf goto end

If not exist c:\windows\fonts\metr53w.ttf goto update


:update

Copy \\whkfsr01\logon$\SGAFont\metr53w.ttf c:\windows\fonts

regedit /s \\whkfsr01\logon$\SGAFont\importfonts.reg

start \\whkfsr01\logon$\SGAFont\message.txt

goto end


:end

I know that with the importfonts.reg I'm suppose to register the font in the [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts] but I'm not sure which data values to address with which binary codes.

Can someone point me in the right direction??

This conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
Thread display: Collapse - | Expand +

All Comments

Collapse -

Try This

by itgeek79 In reply to Installing Fonts with a s ...

I have used this settings for my tiff file and I was able to imported into remote boxes.

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts]
"Calibri (TrueType)"="CALIBRI.TTF"
"Calibri Bold Italic (TrueType)"="CALIBRIZ.TTF"
"Calibri Italic (TrueType)"="CALIBRII.TTF"
"Calibri Bold (TrueType)"="CALIBRIB.TTF"

Collapse -

Fonts Script.

by carlos In reply to Installing Fonts with a s ...

Here is a simple one.

I use this to execute fonts to all my 150 machines with and without AD.

First you need to have a distribution point.
second you need to execute the script from the clients machine. "This is a wild Card
command". It will look automatically to your
fonts location. "This only works for default font location". ""c:\windows\fonts""

copy and past the following to a text.
rename *.txt to *.vbs
-----------------------------
Const FONTS = &H14&

Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace(FONTS)
objFolder.CopyHere "c:\MS\Fonts\ACaslonPro-Regular.otf"

--------------------------------------------

each font has to have is own objFolder.CopyHere "*.*".

For example:
objFolder.CopyHere "c:\ccsafonts\KvBdIt__.ttf"
objFolder.CopyHere "c:\ccsafonts\KvBdItEp.ttf"

Hope this helps

Back to Networks Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums