Hello,
For the shutdown unexcepted issue, I suggest that you could check the system event log to find related event information about shutdown. Check if the unexcepted shutdown issue caused by a BSOD or some system process shutdown the machine. At last you may analyze check the dump file.
For the update issue, few steps below you could check:
The error code 0x800f0805 generally means that there’s corruption in the system files or the Component-Based Servicing (CBS) manifest is corrupted. Here are a few methods to fix this issue:
Method 1: Use Windows Update Troubleshooter
Press “Win + I” to open Settings.
Go to “Update & Security > Troubleshoot”.
Click on “Additional troubleshooters”.
Click on “Windows Update” and then “Run the troubleshooter”.
Method 3: Perform a DISM scan
Open Command Prompt as Administrator.
Type “DISM /Online /Cleanup-Image /RestoreHealth” and press Enter.
Method 4: Reset Windows Update Components manually
Open Command Prompt as Administrator.
Type these commands and press Enter after each:
net stop wuauserv
net stop cryptSvc
net stop bits
net stop msiserver
ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
ren C:\Windows\System32\catroot2 catroot2.old
net start wuauserv
net start cryptSvc
net start bits
net start msiserver
Best regards,
Hania Lian
If the Answer is helpful, please click "Accept Answer" and upvote it.