---
sourceDocument: Yokohama データと自動化
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/ja-JP/yokohama/integrate-applications

 Release :

    - yokohama

ft:locale :

    - ja-JP

ft:publication_title :

    - Yokohama データと自動化

ft:clusterId :

    - crint

bundleId :

    - crint

workflow :

    - Creator


---

# \[コレクションのデバイス\] アクティビティ

# \[コレクションのデバイス\] アクティビティ {#ariaid-title1}

* リリースバージョン: Yokohama
* 
* 更新日 2025年01月30日
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 所要時間：1分

このアクティビティは、デバイスが SCCM デバイス コレクション内に存在するかどうかを確認します。
\[コレクションのデバイス\] アクティビティは、[PowerShell アクティビティテンプレート](https://servicenow-prod.fluidtopics.net/YIFjK9VurG8Gt1MVOuEAJg#t_CreateAPowershellActivity "Microsoft PowerShell を使用してホストからワークフローにデータを返すために、カスタム PowerShell アクティビティを作成します。")を使用して特定のデバイスが SCCM デバイス コレクション内に存在するかどうかを確認します。アクティビティは、PowerShell 機能を備えた MID サーバーを使用し、テストを実行する IsDeviceInCollection.ps1 と呼ばれる MID サーバースクリプトを実行するように設定されています。{#device-exists-sccm-collection__p_AccessSSHCustomActivities}

ワークフローエディターでこのアクティビティにアクセスするには、\[ カスタム\] タブを選択し、 カスタムアクティビティSystem Center Configuration Manager (SCCM).

## 入力変数

{#device-exists-sccm-collection__table_k4g_y11_1q__entry__2}

| 変数 | 説明 |
|-|-|
| sccmServer | SCCM サーバーの完全修飾ドメイン名 (FQDN)。 |
| collection | デバイス コレクションの名前。 |
| デバイス | 確認するデバイスの名前がコレクション内に存在します。 |
[表 : 1. \[コレクションのデバイス\] 入力変数]

{#device-exists-sccm-collection__table_k4g_y11_1q}

## 出力変数 {#device-exists-sccm-collection__table_SCCMActivityOutputVariables}

{#device-exists-sccm-collection__table_bsj_mg5_2s__entry__2}

| 変数 | 説明 |
|-|-|
| 出力 | テスト結果 (True/False) を含む変数 |
| errorMessage | アクティビティ出力エラーメッセージを含む変数。 |
[表 : 2. \[コレクションのデバイス\] 出力変数]

{#device-exists-sccm-collection__table_bsj_mg5_2s}

## 条件 {#device-exists-sccm-collection__table_SCCMActivityConditions}

{#device-exists-sccm-collection__table_cn3_rwc_3s__entry__2}

| 条件 | 説明 |
|-|-|
| 存在する | デバイスがコレクション内に存在します。 |
| 存在しない | デバイスがコレクション内に存在しません。 |
| 失敗 | アクティビティが失敗しました。 |
[表 : 3. \[コレクションのデバイス\] 条件]

{#device-exists-sccm-collection__table_cn3_rwc_3s}

