Name

net use

Synopsis

net use [device:] [\\host\share] [password | *] [options]

Map a network resource to a local device, which can be a drive letter or a printer of the form LPTn.

The host and share name argument is used only when defining new mappings. It may have a NetWare volume name appended, if appropriate.

Any required password may be specified on the command line, or an asterisk may be substituted to request a password prompt.

Options

/PERSISTENT:YES | NO

Create a persistent mapping (automatically re-created at each login). The default is the setting used most recently. If this option is specified without any other arguments, it changes the current default.

/USER:[domain\]username

Specify an alternate user account for accessing the resource.

/HOME

Map the specified drive letter to your home directory (no resource specification is needed).

/DELETE

Permanently remove the specified device mapping.

Get Windows 2000 Commands Pocket Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.