How to Map Local Folders as Drives in Windows 11
- 12 steps
- Needs administrator rights
- Includes a restart or sign-out
Mapping a local folder as a drive in Windows 11 assigns a drive letter, such as Z:, to any folder on your PC. The folder then appears as a separate disk in File Explorer. This turns a deeply buried folder into a top-level drive without extra software.
Windows does this with a built-in command-line tool named subst (short for “substitute”). Anything you save on the new drive goes straight into the original folder, so the drive works like a direct shortcut to your files. The tool is part of Home and Pro editions of a currently supported Windows 11 version (25H2 or 26H2), so the steps below are the same on either edition.
Use the subst command to map a local folder as a drive in Windows 11. Create a desktop shortcut whose location is subst Z: “📁C:\
How to map a local folder as a drive letter
You can map a local folder to a drive 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 under This PC in File Explorer, so you can open it without clicking through several subfolders each time.
These steps map a local folder to a drive letter by creating a shortcut that runs the mapping command for you.
- Right-click 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.

- Type the
substcommand in the location box. For example, to turn the folderC:\Users\GenericUser\Documents\Suppliesinto the Z: drive, type this exactly:Codesubst Z: "C:\Users\Username\Documents\Supplies" - Click Next. The wizard now asks what you want to call the shortcut.
- Name the shortcut, then click Finish. Any name works, such as “Map Z Drive”. The shortcut now appears on your desktop.
- Double-click the new shortcut. A command window may flash on screen for a moment and then close. That is normal.
- Open File Explorer and select This PC. The new Z drive appears in the drives list.

A mapped drive made this way does not survive a restart, and it usually disappears when you sign out. To get 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.
Windows also 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 by copying its shortcut into the Startup folder (a folder whose contents Windows runs each time you sign in). Windows then runs the mapping command in the background at every sign-in, so the drive is waiting for you without extra steps.
This fixes the main weakness of subst, which is that the mapping is lost at restart. You only need to do it once per drive letter.
Know three limits before you start. The startup shortcut only works for the account whose Startup folder it sits in, so other accounts on the PC need their own copy. The mapping is per-user, which means it exists only in that account’s session. The target folder must also exist and be available at sign-in, so it cannot live on a drive that is not yet connected, such as an external disk you plug in later.
- Copy the shortcut you created on your desktop. Right-click it and select Copy, or click it once and press Ctrl+C. Windows gives no confirmation, but the shortcut is now on the clipboard.

- Press Win+R to open the Run box. A small Run window appears at the bottom left of the screen.
- Type the command below and press Enter. It opens the Startup folder for your account.
shell:startup

- Check that the Startup folder is open in File Explorer. It is probably empty or holds 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.

That’s it. Windows now runs the shortcut and creates your drive each time you sign in to this account. To test it, sign out and sign back in, then open File Explorer and select This PC. You should see the drive listed.
To undo this, open the Startup folder again and delete the shortcut. No restart or sign-out is needed for the change to take effect, and the drive will not come back at your next login.
Troubleshooting Connection Errors
If your mapped drive isn’t showing up in Windows 11, or if you get 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 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 the account. The startup shortcut only runs for the account whose Startup folder holds it, and the target folder must be available at sign-in.
- 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 giving the folder a familiar drive letter. Setting the shortcut to run at startup keeps the drive ready at every sign-in. 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.
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 […]