PDA

View Full Version : registry entry to enable/disable network adapter



jmickevi
10-12-2001, 10:21 PM
Hi all,

I assume that when I enable and disable a network adapter that a registry entry is changed to reflect the status of that adapter. I won't go into all the reasons why but I have a need to automate the process of enabling and disabling a network adapter (i.e. disable at 6:00pm and enable at 6:00am).

If it is indeed true that the status is stored in the registry, I can write a program to change this registry entry and then schedule the program to run when necessary.

Does anybody know where I would look in the registry to find this setting? Any assistance at all would be greatly appreciated. I am working with a Windows 2000 Professional machine.

John.
jmickevi@cmtonline.com

RWSchlatter
10-13-2001, 02:18 AM
"...If it is indeed true that the status is stored in the registry..."
yes, the networking software will save the current state, to return to this state at the next startup.

"...I can write a program to change this registry entry ..."
yes, you can change it. But the registry is just a simple database. It does not actively trigger any action. So by modifiying a value in the registry, networking software does nothing.
Your program should use the standard windows API to interact with the networking software.

______________
Regards - Richard