<p>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 netsh, some windows call) is welcome and will be adjusted. Thanks.</p>

The
devcon
tool can control the NIC, but not the interface directly. It's a command-line version of the Device Manager applet.
```
```
devcon disable (id or portion of name)
devcon enable (id or portion of name)
```
```