How to Map Local Folders as Drives in Windows 11
- 9 steps
- Needs administrator rights
- Includes a restart or sign-out
Mapping local folders as drives in Windows 11 assigns a standard drive letter like Z: to any folder on your PC so it appears as a separate disk in File Explorer. This built-in method turns deeply buried folders into top-level drives for faster access without installing extra software.
Windows handles this connection through a native command-line tool named subst. Anything you save on this new drive goes straight into your original folder, so it works like a direct shortcut to your most important files. The tool is part of both Windows 11 Home and Pro, so the steps below are the same on either edition.
Map a local folder as a drive in Windows 11 by creating a shortcut that uses the “subst” command. Type subst [DriveLetter]: “[FolderPath]” into the shortcut’s location, then place the shortcut in your Startup folder to make it persistent after restarts.
How to map a local folder as a drive letter
You can map a local folder to a drive in Windows 11 with the built-in command prompt tool, or with the Create Shortcut wizard, which wraps the same command in a double-clickable shortcut. Either way, the folder gets its own letter, like D: or E:. It then shows up inside This PC in File Explorer, so you can open it without clicking through multiple subfolders every time.
The shortcut method below is the easier one to repeat and the one you need for the automatic startup setup later. Before you start, pick a letter that no other drive uses. Letters near the end of the alphabet, such as Z:, rarely clash with internal disks, USB drives or card readers.
- Right-click on a blank area of your desktop. A context menu opens.
- Select New Shortcut. The Create Shortcut wizard opens and asks for the location of the item.

In the box that asks for the location, type the subst command. For example, if you want to turn the folder C:\Users\GenericUser\Documents\Supplies into the Z: drive, type this exactly:
Replace the letter and the folder path with your own. Use the real path of the folder, which you can copy from the File Explorer address bar. If the path contains spaces, put it in quotation marks, or the command will fail.
subst Z: "C:\Users\Username\Documents\Supplies"
- Click Next. The wizard now asks what you want to call the shortcut.
- Give your shortcut a name, such as “Map Z Drive”, and click Finish. The shortcut now appears on your desktop.

When you double-click this shortcut, a command window may flash on screen for a moment and then close. That is normal. Open File Explorer and select This PC, and a new Z drive will appear under the drives list. This drive acts like a real hard drive. Files you save there are stored in the original folder, and files you delete there are deleted from it too.
A mapped drive made this way does not survive a restart, and it usually disappears when you sign out. If you want it back, run the shortcut again or use the startup method below. To remove the drive without restarting, run subst with its delete option. Command Prompt shows the exact syntax in the subst help text. Removing the drive does not delete the folder or its files.
One more thing to know: Windows keeps drive mappings separate for normal and elevated (administrator) sessions. If an app running as administrator can’t see your Z drive, that is why. Map the drive again from an elevated session if you need it there.

Make the drive start automatically
You can make your mapped drive start automatically when you turn on your computer by copying its shortcut into the hidden Startup folder. This forces Windows to run the connection command in the background every time you log in, so your custom drive is always waiting for you without any extra setup steps.
This is the fix for the main weakness of subst, which is that the mapping is lost at restart. You only need to do it once per drive letter.
- Right-click the shortcut you created on your desktop and select Copy. In Windows 11 you can also click the shortcut once and press Ctrl+C.

- Press the Win+R on your keyboard to open the Run box. A small Run window appears at the bottom left of the screen.
- Type the command below and press Enter:
shell:startup

- This opens the Windows Startup folder in File Explorer. It will probably be empty or hold only a few items. Note: This step may require admin privileges depending on your system settings. If Windows asks for permission, approve it or sign in with an administrator account.
- Paste your shortcut into this folder. Right-click an empty area and select Paste, or press Ctrl+V. The shortcut now appears in the folder.

Now, every time you log in, Windows will automatically create your drive for you. To test it, sign out and sign back in, then open File Explorer and select This PC. The drive should be listed.
To undo this, open the Startup folder again and delete the shortcut. No restart is needed for the change to take effect, and the drive will simply not come back at your next login.
Troubleshooting Connection Errors
If your mapped drive isn’t showing up in Windows 11, or if you’re running into errors, verify that the folder path is correct and that the drive letter isn’t already in use.
- Check the path. Open the folder in File Explorer, copy the path from the address bar, and paste it into the shortcut. This catches typos and missing subfolders.
- Check for spaces. A path that contains spaces needs to be in quotation marks, or the command will not work.
- Check the drive letter. Look in This PC for any drive already using that letter, including USB sticks, card readers and network drives. Pick a different letter if there is a clash.
- Run the shortcut again. If you restarted or signed out, the mapping is gone until the shortcut runs again or the startup shortcut does it for you.
- Check which session you are in. A drive mapped in a normal session will not appear in an elevated one, and the reverse is also true.
Summary
Mapping a local folder as a drive in Windows 11 speeds up file access by assigning a familiar drive letter, and setting it to start automatically ensures it’s always ready. The whole setup uses only tools that ship with Windows, and you can undo it at any time by deleting the shortcuts.
Frequently asked questions
How do I Map to a network drive?
To map a network drive in Windows 11, open File Explorer, select This PC, then choose Map network drive from the Computer tab. Pick a drive letter, enter the shared folder's network address in the Folder box, and tick Reconnect at sign-in to keep it after a restart. Select Finish, then enter a username and password if prompted.
Why isn't network sharing working when I upgrade from 🪟 Windows 10 to 🪟 Windows 11?
Windows 11 blocks some older sharing methods that Windows 10 allowed, so an old NAS or Windows 7 PC may fail to connect. Also check that your network is set to Private, not Public, under Settings Network & internet. Then turn on Network discovery and File and printer sharing under Advanced sharing settings.
How do I create a shared drive?
Windows does not create a shared drive. Instead, you share an existing folder. Right-click the folder, choose Give access to, then Specific people. Add the users you want, set their permission level, and select Share. Windows then shows a network address that others can use to open the folder.
How do I Map a network drive in 🪟 Windows 11 using an IP address?
Use the same Map network drive wizard, but type the IP address in the Folder box. Enter two backslashes, the IP address, another backslash, and then the share name. Choose a drive letter, tick Reconnect at sign-in if you want it kept, and select Finish. Enter the username and password the other PC requires.
Still have a question?
Answered by AI from this guide. Good questions may be added to this page — please don't include personal details.
Did this guide fix your problem?
About the Author
Richard
Tech Writer, IT Professional
Richard is a writer at Geek Rewind who turns complex IT tasks into clear, step-by-step guides. He draws on years of hands-on experience in system administration and enterprise IT operations, focusing on Windows, Linux and WordPress: the problems people actually run into, and the fixes that work. His server and WordPress guides come from systems he runs himself. Richard builds and maintains the platform behind Geek Rewind, from its Ubuntu servers and Nginx configuration to its custom WordPress plugins. Many new tutorials start with readers' questions, and he's always glad to answer them in the comments.
[…] showed you how to mount a folder as a drive in Widows. You can use this method to rename the drive […]