# Assign drive letters

## Assign driver letter to OneDrive for Business library

With this setting, you can configure a drive letter for the OneDrive for Business library.

The default value is `H:`

You can configure this feature with the following options alternatively:

### Preferences menu

![](https://2727108687-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

Please use our [ADMX template](https://docs.konnekt.io/management-options#admx-adml-files) to configure this setting or via Intune management.

Policy name: `Connect drive`

{% hint style="info" %}
After applying the policy, restarting the machine is required
{% endhint %}

#### KONNEKT 2.6.0 and newer:

| Policy-setting |                   Value                   | Behavior                                                                                                                                                                                 |
| :------------: | :---------------------------------------: | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Not configured |                    N/A                    | <p>KONNEKT will assign H: to the OneDrive for Business document library by default. <br>User can change the setting in the preferences menu.<br>OneDrive is mapped to H: by default.</p> |
|    Disabled    |                    N/A                    | <p>KONNEKT will not assign any drive letter to the OneDrive for Business document library. <br>User can not change the setting in the preferences menu.</p>                              |
|     Enabled    | <p>\<drive-letter>:</p><p>(e.g. "H:")</p> | <p>KONNEKT will assign the configured drive letter to the OneDrive for Business document library. <br>User can not change the setting in the preferences menu.</p>                       |

#### KONNEKT older than 2.6.0

| Policy-setting |                   Value                   | Behavior                                                                                                                                                                                                                                                                                  |
| :------------: | :---------------------------------------: | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Not configured |                    N/A                    | <p>KONNEKT will assign H: to the OneDrive for Business document library by default. <br>User can change the setting in the preferences menu.<br>OneDrive is mapped to H: by default.</p>                                                                                                  |
|    Disabled    |                    N/A                    | KONNEKT will assign and map the default drive letter! To disable drive mappings to the OneDrive for Business document library, you should enable the policy and set the **Drive** under **Options** to **Disabled.** Config item in preferences menu will be disabled for change by user. |
|     Enable     |                 "Disabled"                | KONNEKT will not assign a drive letter to the OneDrive for Business document library. Config item in preferences menu will be disabled for change by user.                                                                                                                                |
|     Enable     | <p>\<drive-letter>:</p><p>(e.g. "H:")</p> | KONNEKT will assign the configured drive letter to the OneDrive for Business document library. Config item in preferences menu will be disabled for change by user.                                                                                                                       |

### Registry

**Key name:** `ConnectDrive`\
**Key type:** REG\_SZ (String Value)

## Assign drive letters to other folders using "net use"

You can assign a drive letter to a KONNEKT folder, by using the *`net use`* command.

**Usage**

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

For more information on the *`net use`* command see [here](https://ss64.com/nt/net-use.html), or run `net use /?` in your command prompt.

{% hint style="info" %}
Make sure to run CMD without admin rights to avoid any connecting errors for normal users.
{% endhint %}

{% hint style="info" %}
**Note:** if the name of Folder contains spaces you have to but the UNC-Path in " " like in the next example.
{% endhint %}

&#x20;**Example:**

![](https://2727108687-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)

**Result:**

![](https://2727108687-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)

## Assign drive letters with Managed Mappings

You can map drive letters to sites and libraries with [Managed Mappings](https://docs.konnekt.io/configuration/mappings/managed-mappings).

## **There are several ways to apply the policy:**

* manually by adding the key in the registry under machine or user registry settings
* via GPO, see [settings via GPO](https://docs.konnekt.io/configuration/management-options/settings-via-gpo)
* pushing policies via Intune, see [settings for Intune Managed Devices](https://docs.konnekt.io/management-options/setting-for-intune-managed-devices-1/intune-mappings#connect-drive)

**Policies** stored in:

`HKEY_CURRENT_USER\SOFTWARE\Policies\GlueckKanja\Konnekt`

`HKEY_LOCAL_MACHINE\SOFTWARE\Policies\GlueckKanja\Konnekt`
