- How to map network drive from command line
- Map system drive (C:) of remote computer
- How to map or add a Network Location or Map FTP Drive in Windows 10
- Map FTP Drive
- Add Network Location
- Map a Network Drive using Command Line
- Map a Network Drive using PowerShell
- Related Posts
- How to Turn On or Off Use Speech Recognition in Windows Mixed Reality in Windows 10
- How to change Desktop and Windows Mixed Reality Input Switching in Windows 10
- How to disable Windows Mobility Centre in Windows 10
- [email protected]
- Primary Sidebar
- How to map network drive using Command Prompt on Windows 10
- How to map network drive with Command Prompt
- How to disconnect mapped network drive with Command Prompt
- How to Map a Network Drive in Windows 10
How to map network drive from command line
We can map a network drive from windows command line using the command net use. Syntax is given below.
The above command maps the drive letter Z: to the network share \\remotepc\sharename. If the logged in user has authorized access to this network share, the above command completes successfully without asking the user to provide username/password. Otherwise it will prompt to supply the credentials of an account authorized to access the share. Upon providing the required credentials, the share gets mapped to the drive Z:
We can also use * instead of Z:. This will automatically pick up the unused drive letter starting from Z:
You can alsp specify username and password in net use command. See examples below.
If you don’t want to type the password in plain text in the windows command line you can specify just the user name. Net use will prompt you for the password.
You can use Net use command to map webdav shares also.
Once the network share is mapped, you can start using it like a local drive. You can open the network share in explorer with the drive letter. Open explorer and specify drive letter in the address bar(Z:)
You can also do ‘start Z:’ from command prompt. This would open the network drive in explorer.
Map system drive (C:) of remote computer
If you have administrator access to the remote computer then you can map the system drive or any other drive of the remote computer with the below command.
hi
i have a problem with this command.when i use this command it does not show me the mapped drive in my computer window.what should i do to monitor the mapped drive?
thank you
Unfortunately you have to edit the registry with a new value key ..enable local connections…google that and you shall get the answer, not so difficult
How to add the folder which has spaces in the share path say \\Kites\Way Back Schedule\ where there is no access for the share to be altered or modified.
Is there any way to know which drive letter was assigned after using * ? I´m creating a BAT file and at the end I would like to execute START S: , but not sure which letter was assign.
How to map or add a Network Location or Map FTP Drive in Windows 10
If you are looking for a way to add a network location or map an FTP drive and access files & folders on an FTP server, in Windows, natively, then this post may help you. You will be able to have one-click easy access to your files on networked locations via the Windows File Explorer.
Map FTP Drive
You can create or map a drive directly to your FTP site from within Windows. To do so, open File Explorer > Computer (This PC). Right-click and select Map Network Drive.
You can also use the Map network drive button:
It offers options to:
- Map network drive
- Disconnect network drive.
In the box which opens, type the FTP address or the path to your Network drive or browse to it using the Browse button. Your folder Properties must be set to Shared in order to map it as a network drive. You will get the setting under Properties > Sharing tab > Advanced Sharing > Check the Share this folder option.
Check the Reconnect at sign-in option to make the mapping permanent. If you plan to use credentials from the networked computer to access the shared folder, check the Connect using different credentials option and click OK. You will be asked to enter the username and password Next.
You will now have to enter the credentials for the user account, using the following format in the username name field so that your system knows which networked computer it is going to connect to – Computer\Username. Browse to your network folder for mapping and click OK.
Once you have done this, you will be able to see it in Explorer.
To map an FTP site, click on the Connect to a website that you can use to store your documents and pictures link to open the Add Network Location wizard.
Here you have to choose a custom network location and specify the location of your website, specify the login credentials that may be required and name the mapped FTP drive.
Add Network Location
Uncheck Log for anonymously and give the username & password. Click on Next. Give a name to the networked location, when asked. Click Next again. Now select Open this network location when I click Finish.
You will be asked to enter your credentials, and once you do so, you will be connected to your network drive or your FTP drive or your website.
This is quite useful if you need to connect your computers together for sharing files, store files online or run a website.
TIP: See this post if you are Unable to map Network drive.
Map a Network Drive using Command Line
To map Network Drives using the command line, in an elevated command prompt, you have to run the following command:
Here x is the drive letter, and the /persistent:yes parameter makes it permanent.
You can read more about the Net use command, which lets you connect a computer to a shared resource on Technet.
Map a Network Drive using PowerShell
To map Network Drives using Powershell, you have to run the following command:
You can read more about New-PSDrive, which helps you create mapped network drives on MSDN.
NOTES:
- The folders you map should be set to SHARE before you can access them via drive letters
- If you are trying to access a drive from another computer, it should be ON and running; even if the computer is sleeping, you cannot access that drive
- You should know the credentials of the folder, computer, or website you are trying to map or connect as a network drive
- Download FTP Drive tool from KillProg.com. It makes several things including adding a drive letter easier
- You may want also to check out FtpUse, a free tool that helps you map an FTP server as a Local Disk Drive.
- Use Network Drive Control to make Windows automatically map network drives by network name when you log in
- Visual Subst is a free tool that lets you easily create Virtual Drives for your Folders & map Cloud Storage as Virtual Drives.
If you want, you can also download and use one of these free FTP Clients for your Windows PC. How to set up and use SIP Server on Windows may also interest some of you.
Date: January 20, 2020 Tags: Features, FTP
Related Posts
How to Turn On or Off Use Speech Recognition in Windows Mixed Reality in Windows 10
How to change Desktop and Windows Mixed Reality Input Switching in Windows 10
How to disable Windows Mobility Centre in Windows 10
[email protected]
Anand Khanse is the Admin of TheWindowsClub.com, a 10-year Microsoft MVP (2006-16) & a Windows Insider MVP. Please read the entire post & the comments first, create a System Restore Point before making any changes to your system & be careful about any 3rd-party offers while installing freeware.
Primary Sidebar
report this ad
How to map network drive using Command Prompt on Windows 10
You can use Command Prompt to map a network drive on Windows 10, and here’s how to do it.
On Windows 10, you can quickly map a network drive in a number of ways, including using Command Prompt when you prefer to use command lines or creating a script to access files stored on another computer.
When connecting to a network drive, Windows 10 is essentially creating a “shortcut” that points to the shared folder with a drive letter and the username and password to access its content. Once a drive is mapped, it will then appear on “This PC,” under “Network locations,” for quicker access to files stored on another computer from File Explorer.
In this guide, you will learn the steps to use Command Prompt to map a network drive on Windows 10, and how to disconnect when you no longer need access to the shared folder.
How to map network drive with Command Prompt
To use the net command to map a shared folder as a drive, use these steps:
Open Start on Windows 10.
Search for Command Prompt and click the top result to open the console.
Type the following command to map a drive assigning drive letter manually and press Enter:
In the command, replace “Z” with the drive letter not already in use you want to use. Then replace DEVICE-NAME-OR-IP and SHARED-FOLDER for the name of the computer name or IP address of the device hosting the shared folder and the name of the shared.
For example, this command maps the ShareOne folder to the computer with the “Z” drive letter:
Map folder with manual drive letter
Type the following command to map a drive assigning drive letter automatically and press Enter:
In the command, the (*) is the option that allows the system to assign any drive letter that is not already in use. Then replace DEVICE-NAME-OR-IP and SHARED-FOLDER for the name of the computer name or IP address of the device hosting the shared folder and the name of the shared.
For example, this command maps the ShareOne folder to the computer:
Map folder with automatic drive letter
Type the following command to map a drive providing authentication details and press Enter:
In the command, replace “Z” with the drive letter not already in use you want to use. Then change DEVICE-NAME-OR-IP and SHARED-FOLDER for the name of the computer name or IP address of the device hosting the shared folder and the name of the shared. The PASSWORD and USERNAME have to be replaced with the credentials to authenticate with the remote device. The “persistent” option allows the folder to stay mapped after reboot.
For example, this command maps the ShareOne folder providing the user credentials and makes the mapping persistent:
Map folder with credentials
Once you complete the steps, the network shared folder will map on the device, and it will appear in File Explorer.
How to disconnect mapped network drive with Command Prompt
To disconnect a network drive on Windows 10, use these steps:
Open Start.
Search for Command Prompt and click the top result to open the console.
Type the following command to disconnect a mapped network drive and press Enter:
Command Prompt disconnect mapped drive
In the command, replace “Z” for the drive letter of the map you want to remove.
Type the following command to disconnect all the mapped network drives and press Enter:
After you complete the steps, the mapped drives will be disconnected and no longer accessible from File Explorer.
While we are focusing this guide on Windows 10, you can use these steps on Windows 8.1, Windows 7, and earlier versions. If you want to use File Explorer to complete this task, then use these instructions.
We may earn commission for purchases using our links to help keep offering the free content. Privacy policy info.
All content on this site is provided with no warranties, express or implied. Use any information at your own risk. Always backup of your device and files before making any changes. Privacy policy info.
How to Map a Network Drive in Windows 10
By Melanie Pinola 29 April 2019
You can easily create a shortcut to another drive or folder shared on your network by mapping that location. When you map a network drive, it will show up as a new drive under This PC in File Explorer, so you can quickly access the shared files you need, just like you would your local hard drive. Here’s how to make that network drive shortcut in Windows 10.
How to Map a Network Drive in Windows 10
1. Open File Explorer and select This PC.
2. Click the Map network drive drop-down in the ribbon menu at the top, then select «Map network drive.» (This is under the Computer tab, which should open automatically when you go to This PC, as above.)
3. Select the drive letter you want to use for the network folder, then hit Browse.
4. If you receive an error message, then you’ll need to turn on network discovery. To do so, open the Control Panel, select Network and Sharing Center and choose Change advanced sharing settings from the top-left corner. From there, select Turn on network discovery. Save changes.
choose network folder
5. Navigate to the folder you want to map and hit OK after selecting it.
6. Confirm your selection and click Finish. You can choose to reconnect to the folder every time you sign in so it’s always available. You can even use a different user account to connect to the folder if needed.
7. When you’re done, you should see the new drive letter under This PC and will be able to access its contents like you would any other folder. If you want to disconnect the network drive, right-click on it and select Disconnect.