
However, when things go wrong and your PC doesn’t start, it can feel demotivating and sometimes overwhelming to solve. Kudos to you for taking on the ultimate task in component customization - we promise it’s an incredibly rewarding experience. So you’ve made the decision to build your own computer. Type the following command to apply the changes and press Enter:Īfter completing the steps, the next time you press the power button your device will respond to the new action. If your computer doesn't have support for hibernation, remember not to use the index value of 2. Here are the available values you can use with their repective action: You'll notice in the examples, both commands end up with a value of "0", this is the index value that defines the action, and you must change it to reflect what you want the power button to do. To change the default action when your computer is on battery, use the following command: To change the default action when your computer is plugged in, use the following command: Type the following command to change the default action for the power button and press Enter:



In addition, on laptops and other mobile devices like Surface Pro, you can define the power button action when it's plugged in and when it's running on battery. For example, the hibernation power state is not a feature supported on every system, which means that depending on the hardware this option may not be available. Once you completed the steps, every time you press the power button your computer will respond to the new action.ĭepending on the hardware and device you own the settings available will be different. Using the drop-down menu for "When I press the power button" select the action you want:Ĭlick the Save changes button at the bottom of the window. Under "Power Options," click the Change what the power buttons do link.How to change power button action using Control Panel How to change power button action using Command Prompt.How to change power button action using Control Panel.
