Windows command lines

powercfg.exe /hibernate on
 * Enable hibernation

powercfg.exe /hibernate off
 * Disable hibernation

PS C:\> Optimize-Volume -DriveLetter C -Defrag -Verbose
 * Defrag