私は使っているwmi module
x = wmi.WMI().Win32_NetworkAdapterConfiguration(index=9)
// this index for my tap drive
インターフェイス内のプロパティを変更しますが、そこのインターフェイスでは変更されません
nic = x[0]
nic.properties['NetEnabled'] = True
//it still gives False in the interface when i see it again
IP アドレス、ゲートウェイ、サブネット マスクを割り当てることさえできません。
私は試した
c = t.ExecQuery("select * from Win32_TapDrive where NetConnectionID='Local Area Connection'")
//It gives unknown object i can't deal with it
助けてください。
Windows環境を利用しています。