我需要批量禁用Windows机器上的接口(超过100台机器)。 我试过使用:
netsh interface set "VirtualBox Host-Only Network" disable
但它不起作用。 (我发现一篇文章描述它在win 2003服务器上工作)。 我可以使用psexec远程运行命令。
你有什么提示吗?
提前致谢!
这可能是你需要另一个“界面”关键字和“禁用”,而不是“禁用”:
netsh interface set interface "VirtualBox Host-Only Network" disabled
使用netsh doeas禁用LAN接口在Windows XP上不起作用。 帮助显示如下:
admin - whether the interface should be enabled (non-LAN only) connect - whtether to connect the interface (non-LAN only) newname - new name for the interface (LAN only)