Kaseya Community

Agent procedure for HP Image Assistant

This question is not answered

Hi Kaseya Community!

I've been working on updating some of our software and how we manage things through Kaseya.  I currently have an Agent Procedure that I created a while back that uses HP SSM (with  the help of SDM) to update drivers on a client's machine.  The procedure worked fairly well, but HP is End-of-Life-ing SSM & SDM in favor of HP Image Assistant.  I will say, I like this software better than the previous options as it's more accurate and thourough.  My primary problem is that I've not really been able to automate it.  I'm wondering if there's anyone else workingo nsomething similar, or if sanyone has already done this.

So far, I've had 2 good attempts, after working out some other bugs in my logic:

  1. Keeping the software on a centrally-located server
    1. This is how I did things with SSM/SDM.  it requires the user's to be on our network for it to work (not always possible as our users all have laptops that they take home).  It also allows us to keep all the driver packages it downloads, on the central server, instead of on users' machines
    2. This doesn't seem to work, as it just completes super-quick, telling me it was successful.  It is not successful, as the software didn't end up identifyin or updating anything
  2. Using Kaseya to install/unpack the software and running it locally
    1. I was liking this idea, as it doesn't require the user to be online at our sites, so we coudl get them updated at home as well
    2. This one never completes.  It runs the softpaq to unpack the HPIA software successfully, but the command to make it do its thing seems to never finish, so the AP just hangs.

I'll post each AP in a comment after this, matching the # above (0 is the one we currently use with SDM/SSM, in case anyone wanted it for their own uses).  But has anyone worked with this software yet?  Any luck out there?

All Replies
  • Procedure HP Driver Updates-0.xml

    <?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="HP Driver Updates" treePres="3" id="1361271485" folderId="86291619149619115192182123" treeFullPath="Scripts.Maintenance">
    <Body description="Run the HP SSM software to update drivers on HP machines">
    <Statement name="GetVariable" continueOnFail="false">
    <Parameter xsi:type="EnumParameter" name="VariableType" value="WMIProperty" />
    <Parameter xsi:type="StringParameter" name="SourceContent" value="root\cimv2:Win32_OperatingSystem.Caption" />
    <Parameter xsi:type="StringParameter" name="VariableName" value="System" />
    </Statement>
    <If description="">
    <Condition name="CheckVariable">
    <Parameter xsi:type="StringParameter" name="VariableName" value="#System#" />
    <Parameter xsi:type="EnumParameter" name="Condition" value="DoesNotContain" />
    <Parameter xsi:type="StringParameter" name="Value" value="Server" />
    </Condition>
    <Then>
    <If description="">
    <Condition name="TestFile">
    <Parameter xsi:type="StringParameter" name="Path" value="\\a-server\ssmfs$\SSM.exe" />
    <Parameter xsi:type="EnumParameter" name="Condition" value="Exists" />
    <Parameter xsi:type="StringParameter" name="Value" value="" />
    </Condition>
    <Then>
    <If description="">
    <Condition name="UserResponseIsYes">
    <Parameter xsi:type="StringParameter" name="Message" value="[IT Notice]:Updates are prepared to install for your machine. Please do not shut down during this process. You may notice your screen flicker, or your wireless connection disconnect and reconnect - this is normal.Thanks, IT&#xA;" />
    <Parameter xsi:type="IntegerParameter" name="Timeout" value="3600" />
    </Condition>
    <Then>
    <Statement name="ExecuteShellCommand" continueOnFail="false" osType="Windows">
    <Parameter xsi:type="StringParameter" name="Command" value="\\a-server\ssmfs$\SSM.exe \\a-server\ssmfs$\ /accept /noreboot" />
    <Parameter xsi:type="EnumParameter" name="ExecuteAccount" value="System" />
    <Parameter xsi:type="BooleanParameter" name="Is64Bit" value="True" />
    </Statement>
    <Statement name="SendMessage" continueOnFail="false">
    <Parameter xsi:type="StringParameter" name="Message" value="Driver updates have been applied to your machine. Please restart at your earliest convenience." />
    <Parameter xsi:type="BooleanParameter" name="Immediate" value="True" />
    </Statement>
    </Then>
    <Else>
    <Statement name="ScheduleScript" continueOnFail="false" osType="Windows">
    <Parameter xsi:type="StringParameter" name="ScriptName" value="1361271485" />
    <Parameter xsi:type="StringParameter" name="TimeDelay" value="1440" />
    <Parameter xsi:type="StringParameter" name="MachineID" value="" />
    </Statement>
    </Else>
    </If>
    </Then>
    <Else>
    <Statement name="ScheduleScript" continueOnFail="false" osType="Windows">
    <Parameter xsi:type="StringParameter" name="ScriptName" value="1361271485" />
    <Parameter xsi:type="StringParameter" name="TimeDelay" value="1440" />
    <Parameter xsi:type="StringParameter" name="MachineID" value="" />
    </Statement>
    </Else>
    </If>
    </Then>
    <Else>
    <Statement name="WriteScriptLogEntry" continueOnFail="false" osType="Windows">
    <Parameter xsi:type="StringParameter" name="Comment" value="Cannot perform this procedure on a #System# machine." />
    </Statement>
    </Else>
    </If>
    </Body>
    </Procedure>
    </ScriptExport>

  • Procedure HP Driver Updates-1.xml

    <?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="HP Driver Updates" treePres="3" id="900335791" folderId="152550818050537" treeFullPath="myProcedures - JustinSchneider.AP Testing">
    <Body description="Run the HP SSM software to update drivers on HP machines">
    <Statement name="GetVariable" continueOnFail="false">
    <Parameter xsi:type="EnumParameter" name="VariableType" value="WMIProperty" />
    <Parameter xsi:type="StringParameter" name="SourceContent" value="root\cimv2:Win32_OperatingSystem.Caption" />
    <Parameter xsi:type="StringParameter" name="VariableName" value="System" />
    </Statement>
    <If description="">
    <Condition name="CheckVariable">
    <Parameter xsi:type="StringParameter" name="VariableName" value="#System#" />
    <Parameter xsi:type="EnumParameter" name="Condition" value="DoesNotContain" />
    <Parameter xsi:type="StringParameter" name="Value" value="Server" />
    </Condition>
    <Then>
    <Statement name="GetVariable" continueOnFail="false" osType="Windows">
    <Parameter xsi:type="EnumParameter" name="VariableType" value="AgentTempDirectory" />
    <Parameter xsi:type="StringParameter" name="SourceContent" value="" />
    <Parameter xsi:type="StringParameter" name="VariableName" value="TEMP" />
    </Statement>
    <If description="">
    <Condition name="TestFile">
    <Parameter xsi:type="StringParameter" name="Path" value="\\a-server\DSP$\Tools\x64\HPIA\HPImageAssistant.exe" />
    <Parameter xsi:type="EnumParameter" name="Condition" value="Exists" />
    <Parameter xsi:type="StringParameter" name="Value" value="" />
    </Condition>
    <Then>
    <If description="">
    <Condition name="UserResponseIsYes">
    <Parameter xsi:type="StringParameter" name="Message" value="[IT Notice]:Updates are prepared to install for your machine. Please do not shut down during this process. You may notice your screen flicker, or your wireless connection disconnect and reconnect - this is normal.Thanks, IT&#xA;" />
    <Parameter xsi:type="IntegerParameter" name="Timeout" value="3600" />
    </Condition>
    <Then>
    <Statement name="ExecuteShellCommand" continueOnFail="false">
    <Parameter xsi:type="StringParameter" name="Command" value="\\a-server\DSP$\Tools\x64\HPIA\HPImageAssistant.exe /Operation:Analyze /Category:All /Selection:All /Action:Install /SoftpaqDownloadFolder:\\a-server\DSP$\Tools\x64\HPIA\SoftPaq /Silent" />
    <Parameter xsi:type="EnumParameter" name="ExecuteAccount" value="System" />
    <Parameter xsi:type="BooleanParameter" name="Is64Bit" value="True" />
    </Statement>
    <Statement name="SendMessage" continueOnFail="false">
    <Parameter xsi:type="StringParameter" name="Message" value="Driver updates have been applied to your machine. Please restart at your earliest convenience." />
    <Parameter xsi:type="BooleanParameter" name="Immediate" value="True" />
    </Statement>
    </Then>
    <Else>
    <Statement name="ScheduleScript" continueOnFail="false" osType="Windows">
    <Parameter xsi:type="StringParameter" name="ScriptName" value="900335791" />
    <Parameter xsi:type="StringParameter" name="TimeDelay" value="1440" />
    <Parameter xsi:type="StringParameter" name="MachineID" value="" />
    </Statement>
    </Else>
    </If>
    </Then>
    <Else>
    <Statement name="ScheduleScript" continueOnFail="false" osType="Windows">
    <Parameter xsi:type="StringParameter" name="ScriptName" value="900335791" />
    <Parameter xsi:type="StringParameter" name="TimeDelay" value="1440" />
    <Parameter xsi:type="StringParameter" name="MachineID" value="" />
    </Statement>
    </Else>
    </If>
    </Then>
    <Else>
    <Statement name="WriteScriptLogEntry" continueOnFail="false" osType="Windows">
    <Parameter xsi:type="StringParameter" name="Comment" value="Cannot perform this procedure on a #System# machine." />
    </Statement>
    </Else>
    </If>
    </Body>
    </Procedure>
    </ScriptExport>

  • Procedure HP Driver Updates-2.xml

    <?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="HP Driver Updates" treePres="3" id="2092178588" folderId="77624817617346249177252214" treeFullPath="myProcedures - JustinSchneider">
    <Body description="Run the HP SSM software to update drivers on HP machines">
    <Statement name="GetVariable" continueOnFail="false">
    <Parameter xsi:type="EnumParameter" name="VariableType" value="WMIProperty" />
    <Parameter xsi:type="StringParameter" name="SourceContent" value="root\cimv2:Win32_OperatingSystem.Caption" />
    <Parameter xsi:type="StringParameter" name="VariableName" value="System" />
    </Statement>
    <If description="">
    <Condition name="CheckVariable">
    <Parameter xsi:type="StringParameter" name="VariableName" value="#System#" />
    <Parameter xsi:type="EnumParameter" name="Condition" value="DoesNotContain" />
    <Parameter xsi:type="StringParameter" name="Value" value="Server" />
    </Condition>
    <Then>
    <Statement name="GetVariable" continueOnFail="false" osType="Windows">
    <Parameter xsi:type="EnumParameter" name="VariableType" value="AgentTempDirectory" />
    <Parameter xsi:type="StringParameter" name="SourceContent" value="" />
    <Parameter xsi:type="StringParameter" name="VariableName" value="TEMP" />
    </Statement>
    <If description="">
    <Condition name="TestFile">
    <Parameter xsi:type="StringParameter" name="Path" value="\\a-server\DSP$\Tools\x64\HPIA\HPImageAssistant.exe" />
    <Parameter xsi:type="EnumParameter" name="Condition" value="Exists" />
    <Parameter xsi:type="StringParameter" name="Value" value="" />
    </Condition>
    <Then>
    <If description="">
    <Condition name="UserResponseIsYes">
    <Parameter xsi:type="StringParameter" name="Message" value="[IT Notice]:Updates are prepared to install for your machine. Please do not shut down during this process. You may notice your screen flicker, or your wireless connection disconnect and reconnect - this is normal.Thanks, IT&#xA;" />
    <Parameter xsi:type="IntegerParameter" name="Timeout" value="3600" />
    </Condition>
    <Then>
    <Statement name="WriteFile" continueOnFail="false" osType="Windows">
    <Parameter xsi:type="StringParameter" name="Path" value="#TEMP#\SoftwareFiles\sp87685.exe" />
    <Parameter xsi:type="StringParameter" name="ManagedFile" value="VSASharedFiles\SoftwareFiles\HP Laptops\sp87685.exe" />
    <Parameter xsi:type="BooleanParameter" name="DeleteAfter" value="False" />
    </Statement>
    <Statement name="ExecuteFile" continueOnFail="false" osType="Windows">
    <Parameter xsi:type="StringParameter" name="Path" value="#TEMP#\SoftwareFiles\sp87685.exe" />
    <Parameter xsi:type="StringParameter" name="Arguments" value="/silent" />
    <Parameter xsi:type="EnumParameter" name="ExecuteAccount" value="System" />
    <Parameter xsi:type="BooleanParameter" name="WaitComplete" value="True" />
    </Statement>
    <Statement name="ExecuteFile" continueOnFail="false">
    <Parameter xsi:type="StringParameter" name="Path" value="C:\SWSetup\sp87685\HPImageAssistant.exe" />
    <Parameter xsi:type="StringParameter" name="Arguments" value="/Operation:Analyze /Category:All /Selection:All /Action:Install /SoftpaqDownloadFolder:C:\SWSetup\sp87685\SoftPaq /Silent" />
    <Parameter xsi:type="EnumParameter" name="ExecuteAccount" value="User" />
    <Parameter xsi:type="BooleanParameter" name="WaitComplete" value="True" />
    </Statement>
    <Statement name="SendMessage" continueOnFail="false">
    <Parameter xsi:type="StringParameter" name="Message" value="Driver updates have been applied to your machine. Please restart at your earliest convenience." />
    <Parameter xsi:type="BooleanParameter" name="Immediate" value="True" />
    </Statement>
    </Then>
    <Else>
    <Statement name="ScheduleScript" continueOnFail="false" osType="Windows">
    <Parameter xsi:type="StringParameter" name="ScriptName" value="2092178588" />
    <Parameter xsi:type="StringParameter" name="TimeDelay" value="1440" />
    <Parameter xsi:type="StringParameter" name="MachineID" value="" />
    </Statement>
    </Else>
    </If>
    </Then>
    <Else>
    <Statement name="ScheduleScript" continueOnFail="false" osType="Windows">
    <Parameter xsi:type="StringParameter" name="ScriptName" value="2092178588" />
    <Parameter xsi:type="StringParameter" name="TimeDelay" value="1440" />
    <Parameter xsi:type="StringParameter" name="MachineID" value="" />
    </Statement>
    </Else>
    </If>
    </Then>
    <Else>
    <Statement name="WriteScriptLogEntry" continueOnFail="false" osType="Windows">
    <Parameter xsi:type="StringParameter" name="Comment" value="Cannot perform this procedure on a #System# machine." />
    </Statement>
    </Else>
    </If>
    </Body>
    </Procedure>
    </ScriptExport>

  • Hi Justin, I hadn't come across HPIA, so thanks for the heads up. I'm also interested in getting this going due to various issues with SDM.

    After downloading and installing sp87685 (haven't yet automated this) I've created a one-line agent procedure to test it and (on my system at least) it's running OK to detect, download and extract. I'm not brave enough to have it auto-install anything yet :-)

    executeFile() - C:\SWSetup\sp87685\HPImageAssistant.exe

    Arguments - /Operation:Analyze /Action:Extract /Silent /ReportFolder:c:\temp\HPIA /SoftpaqDownloadFolder:c:\temp\HPIA)

    Privileges - ExecuteAsSystemAndWait

    When the procedure completes the c:\temp\HPIA folder contains plenty of interesting stuff. The InstallAll.cmd file looks to kick off the silent installation of all the downloaded updates.