The command to disable sleep is powercfg-H off. Enable sleep command powercfg-H on. However, this command may not be executed successfully. The following situations may occur. When we start-> cmd-> open the command line parameters and enter the command powercfg-H off, the command line parameters window will flash through, or we are prompted to log on as an administrator. This is because of UAC control. If you have disabled UAC (I disabled UAC), you will not encounter this situation. If you enter the command line, You will directly disable the sleep. However, if you have not disabled UAC, you can use the following method to enable the CMD command line parameter as an administrator. Find cmd.exe in C:/Windows/system32and right-click it and select log on as an administrator. Then, enter powercfg-H off in the command line window. This can also disable sleep. After the sleep is disabled, we will find that the C disk has nearly 1.3 GB of space, because the hiberfil. SYS file in the C root directory is no longer available. This is the user's dormant file.