Disclaimer: The following custom script is offered with no expressed or implied warranty and is to be used at your own risk. KACE does not warranty the use of this script unless designed by the KACE Professional Services team, nor does KACE guarantee the functionality or existence of this script in future versions of the KACE SMA. Improper use of scripts can cause irreparable damage to the KACE database. Please proceed with caution.
Any further customization of this or any custom script is offered as a fee-based service by our Professional Services team. Please contact your sales representative for details.
The following script to install Windows Fonts remotely by KACE SMA
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace("Folder or Share Location")
Set objFolderItem = objFolder.ParseName("TTF File Name")
objFolderItem.InvokeVerb("Install")
i.e.
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace("C:\Windows\Temp\")
Set objFolderItem = objFolder.ParseName("name1.ttf")
objFolderItem.InvokeVerb("Install")
Set objFolderItem = objFolder.ParseName("name2.ttf")
objFolderItem.InvokeVerb("Install")
Save the example script as installfont.vbs
How to create the Script
- Create an Online KScript in Scripting page.
- Select target Devices, Operation System, and other respective settings.
- In Dependencies section, click New Dependency repeatedly to add the ttf files and installfont.vbs to Dependencies
- In Task section, click New Task to add Task 1.
- Under On Success, click Add, select Lunch a program from the drop-down list, and input the following,
- Directory: $(KACE_SYS_DIR)
- File: cmd.exe
- Check Wait for completion
- Parameters: /C copy /Y $(KACE_DEPENDENCY_DIR)\*.ttf c:\windows\temp\
- Click Save Changes.
- Click New Task to add Task 2.
- Under On Success, click Add, select Lunch a program from the drop-down list, and input the following:
- Directory: $(KACE_SYS_DIR)
- File: cscript.exe
- Check Wait for completion
- Parameters: $(KACE_DEPENDENCY_DIR)\installfont.vbs
- Click Save Changes.
- If you want to remove the temp ttf files from the Windows temp folder. Click New Task to add Task 3.
- Under On Success
- Click Add
- Select Launch a program from the drop-down list, and input the following:
- Directory: $(KACE_SYS_DIR)
- File: cmd.exe
- Parameters: /C del /F c:\windows\temp\*.ttf
- Click Save Changes
- Save the Script.