码迷,mamicode.com
首页 > 其他好文 > 详细

dos命令 禁用网络链接

时间:2015-05-29 20:03:50      阅读:116      评论:0      收藏:0      [点我收藏+]

标签:

获取所有的网络链接接口:

C:\Users\Chris.JENNEY>netsh interface show interface

Admin State     State      Type Interface     Name
-------------------------------------------------------------------------
Disabled     Disconnected    Dedicated       Local Area Connection
Enabled      Connected      Dedicated       Wireless Network Connection
Disabled     Disconnected    Dedicated       Wireless Network Connection 2

打开指定网络链接

C:\Users\Chris.JENNEY>netsh interface set interface name="Local Area Connection"
admin=enabled

关闭指定网络链接
C:\Users\Chris.JENNEY>netsh interface set interface name="Local Area Connection"
admin=disabled

dos命令 禁用网络链接

标签:

原文地址:http://www.cnblogs.com/jenney-qiu/p/4539093.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!