Run Program

This Automation Manager object runs an executable.

Input Parameters

Name Type Required Description
Program String Yes The name to the executable file.
Arguments String No The command-line parameters for the executable file.
Working Directory String No The path of the program to be executed.
Window Selector Yes The window style of the program during execution.
Wait for completion Boolean (check box) No Wait for the program to shutdown. This option will cause the Automation Manager Policy to pause until the execution of the specified program is completed before continuing on to the next Automation Manager Object.

Output Parameters

Name Type Description
Result Number If wait for completion is checked then this is the exit code of the program otherwise it is zero.
ProcessID Number The process ID number of the program during execution.

Example Input Parameters

Name Type Required Example

Program

String

Yes

C:\Program Files\CCleaner\CCleaner.exe

Arguments

String

No

/AUTO

Working Directory

String

No

<intentionally left blank>

Window

Selector

Yes

Hidden

Wait for completion

Boolean

No

  • Select As Local System if you are running the Automation Policy from N-able N-central and wish to run the application as the Local System User.
  • Select As Logged On User if you are running the Automation Policy from N-able N-central and wish to run the application as the logged on user.
  • Select From Designer if you are running the Automation Policy from the Automation Designer for testing purposes.
  • Selecting From Designer will cause any Policies that use this Object to fail if the Policy is run from N-able N-central.