# Configure and access shared folders on Windows

In this article, you will learn how to set up a shared folder on Windows and access another device's shared folder from a Windows device.

## Configure a shared folder

You can choose from two methods of setting up shared folders: through the graphical interface or the PowerShell command line.

{% tabs %}
{% tab title="GUI" %}
To configure a shared folder using File Explorer's graphical interface, perform the following steps on your Windows device:

1. Right-click the folder that you want to share and select **Properties**.
2. Navigate to the **Sharing** tab and click **Share**.

   <div align="left"><figure><img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FfwdR2xu010obWan716RZ%2Fwin_properties_share.png?alt=media&#x26;token=4a80986b-5fb3-4d64-a98a-6060bb551c9c" alt="&#x22;Share&#x22; button highlighted." width="420"><figcaption></figcaption></figure></div>

   &#x20;
3. In the lower-right corner, select **Share** and click **Done**.
4. On the **Sharing** tab, click the **Advanced sharing** button.

   <div align="left"><figure><img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FpSBz1HPQuWVlyg9J4nGn%2Fwin_properties_advanced_sharing_button.png?alt=media&#x26;token=0f7eacea-3e3e-4853-9587-366c4a5912f7" alt="&#x22;Advanced sharing&#x22; button highlighted." width="420"><figcaption></figcaption></figure></div>

   &#x20;
5. In the new window, select the **Share this folder** checkbox. In the **Share name** field, you can change the folder name for network identification, keeping in mind to use a unique name that doesn't include spaces.

   <div align="left"><figure><img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FoDO3XdxyArRQFitfnP3g%2Fwin_properties_advanced_sharing.png?alt=media&#x26;token=468e72e0-bc86-4671-9743-698727bee279" alt="&#x22;Share this folder&#x22; checkbox selected and the &#x22;Share name&#x22; field highlighted." width="410"><figcaption></figcaption></figure></div>

   &#x20;
6. Click **Apply** to save the changes, and **OK**.

The folder is now ready for access over Meshnet. Your Meshnet peers will need the network path provided in the **Sharing** tab to access the folder remotely, as described further in the article.

<div align="left"><figure><img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FOnYZouobMRYQqaYtkHF0%2Fwin_network_path.png?alt=media&#x26;token=52068e9a-d019-43bf-8da0-24fb62adb254" alt="Network path of the shared folder highlighted." width="420"><figcaption></figcaption></figure></div>
{% endtab %}

{% tab title="PowerShell" %}
You can use the PowerShell command line capabilities to share a folder by taking these steps:

1. Open **PowerShell** as an administrator.

   <div align="left"><figure><picture><source srcset="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2F2Cjip86wbJxLFVPa7p7Y%2Fwin_ps_admin_dark.png?alt=media&#x26;token=22b4b13c-4d79-4f5f-9b73-c7658fcee1ea" media="(prefers-color-scheme: dark)"><img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2F8OPk8Is6CO5UbPFynoNR%2Fwin_ps_admin.png?alt=media&#x26;token=59d6337a-d297-4bdb-90c7-9f9a8046599a" alt="" width="563"></picture><figcaption></figcaption></figure></div>

   &#x20;
2. Run the following command to create a shared folder:

   &#x20;

   <pre class="language-powershell" data-overflow="wrap"><code class="lang-powershell">New-SmbShare -Name "&#x3C;ShareName>" -Path "&#x3C;Path\to\folder>" -FullAccess "&#x3C;Username>"
   </code></pre>

   &#x20;\
   Make sure to replace:

   * `<ShareName>` with your desired share name&#x20;
   * `<Path\to\folder>` with the path to the folder you want to share
   * `<Username>` with the name of your Windows user account\
     &#x20;\
     **Example**

     <pre class="language-powershell" data-overflow="wrap"><code class="lang-powershell">New-SmbShare -Name "MeshnetFolder" -Path "C:\Users\meshnet\Desktop\MeshnetFolder" -FullAccess "meshnet"
     </code></pre>

     &#x20;\
     The output should display the details of your new shared folder.

     <div align="left"><figure><img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2Fjp7pY1L4ErzQcIU1aEop%2Fwin_ps_output.png?alt=media&#x26;token=30f92ae5-05d8-492d-9c06-0e56b98d57f4" alt=""><figcaption></figcaption></figure></div>

You have successfully configured your folder for remote access over Meshnet.
{% endtab %}
{% endtabs %}

### Finding PC access credentials

When connecting to the shared folder, you must enter authentication details. The username and password depend on the Windows account the PC uses.

* If you're using a Microsoft account, you can use either:
  * Your Microsoft account's email address and password.\
    &#x20;\
    **Example**

    <div align="left"><figure><picture><source srcset="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FApuNzKF08nq6H5nTqDNe%2Fwin_creds_email_dark.png?alt=media&#x26;token=815fc2a9-3e17-48e4-973c-dff83074b45b" media="(prefers-color-scheme: dark)"><img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FZ1PmOoGFSUGb9kZiAuLQ%2Fwin_creds_email.png?alt=media&#x26;token=837c6fab-b81b-4b97-9ac3-6c71b306aa6d" alt="Email address and password entered in the authentication dialog fields." width="375"></picture><figcaption></figcaption></figure></div>

    &#x20;
  * Your Windows account's username and Microsoft account's password.\
    &#x20;\
    **Example**

    <div align="left"><figure><picture><source srcset="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2F3RZo4Cw77Voc31zQLXGe%2Fwin_creds_username_dark.png?alt=media&#x26;token=e626bf40-5207-44dc-ae5a-44c04ddd0cf6" media="(prefers-color-scheme: dark)"><img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FE4Yf1e3RNd27VNyexF16%2Fwin_creds_username.png?alt=media&#x26;token=373a4470-3325-4a4a-a163-f35a9b2706ba" alt="Username and password entered in the authentication dialog." width="375"></picture><figcaption></figcaption></figure></div>

    &#x20;
* If you're using a local Windows account, you need to use the account's username and password.

{% hint style="success" %}
**Tip**

To view your Windows account's username, run the following command in **PowerShell**:

{% code overflow="wrap" %}

```powershell
$env:username
```

{% endcode %}
{% endhint %}

## Access shared folders

{% hint style="info" %}
**Note**

You can find platform-specific instructions for accessing the shared folder in the appropriate guides:

* [Access shared folders from macOS](https://meshnet.nordvpn.com/how-to/remote-files-media-access/configure-and-access-shared-folders-on-macos#access-shared-folders)
* [Access shared folders from Linux](https://meshnet.nordvpn.com/how-to/remote-files-media-access/configure-and-access-shared-folders-on-linux#access-shared-folders)
* [Access shared folders from Android](https://meshnet.nordvpn.com/how-to/remote-files-media-access/set-up-folder-sharing/access-shared-folders-on-android)
* [Access shared folders from iPhone/iPad](https://meshnet.nordvpn.com/how-to/remote-files-media-access/set-up-folder-sharing/access-shared-folders-on-ios)
* [Access shared folders from Android TV](https://meshnet.nordvpn.com/how-to/remote-files-media-access/set-up-folder-sharing/access-shared-folders-from-android-tv)
  {% endhint %}

To connect to a folder shared by another device in your Meshnet from a Windows device:

1. Copy the sharer's Nord name directly from the NordVPN app.
2. Press the **Windows**<img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FGTHMj8B4fgledLDhPDUm%2Ficon_win_start_11_blue.svg?alt=media&#x26;token=045c5a29-141c-44c1-9dfa-08d59d6bf047" alt="" data-size="line"> key + **R** on your keyboard to open the **Run** command dialog.
3. Enter `\\`, paste the Nord name, followed by a backslash (\\) and the name of the network share.\
   &#x20;\
   **Example**

   `\\secret.meerkat-himalayas.nord\MeshnetFolder`\
   &#x20;\
   &#x20;The format must match the network path in the folder’s sharing properties, replacing the device’s name with the Nord name.
4. Click **OK**.
5. In the **Enter network credentials** dialog, click **More choices** and select **Use a different account**.
6. Enter the username and password for accessing the shared folder.&#x20;

   <div align="left"><figure><picture><source srcset="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2Fl214ez4Wsemjyy3cFO93%2Fwin_connect_creds_dark.png?alt=media&#x26;token=a0e5daee-ea22-46cc-8d68-5b63840076b4" media="(prefers-color-scheme: dark)"><img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2F4CuWmejAUqGv9z1axpFH%2Fwin_connect_creds.png?alt=media&#x26;token=daceec30-dd0d-4707-8a93-c65e5ee24d4a" alt="Windows defender dialog with filled in authentication credentials." width="517"></picture><figcaption></figcaption></figure></div>

   &#x20;\
   Optionally, you can select **Remember my credentials** option, so you won't need to enter authentication details for this folder again.&#x20;
7. Click **OK**.

The shared folder should now open in File Explorer.

### Mount a shared folder

Accessing a shared folder using the **Run** command dialog can get tedious because you have to enter the folder's network path each time. To overcome this, you can map the folder directly on your system and conveniently access it anytime.

1. Copy the sharer's Nord name directly from the NordVPN app.
2. Open **File Explorer** and select **This PC** from the menu on the left.
3. Select to map a new network drive.
   * On Windows 11: click the **More** button and choose **Map network drive**.

     <figure><picture><source srcset="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FRiY1scNbJaC0Yjj1HKip%2Fwin_map_drive11_dark.png?alt=media&#x26;token=5f62e9d9-c84d-4fa2-bd2d-7fbc2b5c98d9" media="(prefers-color-scheme: dark)"><img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2F70BlRcFacsa5Dw37Lsih%2Fwin_map_drive11.png?alt=media&#x26;token=cf33be3b-2c22-4a02-a9b8-c606eb2c6fd5" alt="Map network drive selected in the more menu"></picture><figcaption></figcaption></figure>

     &#x20;
   * On Windows 10: in the upper-left corner, click **Computer** and select **Map network drive**.

     <div align="left"><figure><picture><source srcset="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FKngzzdWrruB0sIFYM1ab%2Fwin_map_drive_dark.png?alt=media&#x26;token=47287901-4945-4009-9336-248c9b808a93" media="(prefers-color-scheme: dark)"><img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FsW0uqpGTJPD1DWVmo0jf%2Fwin_map_drive.png?alt=media&#x26;token=7cd89d78-3c89-496b-8397-3ed6bbee5c86" alt="Clicking &#x22;Computer&#x22; and then &#x22;Map network drive&#x22;."></picture><figcaption></figcaption></figure></div>

     &#x20;
4. From the **Drive** dropdown list, select a drive letter.
5. In the **Folder** field, enter `\\` and paste the Nord name followed by a backslash (\\) and the name of the network share.\
   &#x20;\
   **Example**

   `\\secret.meerkat-himalayas.nord\MeshnetVideos`\
   &#x20;

   <div align="left"><figure><img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FkgAp3BLQbmfLOMHnxqlY%2Fwin_map_drive_path.png?alt=media&#x26;token=7ea27ac5-85b4-40d0-8a14-05474b65cd60" alt="The &#x22;Folder&#x22; field highlighted with the path to the shared folder entered."><figcaption></figcaption></figure></div>

   &#x20;
6. Select **Connect using different credentials** and click **Finish**.
7. Enter the required username and password for accessing the shared folder and click **OK**.

The mounted network drive will now be visible and easily accessible from **This PC**, under **Network locations**.

<div align="left"><figure><picture><source srcset="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2Fr0ulPLU7YQtvXxjt38Z7%2Fwin_share_mapped_dark.png?alt=media&#x26;token=c0380534-ce52-43b5-b183-cf91d94e3616" media="(prefers-color-scheme: dark)"><img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FqfECkv2t8gusbHvtqQd3%2Fwin_share_mapped.png?alt=media&#x26;token=78632aca-2627-4f39-b041-cee2e9eb929e" alt="Mapped network folder visible."></picture><figcaption></figcaption></figure></div>

## See also

* [Configure and access shared folders on macOS](https://meshnet.nordvpn.com/how-to/remote-files-media-access/set-up-folder-sharing/configure-and-access-shared-folders-on-macos)
* [Configure and access shared folders on Linux](https://meshnet.nordvpn.com/how-to/remote-files-media-access/set-up-folder-sharing/configure-and-access-shared-folders-on-linux)
