Windows 10 desktop closes command line if left overnight

0

I've been leaving important things running overnight on command line which are time critical for me and when I come back they are rarely still running. The command line window isn't even open. This morning it was logged out and when i logged back it it wasn't there. Even if it was logged out it shouldn't have closed it right? I have gone to System>Accounts>Sign-in Options and selected never for when it should require log in, but when i go back on the screen that box turns back to blank. I don't know if this is a text formatting issue or not.

Basically I find this unacceptable from Windows and really cant afford it to happen again.

Also When I go into power option when to sleep and when to turn off display are both set to never.

Any life savers out there?

Note. I have checked the event logs and found this:

The process C:\WINDOWS\system32\svchost.exe (DESKTOP-#######) has initiated the restart of computer DESKTOP-####### on behalf of user NT AUTHORITY\SYSTEM for the following reason: Operating System: Service pack (Planned)
Reason Code: 0x80020010
Shut-down Type: restart
Comment:

My restart options looks a bit different and on isn't clickable.: enter image description here

windows-10
command-line
sleep
logoff
asked on Super User May 11, 2017 by Greg Cawthorne • edited May 11, 2017 by Ramhound

1 Answer

1

So according to the information you posted, Windows restarted your computer due to installing Windows Updates.

Do note that since the Creators update, Windows tends to try and reopen any program that was still running. It doesn't fully restore everything, but before this update, it would restore nothing, so its a great start.

Given that you don't want windows updates to restart your computer, make sure you use active hours and when windows announces it will restart the computer, go to the windows update settings and choose to plan the restart (This option is grayed out if there are no planned restarts). This way, you can delay it up to a week, but in the next days, you can again plan it, and keep delaying it.

If that is not an option, consider disabling the Windows Update service. This way, your computer will be at risk if you don't do windows updates yourself, but at least your computer will not reboot when you don't want to either.

Do note, that just stopping the windows update is not enough. You also have to edit the service, and set its startup type to disabled.

answered on Super User May 11, 2017 by LPChip • edited May 12, 2017 by LPChip

User contributions licensed under CC BY-SA 3.0