This guide will show you how to install fonts on remote machine using PsExec.
- Install PsExec tools from here (put psexec.exe into your System32 directory).
- Download FontReg from here.
- Create a temporary directory wherever you want. Call it fontreg (Desktop is OK for this purpose).
- Put FontReg.exe into that directory (you have 32 and 64 bit versions to choose – I’ve used first one on 64 bit system without any problems).
- Put fonts that you want to install into that directory.
- Create a new text text file, call it remote_install.cmd.
- Copy this contents into newly created file:
:: This example shows you copying and registering the fonts on a remote machine :: This will copy the fonts and fontreg.exe to remote machine %h% into a folder "c:\temp\fonts", then push to that folder, then execute fontreg. :: Note, you cant execute fontreg from a different working directory else it wont see the fonts, you must change to that dir first. :: usage remote_install REMOTE_COMPUTER :: Param remote host to copy fonts set h=%1 :: %~dp0* means current script path xcopy /i /s /y "%~dp0*" "\\%h%\c$\temp\fonts\" psexec -e \\%h% cmd /c (pushd c:\temp\fonts ^& fontreg.exe /copy)
- Run cmd and go to directory created just before this step.
- Now type and run:
Running psexec might be tricky. By default it uses privileges of currently logged local user. If you’re in a domain network mind your account abilities on remote machine. In case of trouble google your error or write comment below.