background image

NET

 

USE

 

 

命令用法

net

 

use

 列出本机网络连接  

 

net

 

use

 \\IP\ipc$ "密码" /user:"帐号" 建立与指定 IP

 

的 IPC$(空连接)  

net

 

use

 

z:

 \\IP\c$ "密码" /user:"帐号" 将对方的 c 盘映射为自己的 z 盘  

net

 

use

 \\IP\ipc$ /del 删除与指定 IP 的 IPC$连接  

net

 

use

 

z:

 /del 删除本机映射的 z 盘  

net

 

use

 * /del 删除本机所有映射和 IPC$连接  

如提示:提供的凭据与已存在的凭据冲突, 

net

 

use

 * /del 即可  

Net

 

use

  

将计算机连接到某个共享资源或与其断开连接,或者显示有关计算机连

接的信息。该命令还控制永久性网络连接。在没有参数的情况下使用,

net

 

use

 可

以检索网络连接列表。  

语法  

net

 

use

 [{DeviceName | *}] [{\\ComputerName[\ShareName[\Volum

e]]] |[

http://ComputerName/ShareName[/Folder]}]

 [{Password | *}]] [/userscreen.

width-300)this.width=screen.width-300'>DomainName\]UserName] [/
userscreen.width-300)this.width=screen.width-
300'>DottedDomainName\]UserName] [/userscreen.width-
300)this.width=screen.width-300'>UserName@DottedDomainName] 
[/savecred] [/smartcard] [{/delete | /persistent:{yes | no}}]  

net

 

use

 [DeviceName [/home[{Password | *}] [/delete:{yes | no}]]  

net

 

use

 [/persistent:{yes | no}]  

参数  

DeviceName  

指派名称以连接到资源,或指定要断开连接的设备。有两种类型的设备名

称:磁盘驱动器(即 D: 到 

Z:

)和打印机(即 LPT1: 到 LPT3:)。键入星号 

(*) 代替指定的设备名称来指派下一个可用的设备名称。  

\\ComputerName\ShareName