Skip to main content

Create a command from a template

Learn how to create command from Trio templates.

Updated over 3 weeks ago

Overview

Trio’s command templates allow IT administrators to quickly set up system-level actions for managed devices. Templates include preconfigured structures, reducing setup time and minimizing error, ideal for repetitive or advanced command executions.


Step-by-Step: Create a Command from a Template

1. Navigate to Commands

  • Go to the Devices section in the left sidebar.

  • Select the Commands tab at the top.

  • You’ll see the Commands Template section at the top of the screen.


2. Choose a Template

Available templates include:

  • Convert to 64-Bit (Windows)

  • Shell Script (macOS)

  • 64-Bit MultiLine (Windows)

Click + Create from template under your preferred template (e.g., “Convert to 64-Bit”).


3. Name and Confirm the Command

A pop-up will appear:

  • Command Name: Provide a recognizable name (e.g., Convert to 64-Bit #1).

  • A default description will be filled in automatically from the template.

Click Confirm to proceed.


4. Configure Command Settings

You’ll now enter the detailed configuration screen:

Operating System & Environment

  • OS: Windows or macOS (preselected based on template)

  • Environment: CMD or PowerShell

Command Code

Pre-filled with the script. For example:

powershellCopyEdit## Enter the command within the "" on the below line $64BitCommand = "" ##------ Do not modify below this line -------------- & (Join-Path ($PSHOME -replace 'syswow64', 'sysnative') powershell.exe) -Command "& {$64BitCommand}"

Add your command string inside "" on the first line.


5. Define Execution Settings

  • Launch Method: Select how the command will be triggered (e.g., Run Manually).

  • Smart Defaults: Toggle on for automated settings.

  • Command Expiration: Set how long the command remains valid (e.g., 3 days).

  • Timeout After: Set the time (in seconds) after which the command should timeout (e.g., 120).


6. Add Optional Files

If your command relies on additional files:

  • Use Drag and Drop or click Upload.

  • Specify the File Destination path on the device.

  • Click Add to include it in the command.

  • Uploaded files appear in a list below for review or deletion.


7. Save the Command

Click Create to finalize and add the command to your command library.

A confirmation will appear:

Added successfully – New command added to the library.


8. View and Manage Your Commands

  • The newly added command will now appear in your command list.

  • You can view its:

    • OS and environment (e.g., Windows CMD)

    • Code snippet

    • Launch method

    • Assigned users or groups

  • Use the three-dot menu to edit, assign, or delete the command.


Final Notes

  • Template commands streamline recurring administrative tasks like system transitions and multi-line scripting.

  • You can always edit command code, add conditions, or attach files to suit deployment needs.

Did this answer your question?