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)

**
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to