Windows позволяет подключить любую общую сетевую папку с файлового сервера или NAS хранилища в виде отдельного диска с назначенной ему буквой диска. Такие подключенные сетевые папки называются сетевыми дисками. Сетевые диски удобно использовать для удобства доступа пользователей к часто используемым общим ресурсам на файловом сервере.
Сетевой диск в Windows можно подключить несколькими способами:
- Из проводника Windows
- Из командной строки или PowerShell
- С помощью групповых политик
Чтобы подключить сетевой диск в Windows 11, откройте проводник, нажмите кнопку с тремя точками в верхнем меню и выберите пункт Map network drive.
- Выберите букву диска, которую нужно назначить сетевой папке,
- Укажите путь к папке на файловом сервере (в UNC формате, например
\\fs01\Docs\IT
). Если у вас настроено отображение компьютеров в сетевом окружении, можно воспользоваться кнопкой Browse для ручного выбора компьютера и общей сетевой папки на нем. - Если нужно автоматически подключать этот диск пользователю при входе в Windows, включите опцию Reconnect at sign-in (Восстанавливать подключение при входе в систему).
- Если вы не хотите использовать учетные данные текущего пользователя, с помощью опции Connect using different credentials можно указать имя пользователя и пароль, который будут использоваться для подключения (будут сохранены в диспетчер учетных данных Windows).
После этого в проводнике Windows появится новый сетевой диск. Пользователь теперь сможет быстро и удобно открывать общей файлы на сетевом диске.
Чтобы отключить сетевой диск, щелкните по нему и выберите Disconnect.
Для подключения/отключения сетевых дисков из командной строки можно использовать команду
net use
. Например:
net use P: \\fs01\Docs /PERSISTENT:YES
где:
-
P:
— буква диска, которую нужно назначить сетевой папке -
\\fs01\Docs
— полный UNC путь к папке -
/PERSISTENT:YES
— сделать сетевой диск постоянным. Без использования этой опции сетевой диск автоматически удаляется при перезагрузке компьютера. - Если нужно указать учетную запись пользователя для подключения к папке, добавьте:
/USER:WINITPRO\kbuldogov *
(пароль будет запрошен интерактивно). Либо вы можете указать пароль в открытом виде:
/USER:WINITPRO\kbuldogov Password1
Вывести все подключенные сетевые диски в сессии пользователя:
net use
Удалить сетевой диск:
net use P: /delete
Также для подключения сетевого диска можно использовать PowerShell.
Вывести список сетевых папок на удаленном компьютере:
Get-SmbShare -CimSession "FS01"
Создать постоянное подключение к сетевой папке в виде сетевого диска:
New-SmbMapping -LocalPath P: -RemotePath \\fs01\docs –Persistent $true
Удалить сетевую папку:
Remove-SmbMapping P: -UpdateProfile
What to Know
- Right-click This PC from File Explorer. Select Map network drive.
- Check Reconnect at sign-in to automatically remap the drive at each login.
- To map a network drive for all users, you need to create a special folder and script.
This article explains how to map a network drive in Windows 11, so you can easily access shared files from another computer on your network. We’ll also look at what the other computer must do to enable the share and what to watch for if you’re having issues mapping a network drive.
How to Map a Network Drive in Windows 11
It takes just a few steps to map a network drive via the This PC window.
-
Open File Explorer (WIN+E).
-
Right-click This PC from the left column, and select Map network drive.
If you don’t see anything in a left column, go to View > Show > Navigation pane.
-
Pick a letter from the menu you want the network drive to be identified as. This can be any letter in the list.
-
Browse for, or type the path to, the shared folder the network drive should be mapped to.
If the share requires a specific password, you should choose Connect using different credentials. You’ll be prompted to provide a username (and password) that has permission to access the other computer.
-
Select Finish.
You might have to wait a few seconds for Windows to establish the connection, after which you can access the share like you would a flash drive or local hard drive and rename how it appears in This PC.
If, after completing step 5, you get an error or a password prompt, see the tips at the end for more directions.
How to Automatically Map a Network Drive in Windows 11
The primary way to set up an automatic network drive is to follow the steps above and choose Reconnect at sign-in during setup. This will make the same network drive resume the next time you sign on.
If you’re managing several computers at once, or even one computer with several users, and you need to map the network drive on all of them, automatically, there’s a script you can build to get the job done. The same method works for creating the network drive for other users on a local computer; see the steps below for instructions.
How to Map a Network Drive in Windows 11 for All Users
Mapping a network drive for all users at once is much easier than following the above steps individually under each account. Follow these steps whether you’re a network admin that needs to perform this trick across your entire network of computers, or you want the local accounts on your PC to be able to reach the same shared files with ease.
-
Use the net use command to create a script that will auto-connect the mapped network drive.
Here’s an example, where the driver letter will be assigned automatically, and the connection to the share (\server\files, in this example) will persist (/p:yes) each time the user logs in:
net use * "\\server\files" /p:yes
The script needs to be saved as a BAT file so Windows will execute it when the user logs in.
Visit the net use command link above for examples of embedding credentials in the command. It’s necessary if the computer sharing the files requires a password.
-
Open the All Users Startup folder. One easy way to find it is to run this command in the Run dialog box (WIN+R):
shell:common startup
-
Copy the BAT file from step 1 into the folder you uncovered in step 2.
Now, when any user logs in on that computer, the network drive you set up in the script will automatically connect.
Troubleshooting Mapped Network Drives
A few things must be in place before network sharing is allowed in Windows 11.
If you’re sure your computer is on the same network as the one sharing the files (that’s a necessity), keep these things in mind if you’re having trouble mapping a network drive or using it once you’ve mapped it:
Network Discovery
Network discovery lets you see network computers and their shares. Make sure it’s turned on in Control Panel.
-
Open Control Panel, and navigate to Network and Internet > Network and Sharing Center > Change advanced sharing settings.
-
Expand the section that says current profile, and select Turn on network discovery.
The computer doing the sharing (i.e., the one you’re attempting to connect to) needs to have selected Turn on file and printer sharing from this same screen before they can share with you over the network.
-
Select Save changes, and then try again to map the network drive.
Password-Protected Sharing
You must either have the login credentials for the user sharing the files with you, or their computer needs to be set up to allow sharing even if a password isn’t provided.
In the All Networks section, they can set up the latter by selecting Turn off password protected sharing via the same screen as above.
Share Permissions
You can configure the share to allow a certain number of users simultaneously. It can even be limited to viewing the files only, meaning you can’t edit or add anything to the network drive. To be given these permissions, the person managing the network share must make changes from their side.
If they access the Sharing tab of the folder’s properties, the Advanced Sharing button is an option to limit how many users can be utilizing the share at once. On that same screen, in the Permissions area, the manager of the files can give you complete control or edit access.
Full Share Path
Make sure you’re accessing the true path to the share. Typing the path manually when setting up the network drive can result in a mistake. You can obtain the share path from the computer sharing the resources.
Open File Explorer and navigate to Network from the navigation pane on that computer. Open the computer name you see there, and then find the folder you want to access. That’s the path you need to enter into your computer to complete the mapped drive.
The same path is accessible from the folder itself. Right-click it, go into the Sharing tab and copy the text from the Network Path area.
FAQ
-
Right-click This PC from File Explorer, and choose Disconnect network drive. Choose the drive you want to disconnect, then choose OK.
-
If you’re having trouble connecting to a network drive, disconnect the drive and then re-map it. When mapping the drive, make sure Reconnect at sign-in is selected.
-
Aside from mapping a network drive, there are other network file sharing options in Windows 11. These include sharing files in the cloud with OneDrive, Windows public folder sharing, and third-party sharing solutions.
Thanks for letting us know!
Get the Latest Tech News Delivered Every Day
Subscribe

What to know
- Before you map a drive, ensure network discovery is enabled from Control Panel > Network and Sharing Center > Change advanced sharing settings. Alternatively, do so from Settings app > Network & internet > Advanced network settings > Advanced sharing settings.
- Map a drive from File Explorer > More options > Map network drive.
- You can also use the IP address to map a drive via the Command Prompt, PowerShell, or use the Notepad to map a drive for all users at once.
If you frequently need to connect to a remote folder or a drive shared on your network, mapping the drive or the folder location on your Windows 11 PC will save you a big chunk of time. Plus, the entire experience of using a mapped network drive feels identical to using any other drive plugged into your PC.
Here’s how you can map a network drive on Windows 11.
First, configure Windows for Network drives
Before we begin with the steps, you need to make sure that Windows 11 is configured to find other PCs and devices on your network.
- Click the Start button and type in ‘Control Panel’. Click on the search result or the open button.
- Click on ‘Network and Internet’.
- Click on ‘Network and Sharing Center’.
- Click on ‘Change advanced sharing settings’.
- Click on ‘Turn on network discovery’ and then click the ‘Save changes’ button. Accept any prompt that may appear.
- After this change, your PC should be able to find your network folder or drive and be discoverable by other PCs and devices on your network.
It’s time to map the drive to your Windows 11 PC.
5 Ways to map a drive on Windows 11
Once you have configured your Windows 11 PC for mapping as given above, you can now go ahead and map a drive on your PC. Here are various methods to map a drive on Windows 11 OS.
Method 1: Using File Explorer
- Open ‘This PC’ by pressing the
Win + e
. From the Quick Access window, click on the shortcut for ‘This PC’. - Click on the three-dot menu and from this list of options, select ‘Map a network drive’.
- You should see a popup titled ‘Map Network Drive’. On this popup, select your preferred drive letter for the remote location, enter the URL of your network folder, and click ‘Finish’. You can also click on the ‘Browse’ button and select the shared folder.
- Tick the ‘Remember my credentials’ to save your credentials, instead of entering them every time you connect.
- After verifying the credentials, Windows should open the remote folder right away. You should be able to find the newly added network location in your ‘This PC’ window.
That’s it! You have successfully mapped a network location to your Windows PC.
Method 2: Using the context menu of the shared drive
Another, rather simpler way to connect to the shared drive is to navigate to the shared network drive or folder in File Explorer, and then use the context menu to map it as a drive on your PC.
There are a couple of ways that you can access the shared drive via File Explorer.
- First up, press
Win+E
to open File Explorer. Now click on Network in the left pane. - Select the system that’s sharing the drive by double-clicking on it.
- Then right-click on the folder or the drive to map and select Map network drive…
- The familiar ‘Map Network Drive’ window will open up. Select the drive letter for the mapped drive, and then click on Finish to map the drive.
- Your drive/folder will now be mapped and available on the ‘This PC’ page.
- If you know the IP address of the system that’s sharing the drive, then you can simply click on the address bar and type the IP address in the following format:
\\IP_address
Make sure to change IP_Address with the IP address of the sharing network.
- Then right-click on the drive/folder that you want to map and select Map network drive as shown above.
- If you want to check the folders that are shared by you, you can either enter your own IP address or type 127.0.0.1 instead (which directs to the local host).
Method 3: Using CMD
You can also map a drive in Windows 11 via the CMD. Use the guide below to get you started.
- Press
Windows + S
on your keyboard and search for CMD. Click on ‘Run as administrator’ once it shows up in your search results. - Enter the following command and press Enter on your keyboard. Replace ‘DLetter’ with the drive letter of your choice and replace ‘PATH’ with the path to the particular folder you wish to map:
net use DLetter: \\PATH /PERSISTENT: YES
The selected drive will now be mapped within Windows 11 and it should now show up in the File Explorer.
Method 4: Using PowerShell
Use the guide below to easily map a drive within PowerShell instead.
- Press
Windows + S
on your keyboard and search for PowerShell. Click on ‘Run as administrator’ once it shows up in your search results. - Now type in the following command and press Enter on your keyboard to execute it. Replace DLetter with the assigned letter of the concerned drive and replace PATH with the path to the folder you wish to map:
New-PSDrive -Name "DLetter" -PSProvider "FileSystem" -Root "\\PATH" -Persist
- The selected drive and location should now be mapped within Windows 11. Open the File Explorer and the drive should now appear within This PC.
Method 5: Map a drive for all users at once
If there are multiple users on your computer that also require access to the shared drive, it’s much more convenient to map a drive for all users at once. To do so, we’ll first have to create a batch (.bat) file. Here’s how to do so:
- Press Start, type notepad, and then open it.
- Then type the following command:
net use * "\\server\files" /p:yes
Make sure to replace ‘server’ with the network name or the IP address of the user who’s doing the sharing, and ‘files’ with the folder, drive, or file that you want to map. - Then click on File in the top left corner.
- Select Save as.
- Choose a location to save and give the file a name. Then change the file extension from .txt to .bat.
- Then select All files from the “Save as type” drop-down menu.
- Then click on Save.
- Once saved, go to the location and copy this .bat file.
- Now, press
Win+R
to open the RUN box. Now type the following:shell:common startup
And click OK.
- This will open the startup apps folder. Paste the .bat file here by pressing
Ctrl+V
, or right-clicking and selecting the Paste button.
- When prompted, click on Continue.
From now on, whichever user logs on to your system will automatically connect to the network drive as mentioned in the script.
How to find the path of a mapped network drive
You can easily get the full UNC path to your mapped network drive using one of the guides below. Follow the one that best suits your current needs to get you started.
Method 1: Using CMD
- Press
Windows + S
on your keyboard and search for CMD. Click on run as administrator once it shows up in your search results. - Enter the following command and press Enter on your keyboard:
net use
- You will now get a list of all the network devices connected to your PC for the current user account. Your mapped network drive will also show up in this list, with its full UNC path mentioned on your screen.
Method 2: Using PowerShell
- Press
Windows + S
on your keyboard and search for PowerShell. Click on ‘Run as administrator’. - Now enter the following command and press Enter on your keyboard to execute it.:
Get-WmiObject Win32_NetworkConnection | ft "RemoteName","LocalName" -A
All the network drives currently accessible through your PC and user account should now be available on your screen with their UNC paths as well.
How to disconnect a Mapped Network Drive
Once your business with the shared network drive is finished, you should disconnect and unmap the network drive. Doing so is a cinch. Here’s how to go about it:
Method 1: Using File Explorer
- Open File Explorer by pressing
Win+E
. Right-click on the mapped drive and select Disconnect. - Alternatively, click on the three-dot icon in the toolbar above.
- Then select Disconnect network drive.
- Then select the mapped drive and click OK.
The network drive will now be unmapped.
Method 2: Using CMD
- Open an elevated instance of the command prompt.
- Then type the following command:
net use z: /Delete
Replace ‘z’ with the network drive’s letter. - Then press Enter
- If you have multiple drives mapped, type the following to disconnect them all:
net use * /Delete
Then hit Enter.
Quick tip: If you get an error message saying that “There are no entries in the list”, try running the command prompt without administrator privileges. - When prompted, type Y.
- Then hit Enter.
Your mapped network drive will now be deleted. You can use these commands in the PowerShell terminal as well. Also, if you aren’t receiving any entries with the elevated PowerShell, try running PowerShell without administrator privileges.
I am unable to map a network drive in Windows 11
There is a common registry fix that seems to get network drives working on almost every system no matter the issue that you are facing.
Map a drive first using any of the methods given above. When that is not working, use the registry editor fix given below.
In the guide below, we talk about creating a new registry value on your PC that should help you easily map network drives without any issues.
- Press
Windows + S
on your keyboard and search for Regedit. Click and launch the app once it shows up in your results. - Navigate to the following path given below. You can also copy-paste the same in your address bar at the top:
Computer\HKEY_CURRENT_USER\Network
- Your drive should be listed under ‘network’ denoted by its drive letter. Click and select the drive letter folder and hit delete on your keyboard.
- Click on ‘Ok’ to confirm your choice.
- Navigate to the following path given below:
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Map Network Drive MRU
- The registry values you find for mapped network drives in this location will be different depending on your system, configuration, and mapped drive. Find any string value associated with the previously mapped drive on your system and hit delete on your keyboard. Click on ‘Ok’ to confirm your choice and delete these values.
- All previous registry values that could conflict with your current setup should now be removed. Simply restart your system and use one of the guides above to map a network drive to your system again.
- Once done, launch registry editor again and navigate to the path given below. Replace DLetter with the drive letter of the drive you recently mapped to your PC:
HKEY_CURRENT_USER\Network\DLetter
- Click and select the drive letter on your left and now right-click on the empty area on your right and select ‘New’.
- Now select ‘DWORD (32-bit) value’.
- Enter ‘ProviderFlags’ as the ‘Value Name’ and set the ‘Value data’ to ‘1’.
- Click on ‘Ok’ now.
- Restart your system for good measure.
And that’s it! The selected drive should now be mapped to your system without any issues.
Have a question? Let us know in the comments below.
Read Next
Subscribe to Newsletter
Join me on this exciting journey as we explore the boundless world of web design together.
Все способы:
- Способ 1: Папка «Этот компьютер»
- Способ 2: Корень сетевого расположения
- Способ 3: Подключение Яндекс.Диска в качестве сетевого
- Вопросы и ответы: 1
Сетевым диском называется одна или несколько директорий, находящихся в общем доступе и имеющих определенную метку тома в виде буквы. Благодаря этому становится возможным обмен файлами между всеми участниками локальной сети без каких-либо трудностей. Подключение сетевого диска в операционной системе Windows 10 доступно всем пользователям, обладающим соответствующими правами, и сегодня мы хотим рассказать о трех методах осуществления этой операции.
Перед началом рассмотрения инструкций мы советуем убедиться в том, что локальная сеть и общий доступ в Windows 10 были настроены правильно. Более детальные инструкции по данной теме вы найдете в отдельных материалах на нашем сайте, кликнув по ссылкам ниже.
Подробнее:
Настройка локальной сети в Windows 10
Создание домашней сети на Windows 10
Способ 1: Папка «Этот компьютер»
Самый простой метод создания сетевого диска — использование меню «Этот компьютер». Там пользователю нужно только нажать на несколько кнопок, чтобы справиться с поставленной задачей. Давайте более детально рассмотрим этот вариант, разобрав каждый шаг.
- Откройте Проводник и перейдите в раздел «Мой компьютер». Здесь нажмите по кнопке «Компьютер», чтобы раскрыть список дополнительных опций.
- Отыщите пункт «Подключить сетевой диск» и нажмите по нему левой кнопкой мыши.
- Остается только заполнить соответствующую форму, чтобы подключить накопитель. Для этого указывается буква диска, вводится полный путь к папке и указываются дополнительные параметры.
- Если вы нажмете по кнопке «Обзор», сможете выбрать одно из стандартных общих сетевых расположений в качестве диска.
- После этого убедитесь в правильности настроек и нажмите на «Готово».
- Произойдет автоматическое перемещение в корень созданного диска. Здесь вы можете осуществлять управление им, удалять или перемещать файлы.
- До момента отключения сетевой диск будет располагаться в разделе «Этот компьютер» в списке «Сетевые расположения».
- Здесь же его можно будет оптимизировать и совершать другое управление в соответствии с имеющимися правами.
Точно таким же образом можно добавлять неограниченное количество дисков, обладая соответствующими правами доступа. Если же этот вариант вам не подходит, переходите к ознакомлению со следующим, а при возникновении проблем обратитесь к завершающему разделу сегодняшнего материала.
Способ 2: Корень сетевого расположения
Иногда пользователю требуется подключить в качестве сетевого диска уже имеющуюся общую папку. В таком случае тоже можно воспользоваться первым методом, однако немного быстрее будет осуществить это при помощи соответствующего контекстного меню.
- Откройте утилиту Выполнить, зажав горячую клавишу Win + R. В строке введите
\\Name
, где Name — название стандартного сетевого расположения, например, имя текущего компьютера или устройства локальной сети. - Щелкните по любой из находящихся в открывшемся каталоге папке ПКМ и в контекстном меню выберите «Подключить сетевой диск».
- Задайте название диску и нажмите на «Готово». Как видите, папка будет определена автоматически.
Этот метод можно применять к любому каталогу, находящемся в общем доступе. Для реализации данной задачи потребуется выполнить всего три простых действия, поэтому с этим не должно возникнуть проблем даже у начинающих юзеров.
Способ 3: Подключение Яндекс.Диска в качестве сетевого
Если вы являетесь пользователем Яндекс.Диска, скорее всего, обратились к этой статье, чтобы разобраться, как именно подключать это облачное хранилище в качестве сетевого диска. Принцип осуществления этого действия практически соответствует тем, о которых мы уже говорили в предыдущих способах. Другой наш автор в отдельной статье более детально рассказал, как именно производится подключение. Рекомендуем ознакомиться с ней, кликнув по ссылке далее.
Подробнее: Как подключить Яндекс.Диск как сетевой диск
Это были все методы, позволяющие подключить сетевой диск в Windows 10. Осталось только разобраться с возможными проблемами, которые возникают во время этого процесса. Начнем с самой распространенной, связанной с неправильно установленными параметрами реестра. Исправляется эта неполадка следующим образом:
- Откройте утилиту «Выполнить» (Win + R), а затем введите в строке
regedit
и нажмите на Enter. - В открывшемся меню следует перейти по пути
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa
. - Здесь щелкните по пустому месту ПКМ и создайте параметр DWORD, выбрав соответствующий пункт.
- Задайте ему название «LMCompatibilityLevel» и нажмите на Enter, чтобы применить изменения.
- После этого дважды кликните по строке, чтобы открыть ее свойства. Измените значение на 1 и примените настройку.
- Теперь вам следует перейти по пути
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0
. - Отыщите там параметр «NtlmMinClientSec» и «NtlmMinServerSec».
- Значение каждого из них потребуется изменить на 0.
Внесенные только что изменения связаны с задержкой стороны клиента и общими параметрами сетевого окружения. После их применения при перезагрузке компьютера подключение сетевого диска должно пройти успешно. Если этого добиться не удалось, обратите внимание на приведенное далее руководство. Там описаны другие причины возникновения подобной проблемы.
Подробнее: Устранение проблем с обнаружением сетевого окружения в Windows 10
Это было все, что мы хотели рассказать о подключении сетевого диска в Виндовс 10. Как видите, ничего в этом сложного нет, а возможность выбора оптимального варианта позволит любому пользователю быстро и легко справиться с этой задачей.
Наша группа в TelegramПолезные советы и помощь
Sign in to your How-To Geek account
Mapping a network drive to a shared folder from Windows’ graphic interface isn’t hard. But if you already know the network path for the shared folder, you can map drives a lot quicker using the Command Prompt.
Mapping a drive to a network share assigns that share a drive letter so that it’s easier to work with. We’ll be using the
net use
command in Command Prompt to map a network drive for this tutorial. You can also use the same command in PowerShell if you prefer.
To map a network drive, type the following command and then hit Enter:
net use DRIVE: PATH
DRIVE is the drive letter you want to use and PATH is the full UNC path to the share. So, for example, if we wanted to map drive letter S to the share \\tower\movies, we’d use the following command:
net use s: \\tower\movies
If the share to which you’re connecting is protected with some sort of authentication, and you’d rather not type in the credentials every time you open the network drive, you can add the user name and password to the command with the /user:
switch. For example, if we wanted to connect the same share from above, but with the username HTG and the password CrazyFourHorseMen, we’d use the command:
net use s: \\tower\movies /user:HTG CrazyFourHorseMen
By default, mapped drives are not persistent. If we map drives using the commands we’ve talked about so far, the mapped drives would disappear when you restarted your computer. If you’d rather those mapped drives stick around, you can make them persistent by using the /persistent
switch. The switch works as a toggle:
-
/persistent:Yes: Makes the connection you’re currently creating persistent. Future connections you make using the command during the same session are also persistent (you don’t need to keep using the switch) until you use the
/persistent:No
switch to turn it off. - /persistent:No: Turns off the persistency toggle. Future connections you make are not persistent until you turn the toggle back on.
So, essentially, you could type something like the following command:
net use s: \\tower\movies /user:HTG CrazyFourHorseMen /persistent:Yes
And the drive map would be persistent. All future mapping you create (even if you don’t use the /persistent:Yes
switch) will also be persistent until you turn it off using the /persistent:No
switch.
If you ever need to delete a mapped network drive, all you have to do is specify the drive letter and add the /delete switch. For example, the following command would delete the drive mapping we assigned to drive S:
net use s: /delete
You can also use the asterisk as a wildcard should you ever want to delete all your mapped drives in one go:
net use * /delete
And that’s all there is to it. Once you get used to using the command, you’ll find it a lot quicker than clicking through File Explorer’s interface—especially if you work with mapped drives often.