Technical Anshu
Tutorials Blog
💾 Drive Mapping Guide

Map Network Drive with Different Username net use Command Guide

The shared folder lives on the accounts PC, but you sign in there as "accounts", not as yourself. A mapped drive with its own credentials solves it once, properly - no daily password typing, no shortcut that forgets.

✍️ Technical Anshu🖥️ Windows 10 / 11⏱️ 7 minute guide
🎥 Watch the complete fix in the video - every screen, step by step

Mapping a drive the manual way through Explorer works until it does not: the saved password option hides, the wrong username gets remembered, or the drive vanishes after every reboot. The net use command is the technician version - it states the server, the share, the exact username, and whether the mapping should survive a reboot, all in one line you can read, save, and reuse on every PC in the office. This guide covers the syntax piece by piece, the safe way to handle the password prompt, how to make the mapping persistent, and how to remove mappings cleanly when they go stale.

Command Prompt - Mapping With a Different Username
C:\> net use Z: \\ACCOUNTS-PC\Data /user:ACCOUNTS-PC\accounts *
Type the password for \\ACCOUNTS-PC\Data: ********
The command completed successfully.

Z: -> \\ACCOUNTS-PC\Data (as user: accounts)

The star at the end makes Windows ask for the password interactively - it is never typed in plain sight or stored inside a script file.

1

The Command, Piece by Piece

Every part of the line has one job. Once you can read it, you can adapt it to any office without guessing.

  1. net use Z: - the drive letter to create; pick one high in the alphabet so USB drives never collide with it
  2. \\ACCOUNTS-PC\Data - the server and share name; the IP address works too and is often more reliable in small offices
  3. /user:ACCOUNTS-PC\accounts - the username as the server knows it: server name, backslash, account name. For a Microsoft account on the server, the form is /user:MicrosoftAccount\[email protected]
  4. * - ask me for the password now, hidden, instead of taking it written in the command
  5. /persistent:yes - reconnect this drive automatically at every sign-in
2

Run It in the Right Order

net use is honest but strict: it refuses to create a second identity on the same server (error 1219) and refuses a letter that is already taken. Two minutes of cleanup first saves the error messages.

  1. Run plain net use and read the existing connections
  2. Remove stale ones to the same server: net use Z: /delete for a letter, or net use \\ACCOUNTS-PC\Data /delete for an unlettered connection
  3. Now run your mapping command and type the server account password when asked
  4. Open the new drive letter and create-then-delete a test file to prove you have write access, not just a view
3

Make It Survive Reboots - and Fix It When It Does Not

A mapping with /persistent:yes reconnects at sign-in using the saved credential. When a persistent drive shows a red cross or asks for the password every morning, the saved credential is stale or missing - the drive is fine.

  1. Open Credential Manager then Windows Credentials and find the server entry
  2. If the password changed on the server, edit the entry with the new password - or delete the entry and the mapping, then map again fresh
  3. A red-cross drive that opens fine when clicked is usually just Windows checking before the network was ready - annoying, not broken
4

What Never Goes in the Command

You will see forum examples with the password typed directly in the line: net use Z: \\SERVER\Share password123 /user:x. Do not copy that habit. The command sits in your Command Prompt history, in any batch file you save, and on screen for anyone passing by. The * prompt exists precisely so the password is asked, hidden, and stored by Windows in the credential vault instead of in your text files. Same rule for login scripts shared across the office - they must prompt or use saved credentials, never contain a readable password.

5

Remove Mappings Cleanly When Roles Change

Staff change, servers get renamed, shares move. A mapping left behind points at a ghost and slows every Explorer window that tries to wake it.

  1. Remove one: net use Z: /delete
  2. Remove everything: net use * /delete
  3. Also delete the matching saved credential in Credential Manager, or Windows may silently rebuild the connection under the old name
  4. After a server rename, map fresh to the new name - do not keep both name and IP mappings to the same box, which is how error 1219 is born
🔴 One server, one identity, one address: most mapping misery comes from mixing - one drive by name, another by IP, a third by a leftover Explorer shortcut, each with its own saved login. Standardise on a single form per server (this guide series recommends the fixed IP plus DHCP reservation) and every PC in the office behaves identically.

🎥 See the Complete Fix in the Video

The whole troubleshooting run, live on screen - the same order a technician follows on site.

▶️ Watch Full Video
❓ Common Questions (FAQ)

The mapping works but the drive disappears after restart. Why?

It was mapped without /persistent:yes, or with persistence off in a one-time session. Delete it and map again with /persistent:yes, and make sure the credential is saved in Credential Manager so the reconnect does not stop at a password prompt.

Can I map two different folders from the same server with two usernames?

No - Windows enforces one username per server per session (error 1219). Use one server account whose permissions cover both folders. That is a server-side permission design, set once on the sharing PC.

Explorer mapping and net use mapping - is there a difference?

The result is the same connection; net use simply exposes every option explicitly, including the username form and persistence, and can be repeated identically on many PCs. For one PC either is fine; for an office standard, net use wins.

This guide is based on the Technical Anshu shared folder and printer fix video • Stuck on any step? Ask in the video comments — you will get a reply there 🙏