I need to enable/disable completely network interfaces from a script in Windows XP. I\'m looking for a python solution, but any general way (eg WMI, some command-line à la n
So far I've found the following Python solution:
>>> import wmi; c=wmi.WMI() >>> o=c.query("select * from Win32_NetworkAdapter where NetConnectionID='wifi'")[0] >>> o.EnableDevice(1) (-2147217407,)
which is translated, AFAIU, to the generic WMI error 0x80041001. Could be permissions.