Windows 7 Disable PnP on Ethernet Adatper VBscript or GPO

Hi

I have a bunch of Window 7 VM's that the NIC is going to sleep in the middle of the night and causing an alert to wake the on call person (why we have to monitor VM 24/7 is beyond ludicrous).

I'm looking for a way to use VBscript or use GPO to disable the NIC power management (see attach 1).NIC Power Settings
All the sites I've found seem to have incorrect PnP settings.  The Nic on the VM's are "Local Area Connection 2", but it doesn't seem to relate to the associated reg key.  The reg key is showing 13 NIC's and PnPCapabilities only show up on 10 & 11.  It must be NIC 0011 because the PnPCapabilities changes from 110 to 118 (see attach 2)NIC 0011 PnpCapabilities key
So, I would like to apply this key to several VM's.  I could use psexec with a list and apply the reg settings but would prefer vbscript or GPO.

Thank you!

Tony
tonyjoewalkerAsked:
Who is Participating?
 
Will SzymkowskiSenior Solution ArchitectCommented:
The following TechNet blog illustrates 3 ways to accomplish this Powershell, Registry or GPO.
http://blogs.technet.com/b/exchange/archive/2013/10/22/do-you-have-a-sleepy-nic.aspx

Will.
0
 
tonyjoewalkerAuthor Commented:
I found that link and the gpo link.  The problem is that I'm seeing different device numbers (0000 - 0013) where the PnP Capability key is, so I was hoping for a gpo preference or at least one that would set it for the active nic and not need to know which (0000 - 0013) has the PnP setting.

I tested imported the reg key from one vm that had the PnP setting in a different spot from another vm and it did not change the setting...
0
 
Will SzymkowskiSenior Solution ArchitectCommented:
Have you tried to reboot the machine? I have not tested this registry key so i do not know if it requires a reboot.

Will.
0
 
tonyjoewalkerAuthor Commented:
no, I can see where the reg pnp reg key value changes from 110 to 118 when the box is checked, then unchecked.  putting the pnp key with a value of 118 in the wrong device number at best does nothing...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.