This Powershell one liner will check the event log of a remote computer to see what initiated the shutdown or reboot. If the server just crashed or power was interrupted you can filter on a different Event ID.
Get-EventLog -ComputerName <servername> -LogName System | Where-Object {$_.EventID -eq 1074} | Select-Object -First 1 | FL *