> For the complete documentation index, see [llms.txt](https://docs.konnekt.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.konnekt.io/ja/configuration/mappings/assign-drive-letters.md).

# ドライブ文字を割り当てる

## OneDrive for Business ライブラリへのドライブ文字の割り当て

この設定では、OneDrive for Business ライブラリのドライブ文字を構成できます。

既定値は `H:`

この機能は、次の方法でも構成できます。

### ［設定］メニュー

![](https://1902283602-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8zLVuKYctMIUr68_fs%2Fuploads%2FtZtXM9oPb291a3txxurD%2F2022-08-02%2016_18_33-Window.png?alt=media\&token=dfa3e523-654a-49b0-b6ae-94702d50a3ee)

### GPO/Intune

この設定を構成するには、 [ADMX テンプレート](https://docs.konnekt.io/ja/configuration/management-options.md#admx-adml-files) または Intune 管理をご利用ください。

ポリシー名: `Connect drive`

{% hint style="info" %}
ポリシーを適用した後、マシンを再起動する必要があります
{% endhint %}

#### KONNEKT 2.6.0 以降:

| ポリシー設定 |                    値                    | 動作                                                                                                                                 |
| :----: | :-------------------------------------: | ---------------------------------------------------------------------------------------------------------------------------------- |
|   未構成  |                   該当なし                  | <p>KONNEKT は、既定で OneDrive for Business ドキュメント ライブラリに H: を割り当てます。<br>ユーザーは［設定］メニューでこの設定を変更できます。<br>OneDrive は既定で H: にマッピングされます。</p> |
|   無効   |                   該当なし                  | <p>KONNEKT は、OneDrive for Business ドキュメント ライブラリにドライブ文字を割り当てません。<br>ユーザーは［設定］メニューでこの設定を変更できません。</p>                                 |
|   有効   | <p>\<drive-letter>:</p><p>（例: "H:"）</p> | <p>KONNEKT は、構成されたドライブ文字を OneDrive for Business ドキュメント ライブラリに割り当てます。<br>ユーザーは［設定］メニューでこの設定を変更できません。</p>                            |

#### KONNEKT 2.6.0 より前

| ポリシー設定 |                    値                    | 動作                                                                                                                                                                                       |
| :----: | :-------------------------------------: | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|   未構成  |                   該当なし                  | <p>KONNEKT は、既定で OneDrive for Business ドキュメント ライブラリに H: を割り当てます。<br>ユーザーは［設定］メニューでこの設定を変更できます。<br>OneDrive は既定で H: にマッピングされます。</p>                                                       |
|   無効   |                   該当なし                  | KONNEKT は既定のドライブ文字を割り当ててマッピングします。OneDrive for Business ドキュメント ライブラリへのドライブ マッピングを無効にするには、ポリシーを有効にして、 **［ドライブ］** の下にある **［オプション］** を **［無効］に設定してください。** ［設定］メニューの構成項目は、ユーザーが変更できない状態になります。 |
|  有効にする |                   「無効」                  | KONNEKT は、OneDrive for Business ドキュメント ライブラリにドライブ文字を割り当てません。［設定］メニューの構成項目は、ユーザーが変更できない状態になります。                                                                                           |
|  有効にする | <p>\<drive-letter>:</p><p>（例: "H:"）</p> | KONNEKT は、構成されたドライブ文字を OneDrive for Business ドキュメント ライブラリに割り当てます。［設定］メニューの構成項目は、ユーザーが変更できない状態になります。                                                                                      |

### レジストリ

**パス:** `HKEY_LOCAL_MACHINE\SOFTWARE\Policies\GlueckKanja\Konnekt`

* **値の名前:** `ConnectDrivePolicy`
* **値の型:** `REG_DWORD`
* **有効な値:** 1 =  `ConnectDrive`で指定した文字を割り当てる、2 = ドライブ文字を割り当てない（KONNEKT 2.6.0 以降が必要）
* **既定値:** 未設定

ドライブ文字自体：

* **値の名前：** `ConnectDrive`
* **値の型：** `REG_SZ`
* **有効な値：** `F:` ～ `Z:`
* **既定値：** `H:`

## 「net use」を使用して他のフォルダーにドライブ文字を割り当てる

次のコマンドを使用して、KONNEKT フォルダーにドライブ文字を割り当てることができます。 *`net use`* コマンド。

**使い方**

```
net use <DRIVE-LETTER>: <KONNEKT-UNC-PATH> [/PERSISTENT:{YES | NO}]
```

コマンドの詳細については、 *`net use`* コマンドについては、こちらを参照するか、 [こちら](https://ss64.com/nt/net-use.html)、またはコマンドプロンプトで `net use /?` を実行してください。

{% hint style="info" %}
一般ユーザーの接続エラーを防ぐため、管理者権限なしで CMD を実行してください。
{% endhint %}

{% hint style="info" %}
**注：** フォルダー名にスペースが含まれている場合は、次の例のように UNC パスを「" "」で囲む必要があります。
{% endhint %}

**例：**

![](https://1902283602-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8zLVuKYctMIUr68_fs%2F-McJ3q5QGa4PUa3S4hsc%2F-McJ8qmWBFa_BVHDlvEW%2FAssignDriveLetter.png?alt=media\&token=bd1973b3-073d-4d5a-9e90-431a2c89e0bd)

**結果：**

![](https://1902283602-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8zLVuKYctMIUr68_fs%2Fuploads%2FfUKfgJqqW6V9tSLcKLJJ%2F2022-08-02%2016_22_46-Window.png?alt=media\&token=22f2c82f-e933-4f99-acb9-df7493281fc0)

## Managed Mappings でドライブ文字を割り当てる

次の機能を使って、サイトやライブラリにドライブ文字を割り当てることができます。 [Managed Mappings](https://docs.konnekt.io/ja/configuration/mappings/managed-mappings.md).

## **ポリシーを適用する方法はいくつかあります。**

* マシンまたはユーザーのレジストリ設定にキーを手動で追加する
* GPO 経由で設定する場合は、 [GPO による設定](https://docs.konnekt.io/ja/configuration/management-options/settings-via-gpo.md)
* Intune 経由でポリシーをプッシュする場合は、 [Intune 管理デバイスの設定](https://docs.konnekt.io/ja/configuration/management-options/setting-for-intune-managed-devices-1/intune-mappings.md#connect-drive)

**ポリシー** 保存先：

`HKEY_CURRENT_USER\SOFTWARE\Policies\GlueckKanja\Konnekt`

`HKEY_LOCAL_MACHINE\SOFTWARE\Policies\GlueckKanja\Konnekt`


---

# 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.konnekt.io/ja/configuration/mappings/assign-drive-letters.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.
