我尝试自动更改ip(通过DHCP) 本文描述: enter link description here
有了这段代码:
import wmi
# Obtain network adaptors configurations
nic_configs = wmi.WMI().Win32_NetworkAdapterConfiguration(IPEnabled=True)
# First network adaptor
nic = nic_configs[0]
# Enable DHCP
nic.EnableDHCP()
但我得到的响应值81是元组:(81,) 这意味着:“无法配置DHCP服务。” 根据msdn主页:enter link description here
我用python3.3.2运行这个脚本。在
需要一些帮助/建议。谢谢!在
看起来你正在使用windows 7。确保以管理员身份运行脚本。在
相关问题 更多 >
编程相关推荐