Active Directory

net use

CautionMap a network drive

net use <drive> \\server\share

Mount/unmount a network share; can pass credentials.

Examples

  • net use Z: \\srv\data /persistent:yesPersistently map Z:
  • net use * /deleteRemove all mappings

Syntax

net use [<drive>] [\\server\share] [/delete]

Before you run it

/delete removes existing mappings.

Used when you see

Cannot access a file share
1
Check/remap the driveRemap with credentials
See the whole flow →

Related commands

The same reference, with no signal at all

Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).

Get it free on the App Store