Cmd Command To: Map Network Drive !free!
net use \\Server01\Projects The share will appear under "Network locations" in File Explorer, but not as a drive letter. If your current Windows login doesn't have access to the share, specify another account. You will be prompted for the password:
net use Z: "\\Server01\Project Files\Q1 Reports" You can explicitly specify the domain and even the domain controller:
In the modern IT environment, network drives remain the backbone of data sharing and centralized storage management. While the graphical user interface (GUI) of Windows—using "Map network drive" in File Explorer—is convenient for the average user, the command line offers unparalleled speed, automation, and troubleshooting capabilities. Whether you are a system administrator managing hundreds of workstations or a power user looking to optimize your workflow, mastering the net use command in Command Prompt (CMD) is an essential skill. cmd command to map network drive
net use Z: \\Server01\Projects /user:DOMAIN\john.doe * Alternatively, provide the password in the command (less secure, see security section below):
net use /verbose To remove a specific mapped drive: net use \\Server01\Projects The share will appear under
net use Z: /delete Always confirm by running net use again to ensure it is gone. To wipe all current network connections in one command (useful for login scripts to start fresh):
net use The output will list drive letters, UNC paths, and status (OK, Disconnected, etc.). While the graphical user interface (GUI) of Windows—using
:: Map department drives net use H: \Fileserver01\HomeFolders%username% net use S: \Fileserver01\Shared\Sales net use P: \PrintServer01\Scans