net use [devicename | *] [\\computername\sharename[\volume] [password | *]] [/user:[domainname\]username] [/persistent:yes ] Let's break down the key parameters:

net use Z: \\Server01\Projects If the command succeeds, you will see: The command completed successfully. You can now open Z: in File Explorer. Sometimes you only need to access a share without cluttering your drive list. You can create a connection without a letter:

:: Map department drives net use H: \Fileserver01\HomeFolders%username% net use S: \Fileserver01\Shared\Sales net use P: \PrintServer01\Scans

net use Z: "\\Server01\Project Files\Q1 Reports" You can explicitly specify the domain and even the domain controller:

net use The output will list drive letters, UNC paths, and status (OK, Disconnected, etc.).

net use Z: \\Server01\Projects /user:CONTOSO\jsmith * Listing Current Connections To see all active network drives and connections:

net use /verbose To remove a specific mapped drive:

net use Z: \\Server01\Projects /user:DOMAIN\john.doe P@ssw0rd123 Persistent vs. Temporary Mappings By default, mapped drives are persistent —they reconnect automatically after you log off and back on. To create a temporary mapping that disappears when you log off, use:

Language

🇬🇧
EnglishEnglish
Change

Cmd Command To Map Network Drive _best_ May 2026

net use [devicename | *] [\\computername\sharename[\volume] [password | *]] [/user:[domainname\]username] [/persistent:yes ] Let's break down the key parameters:

net use Z: \\Server01\Projects If the command succeeds, you will see: The command completed successfully. You can now open Z: in File Explorer. Sometimes you only need to access a share without cluttering your drive list. You can create a connection without a letter:

:: Map department drives net use H: \Fileserver01\HomeFolders%username% net use S: \Fileserver01\Shared\Sales net use P: \PrintServer01\Scans cmd command to map network drive

net use Z: "\\Server01\Project Files\Q1 Reports" You can explicitly specify the domain and even the domain controller:

net use The output will list drive letters, UNC paths, and status (OK, Disconnected, etc.). You can create a connection without a letter:

net use Z: \\Server01\Projects /user:CONTOSO\jsmith * Listing Current Connections To see all active network drives and connections:

net use /verbose To remove a specific mapped drive: To create a temporary mapping that disappears when

net use Z: \\Server01\Projects /user:DOMAIN\john.doe P@ssw0rd123 Persistent vs. Temporary Mappings By default, mapped drives are persistent —they reconnect automatically after you log off and back on. To create a temporary mapping that disappears when you log off, use:

Showcase your app for free

Get featured and reach thousands of AI enthusiasts and developers!

Ready to Transform Your Workflow?

Join thousands of professionals who've already discovered the power of AI-assisted productivity. Start your journey today.

Get Started Free
AI-Powered Writing
Smart Analytics
Time Saving