might be windows update, go to control panel, admin services, scroll down to windows update then select disable.
you could try that
HF
Its done a few mini updates, but still shuts down regardless if I am not using it after a little while. I keep checking settings like I have forgotten something.