The command
shutdown /h
can be used to hibernate a Microsoft
Windows system. If you run the command on a Windows Server 2012 Essentials
system which hasn't had hibernation mode enabled, you will see the following
message:PS C:\Users\User> shutdown /h Hibernation is not enabled on this system. You must enable hibernation in order to use the -h option.
To enable hibernation, you can issue the command powercfg
/hibernate on
from a PowerShell prompt. However, you may see the
message below when you enter the command:
PS C:\Users\User> powercfg /hibernate on An unexpected error condition has occurred. Unable to perform operation. You may not have permission to perform this o peration.
To enable hibernation, right-click on the PowerShell icon, which looks like a button with a ">_" in it, then choose "Run as Administrator" and then issue the powercfg command.
Windows PowerShell Copyright (C) 2012 Microsoft Corporation. All rights reserved. PS C:\Windows\system32> powercfg /hibernate on PS C:\Windows\system32>
Once you've done that, you can hibernate the system with shutdown
/h
.