Name

net use

Synopsis

Manages connections with shared resources.

Syntax

net use [devicename | *] [\\computername\sharename[\volume] 
[password | *] ] [credentials] [ [/delete] | [/persistent:{yes | no}] ]

where credentials represents one of:

[/user:[domainname\]username]
   [/user:[dotted domain name\]username]
   [/user:[username@dotted domain name]
net use {devicename | *} [password | *] /home
net use [/psersistent:{yes | no}]

Options

none

A list of current network connections.

devicename

The resource to connect/disconnect. (Specify D: to Z: for drives and LPT1: to LPT3: for printers, or use an asterisk to assign the next available device name.)

\\computername\sharename [ \volume ]

The shared resource to connect/disconnect. volume represents a NetWare volume to connect/disconnect (requires Client Service for NetWare or Gateway Service for NetWare).

[ password | *]

Password required for the resource. An asterisk causes a prompt for the password when the command is run.

/user:[ domainname \] username

Domain to connect from and username to use for establishing the connection (if required). If domainname is omitted, the current logon domain is used.

/delete

Termination of the connection. (If an asterisk is used for the connection, then all network connections are disconnected.)

/home[ password | *]

Connection of a user to the home directory.

/persistent:[yes | no]

yes makes the connection being made and subsequent connections persistent (saves them and restores them at next logon). no makes the ...

Get Windows 2000 Administration in a Nutshell 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.