question

BoopathiSubramaniam-6294 avatar image
0 Votes"
BoopathiSubramaniam-6294 asked saldana-msft edited

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.

94841-1.jpg94842-2.jpg



I get the information from below URL.
https://pdf4pro.com/cdn/script-to-disable-turn-off-this-device-to-save-22096a.pdf

https://social.technet.microsoft.com/Forums/ie/en-US/6c3f8c14-9662-49e6-93a8-00333277060a/script-to-disable-power-management-on-network-adapter?forum=w7itproinstall

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-server-powershellmem-cm-generalwindows-group-policy
2.jpg (165.1 KiB)
1.jpg (33.1 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

RahulJindal-2267 avatar image
0 Votes"
RahulJindal-2267 answered BoopathiSubramaniam-6294 commented

Have you tried using a power plan to never sleep?

· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi Rahul Jindal,

The issue occurs when the user lock the screen and go away. Laptop is not going in sleep mode.

0 Votes 0 ·
RahulJindal-2267 avatar image RahulJindal-2267 BoopathiSubramaniam-6294 ·

Hi, Are you using any power plan to set ‘Sleep’ to ‘Never’ as I suggested before?

0 Votes 0 ·

Hello Raghul Jindal,

I should have posted the question in https://docs.microsoft.com/answers/questions/378938/cisco-vpn-disconnects-when-the-user-lock-the-scree.html

Sorry to post the below question. You can ignore.
Hi Rahul Jindal,
The issue occurs when the user lock the screen and go away. Laptop is not going in sleep mode.

0 Votes 0 ·
HanyunZhu-MSFT avatar image
0 Votes"
HanyunZhu-MSFT answered BoopathiSubramaniam-6294 commented

@BoopathiSubramaniam-6294

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.
98515-script.png

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.


script.png (214.9 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello HanyunZhu,

The issue occurs when the user lock the screen and go away. Laptop is not going in sleep mode.

0 Votes 0 ·