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

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu Security Management

ft:clusterId :

    - security

bundleId :

    - security

workflow :

    - Technology


---

# Determine Shell Script by OS Flow Action

# Determine Shell Script by OS Flow Action {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

The Determine Shell Script by OS flow action determines which operating system to use in the flow.
The Determine Shell Script by OS flow action can be used with any flow 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 flow action 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 flow action 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 flow action.
{#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}

