Welcome to Lieben Knowledgebase!

Remotely installing a new font

Question/Problem:

I want to install a new font on several computers remotely, is there any way this can be done without any 3rd party tools or group policy?


The answer/solution:

Yes, this can be done easily by making 2 small batch scripts, placing one of these scripts on a share with the font, and one on your computer to fire off the first script on the remote computer as admin user:

-you'll need to put the font on a share which the remote computers can reach.

-also put a batch script on the share, call it addfont.bat, the contents of the batch script should be something like:

@echo off
Copy
\\yourserver\yourshare\fontname.ttf %systemroot%\fonts\ /y

-then make a batch script on your own computer, which has to be executed from the commandline (cmd.exe). Call it rsched.bat, the contents should be:

@echo off
schtasks /create /tn addfont /tr
\\yourserver\yourshare\addfont.bat /s %1 /ru USERNAME /rp PASSWORD /sc daily
schtasks /run /s %1 /tn addfont
ping 1.1.1.1 -n 10 -w 100 >NUL
schtasks /delete /s %1 /tn addfont /f

-Make sure you replace 'USERNAME' and 'PASSWORD' in the above code with a username and password that exist on the remote computer, and has administrator rights.

-now go to start -> run -> cmd.exe

-go to the folder where you saved rsched.bat, and type rsched.bat COMPUTERNAME

-replace computername with the name of the computer you want to add the font to.


added by Jos on: 27-04-2007



keywords: schtasks, fonts, remote installation, batch scripts,


©2009 by Lieben.nu