Find out why computer shut down. You can find the cause of unexpected shutdown using Event Viewer, PowerShell, or Command Prompt.