Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

Is Device in Collection activity

This activity verifies if a device exists in an SCCM device collection.

The Is Device in Collection activity uses the PowerShell activity template 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.

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

Input variables

VariableDescription
sccmServerThe fully qualified domain name (FQDN) of the SCCM server.
collectionName of the device collection.
deviceName of the device to verify is in the collection.

Output variables

VariableDescription
outputVariable that contains the test result: True/False
errorMessageVariable that contains the activity output error message.

Conditions

ConditionDescription
ExistThe device exists in the collection.
Not existThe device does not exist in the collection.
FailureActivity failed.

Parent Topic:SCCM activity pack