Installing Fonts with a script - TechRepublic
General discussion
October 26, 2006 at 05:13 AM
cgreeff

Installing Fonts with a script

by cgreeff . Updated 17 years, 8 months ago

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 discussion is locked

All Comments