Quantcast
Channel: Active questions tagged windows - Super User
Viewing all articles
Browse latest Browse all 9128

Disable sleep, hibernate, and fast startup using PowerShell in Windows 10

$
0
0

Edit: Skip to the end for the result of my situation

I am trying to figure out how I disabled the sleep, hibernate, and fast startup options in Windows 10, so that I can include them in the PowerShell scripts that I use to set up fresh deployments of Windows.I know that it is possible to do all 3 of these things using only PowerShell commands because I did it myself about a month or two ago on my desktop, but I cannot remember how I did it and cannot find it online anymore after an hour of google searching.

Note of clarification: When I say "disabled", I don't mean just unchecked the box, I mean that the options are no longer shown inControl Panel -> Hardware and Sound -> Power Options -> System Settingsand are also hidden or removed from both the power menu in the Start menu and the "Windows key+X" menu

As I said before, I did it myself a month or so ago, so I know that it is possible to do this using only commands in an Administrator PowerShell. I suspect it involves powercfg -h off and/or some kind of registry tweaks.

Examples

Here are some examples of what the intended result looks like. These screenshots were taken on my laptop and desktop, respectively:

On my laptop with a fresh install of Windows, the power options look like this:Example of Power Options with sleep, hibernate, and fast startup enabled

Meanwhile, on my desktop (where I already disabled these things), the power options look like this:Example of Power Options with sleep, hibernate, and fast startup disabled


Edit:

It turns out I was being stupid and forgot that I had disabled these things globally in the VM host.

A quick powercfg -a revealed the following:

The following sleep states are not available on this system:    Standby (S1)        The system firmware does not support this standby state.        The hypervisor does not support this standby state.    Standby (S2)        The system firmware does not support this standby state.        The hypervisor does not support this standby state.    Standby (S3)        The hypervisor does not support this standby state.    Hibernate        The hypervisor does not support hibernation.    Standby (S0 Low Power Idle)        The system firmware does not support this standby state.    Hybrid Sleep        Standby (S3) is not available.        Hibernation is not available.        The hypervisor does not support this standby state.    Fast Startup        Hibernation is not available.

Viewing all articles
Browse latest Browse all 9128

Trending Articles