Is Device in Collection activity

  • リリースバージョン: Australia
  • 更新日 2026年03月12日
  • 所要時間:2分
  • 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

    表 : 1. Is Device in Collection input variables
    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.

    Output variables

    表 : 2. Is Device in Collection output variables
    Variable Description
    output Variable that contains the test result: True/False
    errorMessage Variable that contains the activity output error message.

    Conditions

    表 : 3. Is Device in Collection conditions
    Condition Description
    Exist The device exists in the collection.
    Not exist The device does not exist in the collection.
    Failure Activity failed.