I used event viewer and it said Event id 41 the system has rebooted without cleanly shutting down firstHardware, software, power glitch,...
Gremlins perhaps - who knows.
Such things happen from time to time. The big problem is the "timing" - if in the middle of a backup or update then files could be corrupted and or lost.
That is another good reason to always be doing backups.
To be a bit more helpful, look in Reliability History. The log may have captured some error code or warning related to the lost of power.
Event Viewer can be used in much the same way. Event Viewer is not as user friendly and does not present as clear a timeline of events.
No i'm using windows 7 i'm talking about this optionMeaning the "Restart this device as soon as possible when a restart is required ...." option?
Reference - see the 5th black window in the following link:
https://www.guidingtech.com/disable-automatic-reboot-windows-10/
Did not think of that.
Hopefully turning off the ASAP restart option will fix the problem.
You may also want to turn on "Update notifications" if not turned on.
However, I believe that that Event Id 41 seems out of place.
Look in Windows Update History and Reliability History for any update related log entries that correspond with the original restart time and date.
With an older system as mentioned by @rgd1101 do three things:
1) Keep your backups up to date.
2) Keep an eye on the error logs.
3) Make a note of the system hardware specs - may be needed.
Well im using a core 2 quad gt1030 4gb ram 450watt psuBack to basics....
System hardware specs? PSU?
One occurrence - then I will reference my original post (#3).
Next reference - FYI:
https://docs.microsoft.com/en-us/windows/client-management/troubleshoot-event-id-41-restart