Have you tried using a power plan to never sleep?
Disable "Allow the computer to turn off this device to save power" using GPO or Powershell
Hi,
I wanted to disable "allow the computer to turn off this device to save power" to group of Laptops and Desktops.

I get the information from below URL.
https://pdf4pro.com/cdn/script-to-disable-turn-off-this-device-to-save-22096a.pdf
It seems this cannot be deployed by GPO because DeviceID in the registry may be different for each Desktops and Laptops for Ethernet adaptor .
Powershell script required permission to the \HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class{4d36e972-e325-11ce-bfc1-08002be10318}\ before the modification
Please help whether this can be achieved by GPO or by creating a package using SCCM.
Windows for business | Windows Server | User experience | PowerShell
Microsoft Security | Intune | Configuration Manager | Other
Windows for business | Windows Client for IT Pros | User experience | Other
2 answers
Sort by: Most helpful
-
-
HanyunZhu-MSFT 1,846 Reputation points Microsoft External Staff
2021-05-21T06:27:53.79+00:00 We may achieve this via the Powershell script, to achieve the script, we can refer to this article: https://community.spiceworks.com/topic/2239276-script-help-to-disable-power-management-on-network-cards which have the same problem with you.
Note: This is not from MS, just for your reference.For the script, I also perform a test in the lab. You may try it in your environment to see if it works either.
Here's the screenshot for your reference:
Add a step "Run PowerShell Script" in the task sequence and upload the script. Then deploy the task sequence to the devices.
Hope the above information is helpful to you
If the response is helpful, please click "Accept Answer"and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.