
Use the command line to manage the hibernation file.
Click to enlarge
As I explained last week, hibernation is sometimes preferable to sleep, because it uses no power while still preserving your system state. When you resume from hibernation, all your open apps, browser tabs, and files are exactly where they were when you last used them.
On modern PCs with lots of memory and relatively small solid-state drives, managing the size of the hibernation file is important. Configured properly, it can do its work without having to use storage space equivalent to the amount of installed RAM.
To configure hibernation, you need to use the Powercfg command with the /h (for hibernation) switch. Open a Command Prompt window as an administrator and use any of the following commands:
Powercfg /h on | off This command enables or disables the hibernation feature.Powercfg /h /type reduced | full If you want to use the Fast Startup feature but never need to hibernate, change the hibernation file type to reduced, which uses a fraction of the disk space of the full setting.Powercfg /h /size nn Use this command to turn on hibernation and define the size of the hibernation file as a percentage of installed memory. The minimum is 40, maximum is 100. Avoid setting this number so small that you’re unable to fit the current contents of memory into the hibernation file.
To see the size of the current hibernation file, open a Command Prompt windows and type the command dir c:hiberfil.sys /ah. (That last switch is necessary because the hibernation file is hidden.)
Previous tip: Keep your laptop from waking up in your travel bag
Next week: Another Windows 10 tip from Ed Bott
see all of ed bott’s Windows 10 Tips
Solve network problems with a one-click reset
Shut down OneDrive completely
Squeeze hours of extra life from your laptop battery
Find your PC’s original product key
Stay organized using virtual desktops
Change UEFI firmware settings or start in Safe Mode
Create a perfect background for your desktop
Turn off Cortana completely
Find out if your PC can run Hyper-V
Switch back to a local account from a Microsoft account
Stay organized using virtual desktops