Freigeben über


net (Windows CE 5.0)

Send Feedback

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.

netuse [<local name>|*] [<remote name>] [/user:<username>][/password:<password>|*>] [/d]
netview <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.

  • /password:password|*
    Specifies a user password that authenticates the user when the user connects to the remote share. You can use the password or * option to specify the password.

    If you use password, you must type a plaintext password. If you use the * option, you will be prompted to enter the password on the command line and this output will not be echoed back to the screen. This is the more secure option.

    **Note   **Use the /password parameter with extreme caution because improper use of this parameter can compromise the security of your computer and resources. For more information about best practices while using this parameter, see the Remarks section.

  • /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.

Remarks

Use extreme caution when using the net command with the password option in the command processor shell. The input to the password option is a plaintext password. If an unauthorized user who is physically close to the user reads the plaintext password, the security of the computer and associated resources can be compromised.

The command processor shell keeps a command line history of all the commands used. Even if the password setting is scrolled off the screen, an unauthorized user can potentially discover the password by scrolling through the history. To prevent the discovery of the password, when the net command is called with this option from a cmd.exe window, the user should shut down the cmd.exe session immediately after completing the command.

The net command should only be run on a local device when the user is using the /password parameter. It should not be run remotely unless there is a secure communication mechanism, or else the password could be eavesdropped on. For example, it is highly unsafe to use the net command with the /password parameter through the telnet server.

See Also

Command Processor Commands | Command Processor Shell

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.