Skip to content

Instantly share code, notes, and snippets.

@albertico
Last active August 15, 2023 20:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save albertico/b5317a4f17858d8908bf to your computer and use it in GitHub Desktop.
Save albertico/b5317a4f17858d8908bf to your computer and use it in GitHub Desktop.
MS Windows: Mapping a Network Drive (NET USE command)

MS Windows: Mapping a Network Drive (NET USE command)

Basic Mapping

net use M: \\share\folder

Mapping with Authentication

net use M: \\share\folder /user USER Pa$$word

Mapping with Reboot Persistence

net use M: \\share\folder /P:Yes

Deleting Mapped Network Drive

net use M: /delete

Deleting All Mapped Network Drives

net use * /delete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment