date / t & time / t
echo Dism / Online / Cleanup-Image / StartComponentCleanup
Dism / Online / Cleanup-Image / StartComponentCleanup
echo…
date / t & time / t
echo Dism / Online / Cleanup-Image / RestoreHealth
Dism / Online / Cleanup-Image / RestoreHealth
echo…
date / t & time / t
echo SFC / scannow
SFC / scannow
date / t & time / t
pause
+ Step 3: Finally double-click on that file *.bat
to run => and wait for the scan to Command Prompt
complete.
If you download the available file, please extract it first, then run * .bat file or right-click on that file => and select Run as administrator to run with administrator privileges.
Once the scan is complete, restart your computer and check if the error has been fixed or not. If the condition still doesn't go away then try the last one below!
The Hybrid Sleep feature allows apps to stay active but at the lowest power consumption when the computer goes to sleep. If it is turned off then it also causes the error that we are fixing in this article.
Perform:
+ Step 1: Open the dialog box Run ( Windows + R
) => then enter control
=> and click Enter
to open Control Panel
+ Step 2: In the window Control Panel
, enter keywords Power
in the search box => and look in the list of results as shown below.
In the section Power Options
, click on the line Edit Power Plan
to open the Windows 10 Power Plan setup.
+ Step 3: Window to set screen off time and automatically switch to Sleep mode of Windows when using PIN and when plugging in charger appears.
We don't need any settings here so just keep clicking Change advanced power settings
for yourself.
+ Step 4: In Power Settings
this window , drag down => and click the plus sign next to 2 items: Sleep
and Hybrid Sleep
.
Here, you check if the two lines are Plugged in
and On Battery
are OFF or not!
If so, please switch both lines to ON as shown in the picture => then click OK
to complete the setup!
Now, continue to test the results again
Above are 3 simple and most effective ways to help you self-fix, fix Windows 10 computer automatically close all applications when sleep.
If the 3 ways above still cannot fix this error, you only have to reinstall Windows or try to remove recent Windows updates. Hope it will be useful for you. Good luck !