Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Unified Engineering

Set up Scheduled Tasks to Run Command Line Application Batches

Set up Scheduled Tasks to Run Command Line Application Batches

  • Last UpdatedApr 14, 2025
  • 2 minute read

The first consideration when setting up scheduled tasks with batches that use MSIX install software, is that by default, the applications have been installed to the specific users account. However, Task Scheduler uses a LOCALSYSTEM account which would not typically have visibility of the products installed under a particular user.

As a result, the relevant username must be provided in the task to expose the products, then cmd, powershell or a dos batch is used to initiate the command line syntax. Opening the process via these applications imitates the installed user and gives access to the MSIX installed product.

To start scheduled task with CMD directly

Create a new scheduled task with the username matching the account in which the MSIX has installed the product.

On the Actions tab, start cmd.exe (command shell).

The "Add" arguments (optional) is set with /c followed by the command line syntax already covered in the batch, for example:

ue -md:Model -p:APS -u:SYSTEM -pw:XXXXXX -m:/ALL -tty mc:c:\temp\Model_export.pmlmac

To start a scheduled task with a batch file

A trigger batch file is produced with the command line syntax inside.

The task is then set up for the user in which the MSIX has installed the product.

To start scheduled task with PowerShell

A PowerShell trigger file is produced.

In This Topic
TitleResults for “How to create a CRG?”Also Available in