/build/static/layout/Breadcrumb_cap_w.png

KACE Product Support Question


First Scripting Attempt

12/10/2010 2734 views
I am trying to put together a script that uses some SysInternal tools to gather information about the target PC, saves it to a series of logs, and then uploads those logs to the server, so they are viewable from the inventory record. I'm pasting the XML to the space below. If someone could take a gander at it and let me know what I might be able to do to fix it, I'd apprecaite it. Right now, it is only uploading the first log file (apparently), even though I am certain it is running each of the programs.

<?xml version="1.0" encoding="utf-8" ?>
<kbots xmlns="http://kace.com/Kbots.xsd">
<kbot>

<config name="Sysinternals Data Collection" type="policy" id="54" version="1291990590" description="Runs Page Defrag followed by PSIfo, PSList and PSFile against the target machine, uploading the results to the KBOX server under "Uploaded Files"">

<dependencies>
<dependency name="/orgs/6/kbots/54/PsInfo.exe" checksum="53e433146f2060b01e80128652d63c36" />
<dependency name="/orgs/6/kbots/54/PsList.exe" checksum="818632ea23ea95d641c48eb05eb58958" />
<dependency name="/orgs/6/kbots/54/pagedfrg.exe" checksum="24898ba51cbaad01a046541cc0a8d26f" />
<dependency name="/orgs/6/kbots/54/psfile.exe" checksum="cb623488009f084ec53cb62e45cbcf72" />
</dependencies>

<execute disconnected="false" logged_off="false">
</execute>

</config>

<compliance>

<verify on_failure="break" attempts="1">

<launch_program path="$(KACE_DEPENDENCY_DIR)" program="PsInfo.exe" wait="true" parms="-d > C:\%computername%info.log" />
<launch_program path="$(KACE_DEPENDENCY_DIR)" program="PsList.exe" wait="true" parms="-m > C:\%computername%list.log" />
<launch_program path="$(KACE_DEPENDENCY_DIR)" program="psfile.exe" wait="true" parms="> C:\%computername%file.log" />
<launch_program path="$(KACE_DEPENDENCY_DIR)" program="pagedfrg.exe" wait="true" parms="-o" />

<on_verify_success>
<upload_file path="C:" file="%computername%info.log" />
<upload_file path="C:" file="%computername%list.log" />
<upload_file path="C:" file="%computername%list.log" />
<upload_file path="C:" file="%computername%file.log" />
</on_verify_success>

<on_verify_failure>

<on_remediation_success>
</on_remediation_success>

<on_remediation_failure>
</on_remediation_failure>

</on_verify_failure>

</verify>

</compliance>

</kbot>
</kbots>
0 Comments   [ + ] Show comments

Comments


Be the first to answer this question

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ