NET USE 命令用法

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

NET USE 命令用法

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[\Share Name[\Volume]]] |[http://ComputerName/ShareName[/Folder]}] [{Password | *}]] [/userscreen.width-300)this.width=sc reen.width-300'>DomainName\]UserName] [/userscreen.width-3 00)this.width=screen.width-300'>DottedDomainName\]UserName]

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

net use [DeviceName [/home[{Password | *}] [/dele te:{yes | no}]]

net use [/persistent:{yes | no}]

参数

DeviceName

指派名称以连接到资源,或指定要断开连接的设备。有两种类型的设备名称:磁盘驱动器 (即 D: 到 Z:)和打印机

(即 LPT1: 到 LPT3:)。键入星号 (*) 代替指定的设备名称来指派下一个可用的设备名称。

\\ComputerName\ShareName

指定服务器和共享资源的名称。如果 ComputerName 包含空格,请使用引号将整个 计算机名引起来,从 \\ 开始到计算机名的末

尾(如 "\\Computer Name\Share Name")。计算机名可以

有 1 到 15 个 字符。如果省略了 \ShareName,便会尝试连接到 ipc$ 共享。

C:\Documents and Settings\admin>net use

\\192.72.10.160\IPC$ /delete

在与 \\192.72.10.160\IPC$ 的连接中,有打开的文件和/或没有结

束的目录搜索。

是否继续断开连接并强行关闭? (Y/N) [N]: n

要去掉“是否继续断开连接并强行关闭? (Y/N)”,加参数"/yes"即可,如下:

C:\Documents and Settings\admin>net use

\\192.72.10.160\IPC$ /delete /yes

在与 \\192.72.10.160\IPC$ 的连接中,有打开的文件和/或没有结

束的目录搜索。

\\192.72.10.160\IPC$ 已经删除

建立空连接 net use \\IP\ipc$Content$nbsp;"" /user:"" (一定要注意:这一行命令中包含了3个空格)

建立非空连接 net use \\IP\ipc$Content$nbsp;"用户名" /user:"密码" (同样有3个空格)

映射默认共享 net use z: \\IP\c$Content$nbsp;"密码" /user:"用户名" (即可将对方的c盘映射为自己的z盘,其他盘类推)

如果已经和目标建立了ipc$,则可以直接用IP+盘符+$访问,具体命令 net use z: \\IP\c$

删除一个ipc$连接 net use \\IP\ipc$Content$nbsp;/del 删除共享映射 net use c: /del 删除映射的c盘,其他盘类推

net use * /del 删除全部,会有提示要求按y确认

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[\Volume]]]

|[http://ComputerName/ShareName[/Folder]}] [{Password | *}]] [/userscreen.width-300)this.width=screen.width-300'>DomainN ame\]UserName]

[/userscreen.width-300)this.width=screen.width-300'>DottedD omainName\]UserName]

[/userscreen.width-300)this.width=screen.width-300'>UserNam e@DottedDomainName] [/savecred] [/smartcard] [{/delete |

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

net use [/persistent:{yes | no}]

相关文档
最新文档