search cancel

Can you change the temp folder Client Tasks run from?

book

Article ID: 163573

calendar_today

Updated On:

Products

Endpoint Encryption Task Server

Issue/Introduction

Default behavior when creating a script Task is for the script to be created in "C:\Temp" and executed from there. Certain security configurations block anything from being executed from the root of "C:\" and "C:\Temp" as well as some other locations as they are commonly used by viruses and malware to install from. Are we able to change the behavior of the product to stop it trying to run things from there as it prevents us using that functionality within the product?

Environment

SMP 7.1/7.5/7.6

Cause

The product is working as designed; there is no such functionality built into the product.

Resolution

Create a script or copy file task to copy the file to the desired directory, then execute a task with a batch file (or other mechanism) to 'kick off' the previously copy file.

Please see the below example:

  1. Create a script or copy file task to copy the file to the desired directory, then execute a task with a batch file (or other mechanism) to 'kick off' the previously copied filed. In this instance create a‘Copy File’ task to stick a batch file on an endpoint; this exercise copies “Test.bat” to “C:\Program Files\Altiris\ScriptTest\” (*All this batch file does is create a text file with some text within in the “…\Altiris\” directory*):
  2. Create a script task to execute the batch file. Upon success this will place the text file in the correct directory:

Now this is a simple example, but this process should be applicable to different scenarios.

Attachments