---
sourceDocument: Australia ServiceNow AI Platform Capabilities
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/de-DE/servicenow-platform

 Release :

    - australia

ft:locale :

    - de-DE

ft:publication_title :

    - Australia ServiceNow AI Platform Capabilities

ft:clusterId :

    - platcap

bundleId :

    - platcap

workflow :

    - Platform


---

# Is Device in Collection activity

# Is Device in Collection activity {#ariaid-title1}

* Freigeben Version: Australia
* 
* Aktualisiert 12. März 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 Minute Lesedauer

This activity verifies if a device exists in an SCCM device collection.
The Is Device in Collection activity uses the [PowerShell activity template](https://servicenow-prod.fluidtopics.net/SV5g3MJvrMeLhWdD7UG1VQ#t_CreateAPowershellActivity "Create a custom PowerShell activity return data to a workflow from a host using Microsoft PowerShell.") to verify if a specific device exists in an SCCM
device collection. The activity is configured to use a MID Server with PowerShell
capabilities and to run a MID Server script called
IsDeviceInCollection.ps1 to perform the test.{#device-exists-sccm-collection__p_AccessSSHCustomActivities}

To access this activity in the Workflow Editor, select the Custom
tab, and then navigate to Custom ActivitiesSystem Center Configuration Manager (SCCM).

## Input variables

{#device-exists-sccm-collection__table_k4g_y11_1q__entry__2}

| Variable | Description |
|-|-|
| sccmServer | The fully qualified domain name (FQDN) of the SCCM server. |
| collection | Name of the device collection. |
| device | Name of the device to verify is in the collection. |
[Tabelle : 1. Is Device in Collection input variables]

{#device-exists-sccm-collection__table_k4g_y11_1q}

## Output variables {#device-exists-sccm-collection__table_SCCMActivityOutputVariables}

{#device-exists-sccm-collection__table_bsj_mg5_2s__entry__2}

| Variable | Description |
|-|-|
| output | Variable that contains the test result: True/False |
| errorMessage | Variable that contains the activity output error message. |
[Tabelle : 2. Is Device in Collection output variables]

{#device-exists-sccm-collection__table_bsj_mg5_2s}

## Conditions {#device-exists-sccm-collection__table_SCCMActivityConditions}

{#device-exists-sccm-collection__table_cn3_rwc_3s__entry__2}

| Condition | Description |
|-|-|
| Exist | The device exists in the collection. |
| Not exist | The device does not exist in the collection. |
| Failure | Activity failed. |
[Tabelle : 3. Is Device in Collection conditions]

{#device-exists-sccm-collection__table_cn3_rwc_3s}

