windows - want to change properties of an interface using win32, wmi module -
i using wmi module
x = wmi.wmi().win32_networkadapterconfiguration(index=9) // index tap drive
and change properties inside interface , doesn't change in interface out there
nic = x[0] nic.properties['netenabled'] = true //it still gives false in interface when see again
even can't assign ip address, gateway , subnet mask
i tried
c = t.execquery("select * win32_tapdrive netconnectionid='local area connection'") //it gives unknown object can't deal
any please.
using windows environment.
Comments
Post a Comment