Kaseya Community

Install Font

This question is not answered
I am very new to kaseya and there is an error that I encountered when I try to run the script . The error is "Script Summary: Failed THEN in step"
What I want to achieve is to install the Arial font on different computers.  There are 9 Arial Fonts that I need to install but I will just try 1 font first.
Are you able to assist me which part of the script is not correct?
These are the information:
I need to install it on the folder C:\Windows\Fonts\Arial\
I stored the file on kaseya server VSASharedFiles\Fonts\ARIALN.TTF
Below is the script:
<?xml version="1.0" encoding="utf-8"?>
<ScriptExport xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.kaseya.com/vsa/2008/12/Scripting">
  <Procedure name="Arial Font" treePres="3">
  <Body description="">
<If description="">
<Condition name="True"/>
<Statement name="WriteFile" continueOnFail="false" osType="0">
<Parameter xsi:type="StringParameter" name="ManagedFile" value="VSASharedFiles\Fonts\ARIALN.TTF"/>
<Parameter xsi:type="StringParameter" name="Path" value="C:\Windows\Fonts\Arial\ARIALN.TTF"/>
<Statement name="SetRegistryValue" continueOnFail="false" osType="0">
<Parameter xsi:type="StringParameter" name="RegistryPath" value="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts\Arial"/>
  <Parameter xsi:type="StringParameter" name="ArialNarrow" value="ARIALN.TTF"/>
          <Parameter xsi:type="EnumParameter" name="DataType" value="REG_SZ"/>
Any help will be greatly appreciated
All Replies
  • Try Set64BitRegistryValue. If you want to write something in the HKLM registry you must use this statement.

  • I recommend joining our community on discord to interact with other users on automation techniques and challenges.