[UBA][Windows] -unattended時にHorde server URLの取得が失敗する

詳細をご提供いただきありがとうございます。調査の結果、このコマンドレットは `-unattended` フラグを指定して実行した場合、Desktop Platform モジュールをロードしないことが判明しました。Horde はこのコンテキストで URL を取得し、その後のログインを実行するために、このモジュールに依存しています。

Horde ビルドマシン上で `-unattended` フラグを使用して実行される当社の World Partition Build ジョブでは、分散コンパイルに UBA が正常に使用されていることを確認しました。

お客様もCI/CDにHordeをご利用されていることを踏まえ、これらの自動化された(非対話型)実行にはHordeを使用し、ローカルで実行する際は`-unattended`フラグを省略することをお勧めします。

事前に取得したトークンやサービスアカウントを使用した非対話型操作に関する当初のご質問についてですが、トークンやサービスアカウントを生成する方法はいくつかあります。

サービスアカウントの生成には `/api/v1/serviceaccounts` エンドポイントを、トークンの生成には `/api/v1/admin/token` エンドポイントを使用できます。

これらのエンドポイントの詳細については、https://<HORDE_URL>/swagger/index.html をご覧ください。

また、サービスアカウントのフローに関する情報については、こちらのフォーラム投稿もご参照ください。Horde system user authentication (ServiceAccounts)

---

Thank you for providing these details. After some investigation, it appears that this commandlet does not load the Desktop Platform module when run with the `-unattended` flag, which Horde relies on to fetch the URL in this context and to perform subsequent login.

I have confirmed that our World Partition Build jobs, which run on Horde build machines and use the `-unattended` flag, are successfully using UBA for distributed compilation.

Given that you are also using Horde for CI/CD, we recommend using Horde for these automated (non-interactive) runs and omit the `-unattended` flag when running locally.

Regarding your original question about performing non-interactive operations with pre-obtained tokens or service accounts, we have several methods for generating tokens and service accounts.

You can use the `/api/v1/serviceaccounts` endpoint to generate service accounts, and the `/api/v1/admin/token` endpoint for tokens.

Please see https://<HORDE_URL>/swagger/index.html for more information on these endpoints.

Please also see this forum post for information on the service account flow. Horde system user authentication (ServiceAccounts)

[Attachment Removed]