Script Download: DisableNetworkAdapterPnPCapabilities.zip http://gallery.technet.microsoft.com/Disable-turn-off-this-f74e9e4a
Many users want to disable the option in network device called: The computer turn off this device to save power. Now, this script can help users to disable "turn off this device to save power" feature in Power Management of all physical network adapters.
You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery
You had me going there for a minute...but unfortunately your pointing to same bad info that everyone else is quoting. The powershell scripts on the pages you refer to are broken.