pghtech 0 Newbie Poster

I am trying to use part of my program to turn the "power save" feature off of the local are connections for power managment on the local area connection on computers I build

I was able to do this at the command line with the REG utility

REG UPDATE HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318}\0001\PnPCapabilities=56

I have 2 problems
1: it is not always a guarntee that the "0001" folder will be the local area connection
2: one of the computers I build has 3 options to to turn off power managment on its onboard nic. I wll try to see if i can find the specific keys they are associated with.

Is there a way to search the registry for the local area connection and modify the specific key I need to, to turn off the power management? That will help me with issue 1 and I should be able to figure out issue from that