为了有效利用电力,您的Windows系统会设法关闭当前未使用的设备。您可以从设备管理器(Device Manager)配置这些设置。右键单击设备并选择Properties。
管理员注 1(Note 1 by Admin):帖子已被编辑。 这个 Microsoft 社区线程(This Microsoft Community thread)说明了一件事,但我们将这篇文章基于这个 Microsoft 帖子(this Microsoft post)。请先(Please)阅读完整的帖子和评论。
允许计算机关闭此设备以节省电量
在电源管理(Power Management)选项卡中,您必须启用允许计算机关闭此设备以节省电源(Allow the computer to turn off this device to save power),Windows将在不使用时关闭设备,以免浪费电源。但是,如果相同的选项显示为灰色怎么办:

可以看出,您无法将作为外部硬件设备的鼠标调整为在不使用时关闭/打开。
那么如何改变这个设置呢?好吧,注册表操作将帮助您解决此问题。此修复适用于支持即插即用(Plug-n-Play)( PnP ) 功能的设备。这是如何做到的。
在设备管理器(Device Manager)中无法关闭鼠标(Mouse)以节省电量(Power)
1.打开设备管理器(Device Manager),按Windows Key + R组合键并在“运行”(Run)对话框中输入devmgmt.msc并按(devmgmt.msc)Enter 键(Enter)。

2.在设备管理器(Device Manager)中,展开鼠标和其他指针设备(Mice and other pointing devices),右键单击设备,然后选择您遇到问题的属性。(Properties)

3.现在在Properties窗口中,切换到Details选项卡,选择Property作为Driver Key。如下所示复制密钥。如此复制的值(Value)之后的最后一部分是设备编号,在我们的例子中为 0000 - 但如果该选项显示为灰色,您可能会看到值 24。

4.继续,按Windows Key + R组合,在运行(Run) 对话框中键入 put Regedt32.exe ,然后按(Regedt32.exe)Enter打开注册表编辑器(Registry Editor)。
5.导航到以下位置:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\Driver Key
您必须替换在步骤 3( step 3)中获得的驱动程序密钥(Driver Key)。

6.在此位置的右窗格中,您必须查找名为PnPCapabilities的(PnPCapabilities)DWORD。如果DWORD不存在,您可以使用右键单击(right-click)->新建(New)-> DWORD 值(DWORD Value)创建它。双击相同的DWORD以修改其数值数据(Value data)。

7.如果该值设置为 24,则该选项将显示为灰色。因此,在上面显示的框中,您已将数值数据(Value data)输入为0,以允许计算机在空闲时关闭设备。您现在可以关闭注册表编辑器(Registry Editor)并重新启动计算机以使更改生效。
That’s it!
管理员注 2(Note 2 by Admin):为了方便初学者,我们更新了帖子的更多细节。我们还要感谢Anonymous,他们的评论为改善这篇文章做出了宝贵的贡献。因此可以得出结论,默认情况下,值 0 表示启用了网络适配器的电源管理。值 24 将阻止Windows关闭设备或让设备将计算机从待机状态唤醒。这篇 Microsoft 帖子(This Microsoft post)还为您提供了使用Fix It的选项,因此我们建议您使用易于使用的Fix It 在单台计算机上启用或禁用网络适配器电源管理。
Allow the computer to turn off this device to save power grayed out
In order to make efficient use of electrical power, your Windows system manageѕ to turn off the devices that are not currently used. You сan configure theѕe settings from the Device Manager. Right-click over the device and select Properties.
Note 1 by Admin: The post has been edited. This Microsoft Community thread says one thing, but we are basing this post on this Microsoft post. Please read the full post and comments first.
Allow the computer to turn off this device to save power
In the Power Management tab, you have to enable Allow the computer to turn off this device to save power and Windows will turn off the device when not in use so that power will not be wasted. But what if the same option is grayed out:

One can see that you can’t adjust the mouse which is an external hardware device, to be turned off / on while not in use.
So how to change this setting? Well, registry manipulation will help you to fix this. This fix is applicable to the devices supporting Plug-n-Play (PnP) capabilities. Here is how to do it.
Cannot Turn Off Mouse To Save Power In Device Manager
1. Open Device Manager, by pressing Windows Key + R key combination and inputting devmgmt.msc in the Run dialog box and hit Enter.

2. In the Device Manager, expand the Mice and other pointing devices, right-click on the device, and select Properties for which you’re facing the issue.

3. Now in the Properties window, switch to Details tab, select the Property as Driver Key. Copy the key as shown below. The last portion after \ of the Value so copied is device number which is 0000 in our case – but if the option is grayed out you may see a value of 24.

4. Moving on, press Windows Key + R combination, type put Regedt32.exe in Run dialog box and hit Enter to open the Registry Editor.
5. Navigate to the following location:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\Driver Key
Where you have to substitute Driver Key obtained in step 3.

6. In the right pane of this location, you’ve to look for the DWORD named PnPCapabilities. If the DWORD doesn’t exist, you can create it using right-click -> New -> DWORD Value. Double click on the same DWORD to modify its Value data.

7. If the value is set at 24, that option gets grayed out. So in the above-shown box, you have input the Value data to 0 in order to allow the computer to turn off the device while it is idle. You may now close the Registry Editor and reboot the machine to make changes effective.
That’s it!
Note 2 by Admin : We’ve updated the post with more details for the convenience of beginners. We also thank Anonymous, whose comments made a valuable contribution to better this post. So one can conclude that by default, a value of 0 indicates that power management of the network adapter is enabled. A value of 24 will prevent Windows from turning off the device or let the device wake the computer from standby. This Microsoft post also gives you the option to use a Fix It, so we recommend that you use the easy-to-use Fix It to enable or disable network adapter power management on a single computer.