To view the common causes of restarts and shutdowns:
Open event viewer > filter for these event numbers:
41
1074
6006
6008
.
.
.
.
.
Please remember to vote and to mark the replies as answers if they help.
On the bottom of each post there is:
Propose as answer = answered the question
On the left side of each post there is /\ with a number: click = a helpful post
.
.
.
.
.