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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 7

From novice to tech pro — start learning today.