Python 使用WMI模块设置IP、子网掩码、DNS并可还原自动获取

前提:将wmi和pywin32模块安装好

import wmi

class NetConfClass:
    wmiserver=None
    nAdpt=[]
    nAdptConf=[]
    nAdptSetting = []
    IPADDR = []
    NETMASK = [

你可能感兴趣的:(wmi,python)