【问题标题】:How do I disable a LAN (Local Area Network) connection?如何禁用 LAN(局域网)连接?
【发布时间】:2016-11-12 00:40:52
【问题描述】:

我了解显示 Windows XP 防火墙状态的命令是:

netsh firewall show opmode

哪些输出:

禁用防火墙类型:

netsh firewall set opmode mode=disable profile=all

哪些输出:

但我找不到禁用本地连接的命令。

我该怎么做?

【问题讨论】:

    标签: command-line windows-xp windows-firewall


    【解决方案1】:

    我找不到禁用“本地连接”的命令

    您需要使用netshinterface 选项。

    禁用:

    netsh interface set interface "Local Area Connection" admin=disable
    

    启用:

    netsh interface set interface "Local Area Connection" admin=enable
    

    注意事项:

    • Local Area Connection 替换为适配器的接口名称。
    • 使用netsh interface show interface 获取接口名称。

    进一步阅读

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-07-09
      • 1970-01-01
      • 2018-12-15
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多