---
sourceDocument: Australia Security Management
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/security-management

 Release :

    - australia

ft:locale :

    - en-US

ft:publication_title :

    - Australia Security Management

ft:clusterId :

    - security

bundleId :

    - security

workflow :

    - Technology


---

# Determine Shell Script by OS activity

# Determine Shell Script by OS activity {#ariaid-title1}

* Release version: Australia
* 
* Updated March 12, 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

The Determine Shell Script by OS workflow activity determines which operating system to
use in the workflow
The Determine Shell Script by OS activity can be used with any workflow to determine which
shell script to run based on the operating system running on the system containing the
configuration item.

## Results

Possible results for this activity are:
{#determine-shell-script-by-os-activity__table_lg3_dm5_vy__entry__2}

| Result | Description |
|-|-|
| Success | Found operating system. |
| Failure | No operating system found. More error information is available in the activity output error. |
[Table 1. Results]

{#determine-shell-script-by-os-activity__table_lg3_dm5_vy}

## Input variables {#determine-shell-script-by-os-activity__section_nzb_1fm_3z}

Input variables determine the initial behavior of the activity.
{#determine-shell-script-by-os-activity__table_pgm_tfy_jr__entry__2}

| Variable | Description |
|-|-|
| ciSysId | System identifier of the configuration item. |
| processType | Internal identifier that defines which script to pull from the table. |
[ ]

{#determine-shell-script-by-os-activity__table_pgm_tfy_jr}

## Output variables

The output variables contain data that can be used in subsequent activities.
{#determine-shell-script-by-os-activity__table_bnj_jfy_jr__entry__2}

| Variable | Description |
|-|-|
| processScript | ECC agent that gathers the running process. |
| executionTemplate | Determines whether the script is run through a probe or using PowerShell. |
| enrichmentMappingId | System identifier of the enrichment mapping used to transform the response data. |
[Table 2. Output variables]

{#determine-shell-script-by-os-activity__table_bnj_jfy_jr}

