---
sourceDocument: Xanadu の Now Platform 機能
sourceDocumentLink: https://www.servicenow.com/docs/r/ja-JP/xanadu/servicenow-platform

 Release :

    - xanadu

ft:locale :

    - ja-JP

ft:publication_title :

    - Xanadu の Now Platform 機能

ft:clusterId :

    - platcap

bundleId :

    - platcap

workflow :

    - Platform


---

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

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

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

このアクティビティは、デバイスが SCCM デバイス コレクション内に存在するかどうかを確認します。
\[コレクションのデバイス\] アクティビティは、[PowerShell アクティビティテンプレート](https://www.servicenow.com/docs/AzkOoPJHGJpOsbJ9NCb4Nw#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 | デバイス コレクションの名前。 |
| device | 確認するデバイスの名前がコレクション内に存在します。 |
[表 : 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}

| 変数 | 説明 |
|-|-|
| output | テスト結果 (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}

