我知道谷歌中有大量的结果:results https://www.google.com.tr/?q=netsh%20interface%20set%20interface%20disabled#q=netsh%20interface%20set%20interface%20disabled,但我没有在我的 Windows XP 机器上成功。我想从命令行禁用 LAN 连接。
>netsh interface set interface "Local Area Connection" DISABLED
One or more essential parameters not specified
The syntax supplied for this command is not valid. Check help for the correct sy
ntax.
>netsh interface set interface name="Local Area Connection" admin="disabled"
One or more essential parameters not specified
The syntax supplied for this command is not valid. Check help for the correct sy
ntax.
>netsh interface set interface name="Local Area Connection" admin=DISABLED
One or more essential parameters not specified
The syntax supplied for this command is not valid. Check help for the correct sy
ntax.
对于前两个命令,您需要提升/管理员权限:
禁用 LAN 网络连接
C:\> netsh interface set interface name="Local Area Connection" admin=disabled
启用 LAN 网络连接
C:\> netsh interface set interface name="Local Area Connection" admin=enabled
假设 :您的接口被命名为“本地连接”,否则请替换正确的名称。使用netsh interface show interface
找到名字。
列出 Wifi 配置文件
C:\> netsh wlan show profiles
连接到 Wifi 配置文件
C:\> netsh wlan connect name="ProfileName"
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)