> For the complete documentation index, see [llms.txt](https://docs.nexthink.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nexthink.com/platform/ja/configuring_nexthink/bringing-data-into-your-nexthink-instance/integrating-nexthink-with-third-party-tools/inbound-connectors/connector-for-omnissa-horizon.md).

# オムニッサ・ホライゾン コネクタ

{% hint style="warning" %}
このドキュメントは外部ソースを参照しています。 Nexthink はサードパーティのドキュメントの正確性や、このページに記載されている情報に矛盾を生じさせる可能性のある外部の更新または変更を制御することはできません。エラーや矛盾を[Nexthink サポート](https://support.nexthink.com/)に報告してください。
{% endhint %}

Omnissa Horizon 用 Nexthink コネクタは、各 Horizon 仮想マシンおよびリモート デスクトップ サービス（RDS）サーバーのデスクトッププール、そのプールタイプ、仮想化ホスト名、ディスクイメージを取得し、Nexthink 内の対応するデバイスに追加します。

このインストールガイドは、コネクタを安全にインストールするために役立ちます。セキュリティチームは、このドキュメントで説明するインストール手順を確認し、組織のセキュリティポリシーを満たすように調整してください。

## Nexthink にインポートされるデータ

コネクタは、[`devices`](https://docs.nexthink.com/platform/ja/understanding-key-data-platform-concepts/nql-data-model.md#device_device) テーブルの `virtualization` グループにある次のフィールドにデータを設定します。

| Nexthinkフィールド                     | タイプ | 説明                                                                                                                                                                                                                            |
| --------------------------------- | --- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `virtualization.desktop_pool`     | 文字列 | 仮想マシンが属する Horizon デスクトッププールの名前。                                                                                                                                                                                               |
| `virtualization.type`             | 列挙型 | <p>デスクトッププールのタイプ。可能な値は次のとおりです:</p><ul><li>shared: 複数のユーザーが同時に同じ仮想マシンで作業します</li><li>personal: 仮想マシンは一度に 1 人のユーザーが使用し、システムに加えられたすべての変更が保持されます</li><li>pooled: デバイスは一度に 1 人のユーザーが使用し、ログオフ時にドキュメントやデータを含むすべての変更が消去されます。</li></ul> |
| `virtualization.hostname`         | 文字列 | 仮想マシンの実行が最後に確認された仮想化ホストの名前。                                                                                                                                                                                                   |
| `virtualization.environment_name` | 文字列 | 仮想化の詳細を取得するために使用するコネクタの名前。設定ファイル内の Horizon 環境の `Name` です。                                                                                                                                                                     |
| `virtualization.desktop_broker`   | 列挙型 | 仮想マシンの VDI ブローカープラットフォーム。このコネクタでは `horizon_on_prem` です。                                                                                                                                                                       |
| `virtualization.disk_image`       | 文字列 | 仮想マシンで最後に使用されていることが確認されたディスクイメージ。                                                                                                                                                                                             |

## Nexthink コネクタサーバー <a href="#connectorforcitrixvirtualappsanddesktops-nexthinkconnectorserver" id="connectorforcitrixvirtualappsanddesktops-nexthinkconnectorserver"></a>

Nexthink は、読み取り対象の Horizon インフラストラクチャを決して中断しないよう、Omnissa Horizon 用 Nexthink コネクタを Horizon Connection Server ではなく、別の Windows サーバーにインストールすることを推奨します。

### 前提条件 <a href="#connectorforcitrixvirtualappsanddesktops-prerequisites" id="connectorforcitrixvirtualappsanddesktops-prerequisites"></a>

* [VM 用の Collector の設定と展開](https://docs.nexthink.com/platform/ja/configuring_nexthink/bringing-data-into-your-nexthink-instance/deploying-nexthink-in-non-vdi-environment/installing-collector/installing-collector-on-windows/configuring-and-deploying-collector-for-vms.md)で説明されている、すべての Omnissa Horizon 環境の仮想マシンにインストールされた Nexthink Collector。
* インストールされたWindows PowerShell 5.1。
* 実行ポリシーが **Bypass** に設定されていること。
* コネクタを実行するローカルユーザーアカウントにインストールされている、以下の PowerShell モジュール:
  * [Logging 4.8.5](https://www.powershellgallery.com/packages/Logging/4.8.5)
  * [CredentialManager 2.0](https://www.powershellgallery.com/packages/CredentialManager/2.0)
* オムニッサ ホライゾンの最小互換バージョンは8 2309です。
* [Omnissa Horizon 用 Nexthink コネクタをダウンロードしました](https://download.nexthink.com/integrations/Omnissa+onPrem+Connector/0.2.16/OmnissaConnector-0.2.16.zip)。

### ハードウェア要件

| コンポーネント      | 最小人数                     | 推奨人数                     |
| ------------ | ------------------------ | ------------------------ |
| CPU          | 2 コア x64                 | 4 コア x64                 |
| RAM          | 2 GB                     | 4—8 GB                   |
| ディスクの空き容量    | 2 GB                     | 5 GB                     |
| オペレーティングシステム | Windows 10 / Server 2016 | Windows 11 / Server 2022 |

### ネットワーク <a href="#connectorforcitrixvirtualappsanddesktops-networking" id="connectorforcitrixvirtualappsanddesktops-networking"></a>

Omnissa Horizon 用 Nexthink コネクタは、Omnissa Horizon Connection Server および Nexthink インスタンスに接続します。

* コネクタは TCP ポート 443 経由で Nexthink インスタンスと通信します。
* コネクタは、`config.json` の各環境の `Host` アドレスにある Horizon Connection Server REST API に接続します。アドレスで別のポートが指定されていない限り、TCP ポート 443 上の HTTPS を使用します。

#### PowerShell `Install-Module` のためにファイアウォールまたはプロキシで許可する URL

| 目的                     | URL                                         |
| ---------------------- | ------------------------------------------- |
| PowerShell Gallery     | `https://www.powershellgallery.com`         |
| パッケージ用CDN              | `https://www.powershellgallery.com/api/v2/` |
| NuGetプロバイダー            | `https://www.nuget.org`                     |
| NuGet API              | `https://api.nuget.org`                     |
| 代替NuGet V2 API         | `https://www.nuget.org/api/v2/`             |
| 証明書失効（通常は任意、場合によっては必要） | `http://crl.microsoft.com`                  |

#### 追加の考慮事項

* プロキシで SSL インスペクションが有効になっている場合は、TLS ハンドシェイクが妨げられないことを確認してください。
* プロキシの背後にいる場合、次のコマンドを実行して`PowerShell`がそれを使用するように設定されていることを確認してください：

{% code overflow="wrap" %}

```powershell
[System.Net.WebRequest]::DefaultWebProxy.Credentials = [System.Net.CredentialCache]::DefaultNetworkCredentials
```

{% endcode %}

#### 接続をテスト

PowerShell ターミナルを使用して次のコマンドを実行することでアクセスをテストできます:

```powershell
Invoke-WebRequest https://www.powershellgallery.com
```

### スケジュールされたタスク用のローカルユーザーアカウント

Omnissa Horizon 用 Nexthink コネクタは、Omnissa Horizon 環境ごとに 1 つの Runner タスクと 1 つの Auto-Updater タスクというスケジュールされたタスクとして実行され、Omnissa Horizon API へのアクセスが必要です。セキュリティ上の懸念を最小限に抑えるため、Nexthink は、コネクタをインストールするサーバー上のローカルユーザーアカウント、またはドメインレベルで特別な権限を持たない通常のドメインユーザーアカウントを使用することを推奨します。

以下のガイドでは、Nexthink コネクターサーバー上のローカルアカウントを使用します。

{% stepper %}
{% step %}
Nexthink コネクター for Omnissa Horizon を実行するサーバーに管理者としてログオンします。
{% endstep %}

{% step %}
スタートメニューから次のコマンドを実行して、ローカルユーザーおよびグループコンソールを起動します。

```powershell
lusrmgr.msc
```

<figure><img src="https://3549141153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeLm8O7QKZDn6z806e7Sv%2Fuploads%2Fgit-blob-e33a79105f0d5b3d5de897a63c6ac9bb729684d0%2Fcitr-1678980898.png?alt=media" alt="Run the lusrmgr.msc command"><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**ローカルユーザーとグループ (ローカル)** ディレクトリ内の **ユーザー** フォルダーを右クリックし、**新規ユーザー…** を選択します。
{% endstep %}

{% step %}
組織の命名規則に従ってユーザーアカウントを作成します。たとえば `nxt-omnissa` とします。このガイドでは、以降のコマンドで `nxt-omnissa` を使用します。ご使用のアカウント名に置き換えてください。 **User name** と **Password** を控えておいてください。資格情報の保存、コネクタのテスト、スケジュールされたタスクの作成に必要です。

コネクタを継続して実行するため、次のオプションを選択します:

* **ユーザーはパスワードを変更できません**
* **パスワードの有効期限は切れません**

<figure><img src="https://3549141153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeLm8O7QKZDn6z806e7Sv%2Fuploads%2Fgit-blob-389a86ffc7c8222b5a76c8796bc8df8459068325%2F01.png?alt=media" alt="New user options" width="375"><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**作成** を選択します。
{% endstep %}

{% step %}
スタートメニューから次のコマンドを実行して、ローカルグループポリシーエディタを開きます。

```powershell
gpedit.msc
```

{% endstep %}

{% step %}
*Computer Configuration > Windows Settings > Security Settings > Local Policies > User Rights Assignment* に移動し、**Log on as a batch job** ポリシーを開きます。
{% endstep %}

{% step %}
ポリシーを開き、**ユーザーまたはグループを追加** を選択して、以前に作成したユーザーをリストに追加します。

<figure><img src="https://3549141153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeLm8O7QKZDn6z806e7Sv%2Fuploads%2Fgit-blob-29fb7db66b46706dd153e3c7233b32f901c389df%2F04.png?alt=media" alt="Add user or group"><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

### コネクターのインストール <a href="#connectorforcitrixvirtualappsanddesktops-installingtheconnector" id="connectorforcitrixvirtualappsanddesktops-installingtheconnector"></a>

{% stepper %}
{% step %}
[Omnissa Horizon 用 Nexthink コネクタ](https://download.nexthink.com/integrations/Omnissa+onPrem+Connector/0.2.16/OmnissaConnector-0.2.16.zip)をダウンロードします。
{% endstep %}

{% step %}
zip ファイルを展開し、その `OmnissaConnector-<version>` フォルダーの内容をシステム上のフォルダーにコピーします。 Nexthink は次のフォルダーを推奨します:

`C:\Program Files\Nexthink\Connectors\Omnissa`
{% endstep %}

{% step %}
先ほど作成したローカルユーザーアカウントに対して、コネクタフォルダー（例: `C:\Program Files\Nexthink\Connectors\Omnissa`）の **変更** 権限を適用します。適用先は **このフォルダー、サブフォルダーおよびファイル** とします。これにより、コネクタはその中に `Logs` フォルダーと `Storage` フォルダーを作成して書き込めます。

<figure><img src="https://3549141153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeLm8O7QKZDn6z806e7Sv%2Fuploads%2Fgit-blob-de3396966bd944f265cee6995b687c66bcafedee%2F02.png?alt=media" alt="Folder properties, Security tab, with Modify permission granted to the local user account" width="365"><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

### Nexthink API の認証情報

Nexthink コネクター for Omnissa Horizon は、Nexthink Enrichment API への接続に適切なクレデンシャルを必要とします。 Nexthink は、クレデンシャルを先ほど作成したローカルユーザーアカウントのクレデンシャルストアに安全に保存します。

{% stepper %}
{% step %}
**Enrichment API** 権限を持つ API 認証情報を作成します。手順については、[API credentials](https://developer.nexthink.com/docs/api/api-credentials) のドキュメントを参照してください。

API クレデンシャルを保存すると、クライアント ID とシークレットキーが含まれる新しいウィンドウが表示されます。両方を控えておいてください。ウィンドウを閉じると再度表示されません。

<figure><img src="https://3549141153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeLm8O7QKZDn6z806e7Sv%2Fuploads%2Fgit-blob-25527dad3aca35423e85a92c8f2bcd90999443c5%2Fcitr-1679044299.png?alt=media" alt="OAuth client credentials"><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Omnissa Horizon 用 Nexthink Connector を実行するサーバーで、コマンドラインで `runas` を実行して、先ほど作成したローカルユーザーの資格情報で PowerShell を開きます。

```powershell
runas /user:nxt-omnissa powershell.exe
```

<figure><img src="https://3549141153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeLm8O7QKZDn6z806e7Sv%2Fuploads%2Fgit-blob-49ee15c0d61b4d6cdbca2fb785de4c23cb0c3a23%2F05.png?alt=media" alt="runas CLI"><figcaption></figcaption></figure>
{% endstep %}

{% step %}
新しい PowerShell ウィンドウで、次のコマンドを実行して API 認証情報を保存します:

{% code overflow="wrap" %}

```powershell
New-StoredCredential -Target "nxt-omnissa-credentials" -UserName "<Client ID>" -Password "<Secret key>" -Persist LocalMachine
```

{% endcode %}

`<Client ID>` と `<Secret key>` を、控えた値に置き換えます。 `-Target` で使用した `TargetName` を控えておいてください。設定ファイルで必要です。

<figure><img src="https://3549141153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeLm8O7QKZDn6z806e7Sv%2Fuploads%2Fgit-blob-1c9ca32d90fec7234a30577ee03419c9c7bf4301%2F06.png?alt=media" alt="PowerShell window"><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

{% hint style="info" %}
`config.json` [設定ファイル](#connectorforcitrixvirtualappsanddesktops-updatingtheconfigurationfile)では、これらの認証情報は `"NexthinkAPI"` に保存されます。

`-Target` で使用した `TargetName` は `"WindowsCredentialEntry"` に保存されます。
{% endhint %}

### 設定ファイルの更新 <a href="#connectorforcitrixvirtualappsanddesktops-updatingtheconfigurationfile" id="connectorforcitrixvirtualappsanddesktops-updatingtheconfigurationfile"></a>

構成ファイルを更新するには、Nexthink インスタンスの API アドレス `<instance>.api.<region>` が必要です.nexthink.cloud\`.

{% hint style="info" %}
地域がわからない場合は、Nexthink 担当者に連絡して情報を取得してください。
{% endhint %}

{% stepper %}
{% step %}
Nexthink コネクター for Omnissa Horizon を解凍したフォルダーを探します。
{% endstep %}

{% step %}
`Config` フォルダーに移動し、テキストエディタを使用して `config.json` ファイルを開きます。
{% endstep %}

{% step %}
ファイルの構造は次のとおりです。この手順では、`"NexthinkAPI"` セクションを編集します。 `"OmnissaEnvironments"` セクションは、Omnissa Horizon の認証情報を保存した後、[Omnissa Horizon 環境への接続を設定する](#setting-up-a-connection-to-an-omnissa-horizon-environment)で後から編集します。

```json
{
    "_Info": "This is the JSON based configuration for Omnissa connector",
    "Info": {
        "Project": "connector-omnissa-horizon-server",
        "ConfigVersion": "0.1.0"
    },
    "Logging": {
        "LogRetentionDays": 7,
        "LogLevel": "INFO"
    },
    "OmnissaEnvironments": [
        {
            "Name": "<environment-name-1>",
            "Host": "<host>",
            "WindowsCredentialEntry": "<omnissa-user-credentials-1>"
        },
        {
            "Name": "<environment-name-2>",
            "Host": "<host>",
            "WindowsCredentialEntry": "<omnissa-user-credentials-2>"
        }
    ],
    "NexthinkAPI": {
        "HostFQDN": "<nexthink_api_host>",
        "WindowsCredentialEntry": "<nxt-omnissa-credentials>",
        "RequestBatchSize": 1000
    }
}
```

{% endstep %}

{% step %}
`"NexthinkAPI"` セクションの次の値を変更します。

* `"HostFQDN"` の値を `<instance>.api.<region>.nexthink.cloud` フォーマットを使用して、Nexthink クラウド API インスタンスの URL に置き換えます。それぞれの `<instance>` と `<region>` はプレースホルダーです。
  * `<instance>` をインスタンスの名前に置き換えます。
  * `<region>` を次の地域のいずれかに置き換えます:
    * `us` はアメリカ合衆国
    * `eu` はヨーロッパ連合
    * `pac` はアジア太平洋
    * `meta` は中東、トルコ、アフリカ
  * 必要に応じて、次の URL 例を参照してください：\
    `gwy-eu-west-3-fuji-rest.api.eu.nexthink.cloud`
* `"WindowsCredentialEntry"` のプレースホルダーを、先ほど保存した API 認証情報の `TargetName` に置き換えます。例:\
  `"WindowsCredentialEntry": "nxt-omnissa-credentials",`
  {% endstep %}
  {% endstepper %}

## Omnissa Horizon 環境への接続を設定する

前のセクションでは、Omnissa Horizon 用 Nexthink コネクタの基本設定について説明しました。このセクションでは、Omnissa Horizon 環境への接続を設定します。接続する Omnissa Horizon 環境ごとに、このセクションの手順を繰り返します。

コネクタは、Horizon Connection Server の REST API からデスクトッププール、マシン、RDS サーバー、ファームを読み取ります。また、Horizon が vCenter Server から読み取るベース VM、スナップショット、および VM テンプレートも読み取ります。ドメインユーザーアカウントでサインインします。

### 管理者アカウントの作成 <a href="#connectorforcitrixvirtualappsanddesktops-creatingaread-onlycitrixadministrator" id="connectorforcitrixvirtualappsanddesktops-creatingaread-onlycitrixadministrator"></a>

Omnissa Horizon 用 Nexthink コネクタには、Horizon REST API への読み取り専用アクセスが必要です。特別な権限を持たないドメインユーザーアカウントを作成し、ユーザー名とパスワードを控えておいてください。Horizon の認証情報を保存するために必要です。

{% stepper %}
{% step %}
**Horizon Console** にログインします。
{% endstep %}

{% step %}
*Settings > Administrators* に移動し、**Add** を選択します。
{% endstep %}

{% step %}
作成したドメインユーザーアカウントを検索して選択します。
{% endstep %}

{% step %}
ルートアクセスグループで、ユーザーに読み取り専用ロールを割り当てます。コネクタはサインインし、デスクトッププール、マシン、RDS サーバー、ファーム、および vCenter Server のベース VM、スナップショット、VM テンプレートを読み取るだけです。事前定義済みのロールでこの読み取りアクセスが許可されない場合は、これらの読み取り権限を持つカスタムロールを作成します。
{% endstep %}
{% endstepper %}

### 保存されたクレデンシャルの設定 <a href="#connectorforcitrixvirtualappsanddesktops-settingupstoredcredentials" id="connectorforcitrixvirtualappsanddesktops-settingupstoredcredentials"></a>

{% stepper %}
{% step %}
Omnissa Horizon 用 Nexthink Connector を実行するサーバーで、コマンドラインで `runas` を実行して、先ほど作成したローカルユーザーの資格情報で PowerShell を開きます。

```powershell
runas /user:nxt-omnissa powershell.exe
```

<figure><img src="https://3549141153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeLm8O7QKZDn6z806e7Sv%2Fuploads%2Fgit-blob-49ee15c0d61b4d6cdbca2fb785de4c23cb0c3a23%2F05.png?alt=media" alt="runas CLI"><figcaption></figcaption></figure>
{% endstep %}

{% step %}
新しい PowerShell ウィンドウで、次のコマンドを実行して、読み取り専用の Omnissa Horizon 管理者ロールを持つドメインユーザーアカウントの認証情報を保存します:

{% code overflow="wrap" %}

```powershell
New-StoredCredential -Target "nxt-omnissa-prod" -UserName "<domain\username>" -Password "<password>" -Persist LocalMachine
```

{% endcode %}

`<domain\username>` を、ドメインユーザーアカウントのドメイン名とユーザー名に `DOMAIN\username` の形式で置き換えます。例: `DOMAIN\svc_horizon_api`。 `<password>` をそのパスワードに置き換えます。

使用した `TargetName` を控えておいてください。設定ファイルで必要です。

<figure><img src="https://3549141153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeLm8O7QKZDn6z806e7Sv%2Fuploads%2Fgit-blob-f735fbdaf4bcdbb3f889fe2ed4948ec748dd2dd5%2F07.png?alt=media" alt="PowerShell window"><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

### 設定ファイルの更新 <a href="#connectorforcitrixvirtualappsanddesktops-updatingtheconfigurationfile.1" id="connectorforcitrixvirtualappsanddesktops-updatingtheconfigurationfile.1"></a>

各 Omnissa Horizon 環境には、構成ファイルに独自のセクションがあります。このコネクターに付属する構成ファイルには、複数の環境を構成する方法の例が含まれています。必要に応じて、将来の参考のために元の `config.json` ファイルのコピーを作成します。

{% stepper %}
{% step %}
コネクタを解凍したフォルダーを探します。
{% endstep %}

{% step %}
**`Config`** フォルダーに移動し、テキストエディタを使用して `config.json` ファイルを開きます。
{% endstep %}

{% step %}
`"OmnissaEnvironments"` セクションまでスクロールします。接続する Omnissa Horizon 環境ごとに 1 つのエントリを保持します。単一の環境に接続する場合は、2 つ目のエントリを削除します。各エントリは次のようになります:

```json
{
    "Name": "<environment-name-1>",
    "Host": "<host>",
    "WindowsCredentialEntry": "<omnissa-user-credentials-1>"
}
```

{% endstep %}

{% step %}
エントリ内の次の値を変更します:

* `<environment-name-1>` を、この Omnissa Horizon 環境の名前に置き換えます。例: `Horizon Prod`。この名前は引用符で囲んで、`-OmnissaEnvironment` を使用してコネクタに渡します。 Nexthink では、この名前が `virtualization.environment_name` フィールドに表示されます。
* `<host>` を、`https://` を含む Horizon Connection Server のアドレスに置き換えます。例: `https://horizon.example.com`。
* `<omnissa-user-credentials-1>` を、先ほど PowerShell で作成した保存済み認証情報の `TargetName` に置き換えます。例: `nxt-omnissa-prod`。
  {% endstep %}
  {% endstepper %}

### コネクターのテスト <a href="#connectorforcitrixvirtualappsanddesktops-testingtheconnector" id="connectorforcitrixvirtualappsanddesktops-testingtheconnector"></a>

テストは実際の実行です。Omnissa Horizon 環境を読み取り、そのデータを Nexthink に送信します。

{% stepper %}
{% step %}
Nexthink コネクター for Omnissa Horizon を実行するサーバーで、コマンドラインで `runas` コマンドを使用して、以前に作成したローカルユーザーの資格で PowerShell を開きます。

```powershell
runas /user:nxt-omnissa powershell.exe
```

{% endstep %}

{% step %}
コネクターをインストールしたディレクトリに移動します。たとえば:

```powershell
cd 'C:\Program Files\Nexthink\Connectors\Omnissa\'
```

{% endstep %}

{% step %}
ローカルユーザーアカウントにコネクタモジュールをインストールする Auto-Updater を実行します:

```powershell
.\Omnissa-Connector-Auto-Updater.ps1
```

{% endstep %}

{% step %}
環境の Runner を実行します:

```powershell
.\Omnissa-Connector-Runner.ps1 -OmnissaEnvironment "<environment name>"
```

`<environment name>` を、`config.json` 内の環境の `Name` に置き換えます。例: `Horizon Prod`。
{% endstep %}

{% step %}
コネクタフォルダー内の実行ログファイル `Logs\<environment name>\OmnissaConnector-<yyyyMMdd>.log` を開き、エラーがないか確認します。実行が成功した場合、`Stopping Omnissa connector <version> with exit code 0` で終了します。
{% endstep %}
{% endstepper %}

### スケジュールされたタスクの設定

Omnissa Horizon 環境ごとに Runner 用のスケジュールされたタスクを 1 つ作成し、Auto-Updater 用にも 1 つ作成します。

{% stepper %}
{% step %}
タスクスケジューラを開き、\*\*タスクの作成...\*\*を選択します。

<figure><img src="https://3549141153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeLm8O7QKZDn6z806e7Sv%2Fuploads%2Fgit-blob-e4cdd40df98d68e566780ee02b2ecd8127017101%2Fcitr-1669383499.png?alt=media" alt="Create a task"><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**全般** タブで、タスクに名前を付けます。例: `Nexthink Horizon connector - Horizon Prod`。次に、ユーザーを先ほど作成したローカルユーザーアカウント（例: `nxt-omnissa`）に変更します。ユーザーがログオンしていなくても実行する (Run whether user is logged on or not) を選択します。

<figure><img src="https://3549141153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeLm8O7QKZDn6z806e7Sv%2Fuploads%2Fgit-blob-781c005287fa11ef72510be74aad6c9c76b376c4%2Fcitr-1679385360.png?alt=media" alt="Task properties, General tab" width="315"><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Triggers** タブで、**New…** をクリックします。 *Advanced settings > Repeat task every* で **15 minutes** を選択し、**for a duration of** を **Indefinitely** に設定します。 **OK** をクリックします。各実行では前回の実行以降に変更されたデバイスのみを送信するため、短い間隔でもコストはわずかです。

<figure><img src="https://3549141153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeLm8O7QKZDn6z806e7Sv%2Fuploads%2Fgit-blob-cea2410aa896e66d8e251dca7b92d894c00f3086%2F03.png?alt=media" alt="New trigger, repeating the task every 15 minutes" width="375"><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Actions** タブで、**New…** をクリックし、次の値を入力します。 **OK** をクリックします。

* **プログラム/スクリプト**: `powershell.exe`
* **Add arguments (optional)**: `-ExecutionPolicy Bypass -File "C:\Program Files\Nexthink\Connectors\Omnissa\Omnissa-Connector-Runner.ps1" -OmnissaEnvironment "Horizon Prod"`。`config.json` の環境名を使用します
* **Start in (optional)**: コネクタフォルダー。例: `C:\Program Files\Nexthink\Connectors\Omnissa`

<figure><img src="https://3549141153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeLm8O7QKZDn6z806e7Sv%2Fuploads%2Fgit-blob-b39ad1dcc25eb3e105661c61b283fe920d140462%2Fcitr-1670319737.png?alt=media" alt="Edit action" width="227"><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**OK** をクリックしてタスクを保存します。プロンプトが表示されたら、ローカルユーザーアカウントのパスワードを入力して **OK** をクリックします。

<figure><img src="https://3549141153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeLm8O7QKZDn6z806e7Sv%2Fuploads%2Fgit-blob-b34805f1e6808fd75ff8560bfcb6f7f97958b03b%2Fcitr-1679387044.png?alt=media" alt="Confirm credentials"><figcaption></figcaption></figure>
{% endstep %}

{% step %}
他の Omnissa Horizon 環境ごとにこれらの手順を繰り返し、タスク名と `-OmnissaEnvironment` 値のみを変更します。
{% endstep %}

{% step %}
ローカルユーザーアカウントにコネクタモジュールをインストールする Auto-Updater について、次の相違点を除き、これらの手順を 1 回繰り返します:

* タスク名: 例: `Nexthink Horizon connector - Auto-Updater`
* トリガー: Runner と同じく15分ごとに繰り返します。これにより、新しいコネクタバージョンが15分以内に使用されます。
* **引数の追加（省略可能）**: `-ExecutionPolicy Bypass -File "C:\Program Files\Nexthink\Connectors\Omnissa\Omnissa-Connector-Auto-Updater.ps1"`
  {% endstep %}
  {% endstepper %}

## Nexthink でデータを検証する

Runner のスケジュールされたタスクの初回実行後、Nexthink で **Investigations** を開き、次のクエリを実行します:

```
devices
| where device.virtualization.desktop_broker == horizon_on_prem
| list device.name, device.virtualization.environment_name, device.virtualization.desktop_pool, device.virtualization.type, device.virtualization.hostname, device.virtualization.desktop_broker, device.virtualization.disk_image
```

各行はコネクタによって拡張された仮想マシンであり、環境名はそれを提供した接続を示します。

## 次のステップ

* [VDI Experience](https://docs.nexthink.com/platform/ja/user-guide/vdi-experience.md): Nexthink が仮想デスクトップを監視するために使用するモジュール。以下のライブラリパックで必要です。
* [Omnissa Horizon オンプレミスの基本](https://docs.nexthink.com/platform/ja/library-packs/vdi/omnissa/omnissa-horizon-on-premises-essentials.md): Nexthink Library からインストールするライブラリパック。ダッシュボードには、仮想マシンのオンラインとオフラインの分布、再起動の正常性と登録、および CPU、GPU、メモリ、ストレージ、ネットワークの負荷が表示されます。

***

関連トピック

* [API Credentials](https://developer.nexthink.com/docs/api/api-credentials)
* [VM 用の Collector の設定と展開](https://docs.nexthink.com/platform/ja/configuring_nexthink/bringing-data-into-your-nexthink-instance/deploying-nexthink-in-non-vdi-environment/installing-collector/installing-collector-on-windows/configuring-and-deploying-collector-for-vms.md)
* [VDI Experience](https://docs.nexthink.com/platform/ja/user-guide/vdi-experience.md)
* [Omnissa Horizon オンプレミスの基本](https://docs.nexthink.com/platform/ja/library-packs/vdi/omnissa/omnissa-horizon-on-premises-essentials.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.nexthink.com/platform/ja/configuring_nexthink/bringing-data-into-your-nexthink-instance/integrating-nexthink-with-third-party-tools/inbound-connectors/connector-for-omnissa-horizon.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
