Home  >  Article  >  How to use net use command

How to use net use command

小老鼠
小老鼠Original
2023-09-28 17:46:284992browse

Common syntax of the net use command: 1. Create a new shared connection: net use [share path] [/user:username] [password]; 2. Disconnect an existing shared connection: net use [shared path] /delete; 3. List all shared resources currently connected: net use, etc.

How to use net use command

The net use command is used to establish or delete shares between computers and list the currently connected shared resources.

The following is the common syntax of the net use command:

1. Establish a new shared connection: net use [share path] [/user: username] [password]

For example, to connect to the shared path named "sharename", the user is "tom" and the password is "password", enter the following command: net use \server\sharename /user:tom password

2. Disconnect an existing shared connection: net use [shared path] /delete

For example, to disconnect to a shared path named "sharename", enter the following command: net use \server \sharename /delete

3. List all shared resources currently connected: net use

The above is the basic usage of the net use command. You can view it by entering "net use /?" More available options and syntax.

The above is the detailed content of How to use net use command. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn