Share via


net

This command performs network-related operations. The net use form of the command connects a computer to a shared resource. The net view form of the command displays the resources being shared by the specified computer.

net use [<local name>|*] [<remote name>] [/user:<username>] [/d]
net view <computer name> | /DOMAIN:<domain name>

Parameters

  • local name
    Assigns a name represent the resource on the local computer. If you use * instead of specifying a local name, the OS assigns a name to the resource for you.
  • remote name
    Specifies the name of the server and the shared resource that you can to connect to.
  • **/user:**username
    Specifies a different user name with which the command makes the connection.
  • /d
    Deletes the specified network connection based on the local name. If you specify the connection with an asterisk, net use cancels all network connections.
  • computer name
    Specifies the computer that contains the shared resources that you want to view.
  • **/DOMAIN:**domain name
    Specifies the domain for the computer that contains the shared resources that you want to view. If you do not specify a domain name, net view uses the same domain as your local computer.

See Also

Command Processor Commands | Command Processor Shell

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.