﻿<?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="Download SysInternals Process Explorer" treePres="3">
    <Body description="This sample demonstrates how to download files from remote sources using the Get URL agent procedure command.  Simply specify the URL to download and the target location.&#xA;&#xA;In this sample we are downloading directly from the vender website, however a popular method of distributing your files is to store them in a public accessible ftp or website (cloud storage) using this method to download them to your endpoints.&#xA;&#xA;This sample simply downloads the file, however you can extend the functionality to install or execute files using the execute shell command in agent procedures.&#xA;&#xA;Also note that in this script we are using a variable for the agent temp directory of the agent.  See the section for &quot;Using Auto View Variables&quot; here: http://help.kaseya.com/WebHelp/EN/VSA/6000000/2855.htm">
      <Statement description="Get the response from a web page." name="GetURL" continueOnFail="false">
        <Parameter xsi:type="StringParameter" name="URL" value="http://download.sysinternals.com/Files/ProcessExplorer.zip" />
        <Parameter xsi:type="StringParameter" name="ResponseFileName" value="#vagentconfiguration.agenttempdir#\ProcessExplorer.zip" />
        <Parameter xsi:type="BooleanParameter" name="WaitComplete" value="True" />
      </Statement>
    </Body>
  </Procedure>
</ScriptExport>