Hi @mahmoudibr13858
If Win10 is installed, check that the ''auto shutdown timer'' hasn't been activated.
Here are two links that may help.
[https://www.csharp.com/article/how-to-schedule-automatic-shut-down-in-windows-10/|How to schedule automatic shutdown in Win10]
[https://www.csharp.com/article/how-to-cancel-automatic-shutdown-in-windows-10/|How to cancel automatic shutdown in Win10]