Posted By: Sven Groot | Jan 26th, 2006 @ 7:20 AM
page 1 of 1
Comments: 9 | Views: 21696
Sven Groot
Sven Groot
My name has 9 letters. Coincidence? I think not...
Is there any way to programmatically disable and re-enable a NIC, the way it is done when you select Disable in Control Panel/Network Connections?

I've been looking around Win32 and WMI but can't seem to find a way to do it.
Sven Groot wrote:
Is there any way to programmatically disable and re-enable a NIC, the way it is done when you select Disable in Control Panel/Network Connections?

I've been looking around Win32 and WMI but can't seem to find a way to do it.



Look harder Smiley
http://www.mcpmag.com/columns/article.asp?EditorialsID=619

blowdart
blowdart
Peek-a-boo
Sven Groot wrote:
Is there any way to programmatically disable and re-enable a NIC, the way it is done when you select Disable in Control Panel/Network Connections?

I've been looking around Win32 and WMI but can't seem to find a way to do it.


http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/wmi_tasks__networking.asp



blowdart
blowdart
Peek-a-boo


Sven Groot wrote:
Jan, I think that method will work, thanks for that.

Blowdart, if you read the page, it explicitly says WMI has no method for doing what I want.


And then gives you Win32, which you had talked about Tongue Out

I didn't realise you wanted "pure" wmi
footballism
footballism
Another Paradigm Shift!
Sven, when you finish with it, please share your code with us.

Sheva
footballism
footballism
Another Paradigm Shift!
EricZhong wrote:

I need JS or C# or even VB.NET code so I can get through it very easily.

Sheva
page 1 of 1
Comments: 9 | Views: 21696
Microsoft Communities