> For the complete documentation index, see [llms.txt](https://docs.keeper.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.keeper.io/keeperpam/jp/secrets-manager/integrations/windows-credential-manager.md).

# Windows資格情報マネージャー

!\[]\(../../.gitbook/assets/Keeper and Windows Credential Manager.jpg)

## 概説 <a href="#overview" id="overview"></a>

Windows資格情報マネージャーは、パスワードやシークレットなどの機密情報を保存し、アプリケーションから安全にアクセスできるようにするWindowsのネイティブユーティリティです。

KeeperのWindows資格情報ユーティリティは、ネイティブWindows APIと連携し、Windows資格情報マネージャーからシークレットを保存および取得します。任意の連携、プラグイン、コードベースから利用でき、Windows資格情報マネージャーに認証情報、シークレット、パスワードをシンプルかつネイティブに保存および取得できます。

Windows資格情報ユーティリティのソースコードは以下で公開されています。

{% embed url="<https://github.com/Keeper-Security/windows-credential-utility>" %}

利用に必要なバイナリは以下で入手できます。

{% embed url="<https://github.com/Keeper-Security/windows-credential-utility/releases>" %}

Windows資格情報ユーティリティを利用するには、以下のいずれかを行います。

* [リリースページ](https://github.com/Keeper-Security/windows-credential-utility/releases)からビルド済みバイナリをデプロイする
* コードベースにインポートする

以下では実行ファイルの使用方法を取り扱います。

## 使用方法 - 実行ファイル <a href="#usage-executable" id="usage-executable"></a>

### 実行ファイルのダウンロード <a href="#downloading-the-executable" id="downloading-the-executable"></a>

[リリースページ](https://github.com/Keeper-Security/windows-credential-utility/releases)から最新版の実行ファイルをダウンロードし、必要に応じてPATHに追加して利用できます。

### 実行ファイルの使用 <a href="#using-the-executable" id="using-the-executable"></a>

実行ファイルでは、以下の2つのコマンドが利用できます。

1. `set`
2. `get`

どちらのコマンドも、最初の引数としてアプリケーション `name`（Windows資格情報マネージャーに保存される、または保存先となる資格情報の名前）が必要です。

### `set` <a href="#set" id="set"></a>

`set` では、保存するシークレットを第2引数として指定します。以下のいずれかです。

1. BASE64文字列
2. JSON文字列
3. 既存のJSONファイルへのパス

シークレットがWindows資格情報マネージャーに保存される際、まずBASE64形式にエンコードされます（すでにBASE64文字列でない場合）。これにより保存形式が標準化され、Keeperの連携機能および製品での利用が容易になります。

### `get` <a href="#get" id="get"></a>

`get` は、保存されているBASE64でエンコードされた構成を `stdout` に返し、終了コード `0` で終了します。要求元の連携では、出力をキャプチャして利用できます。構成の取得中にエラーが発生した場合、非ゼロの終了コードが返され、`stderr` に書き込まれます。

### 例 <a href="#example" id="example"></a>

```
# シークレットを保存
wcu set APPNAME eyJ1c2VybmFtZSI6ICJnb2xsdW0iLCAicGFzc3dvcmQiOiAiTXlQcmVjaW91cyJ9
# または
wcu set APPNAME config.json

# シークレットを取得
wcu get APPNAME
```


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.keeper.io/keeperpam/jp/secrets-manager/integrations/windows-credential-manager.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
