[python-win32] disable network interface
pacopyc pacopyc
pacopyc at gmail.com
Thu Jun 10 08:51:30 CEST 2010
Excuse me, I'd like to disable network interface of a remote host. I'm
thinking to use Win32_NetworkAdapter.
What do you think? How can I do? Is it possible disable network interface?
Can you help me?
I found in Internet this code:
import wmi;
c = wmi.WMI()
o = c.query("select * from Win32_NetworkAdapter where
NetConnectionID='wifi'")[0]
o.EnableDevice(1)
**
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20100610/ac84e179/attachment.html>
More information about the python-win32
mailing list