When you say your PC shuts down it leads me to believe that it may be related to your Power Settings. Some come 'out of the box' or 'stock' to shut down after so many minutes. It could be sleep settings or hard drive settings to name a few. Those two need
to be set to NEVER. Double check your Power Settings and make sure that they aren't set to shut down things. You'll have to go through each an every one setting them to the way you want when finished create your own personal power settings while there so if
need be you can just click on that to reset them back to the way you want.
As far as DCOM errors go you'll have to find which GUID is being generated in the Event Viewer showing those errors. Then you'll have to go into the registry file an 'take ownership' which means you'll change the Permissions to Administrators to allow you
to change those settings. Some times they are default set to Trusted Installer, by changing those you'll be able then to go to the Group Policy Editor and add SYSTEM to that group (along with Administrators) that will stop those DCOM errors in W10. It usually
is a RunTimeBroker setting that needs to be 'tweaked' Here is a link I used to fix those DCOM errors. I also had one other GUID showing so I copied that from Event Viewer and searched regedit changed those permissions to Administrator along with the greyed-out
RunTime in GPO (Group Policy Editor)
note these tips where taken from a blog site found on Google
Regedit Take Ownership
You will need to take ownership then set rights against two different keys. The keys are:
HKEY_CLASSES_ROOT\AppID{9CA88EE3-ACB7-47c8-AFC4-AB702511C276}
HKEY_CLASSES_ROOT\CLSID{D63B10C5-BB46-4990-A94F-E40B9D520160}
Open Regedit with Administrators privileges and navigate to the keys above (remember you have to do this twice)
WinKey + X >> Command Prompt (Admin) >> Type in Regedit
Right click the key >> permissions
Click advanced
At the top change the Owner to COMPUTERNAME\Administrators
Please note if you are domain joined you’ll have to change where you are searching from to your local computer
Look in the Permission Entries field
If the local system administrators group is listed ensure it has full control
if the administrators group is not listed add it and give it full control. (note you can only do this if you are a member of the administrators group and it is now the owner)
Click okay a lot >> Ensure you apply permissions to all child objects
Change DCOM Permissions
Need to ensure DCOM permissions are setup
Open DCOMCNFG as an Administrator
WinKey + X >> Command Prompt (Admin) >> Type in DCOMCNFG
Navigate to Component Services >> Computers >> My Computer >> DCOM Config
Find the RunTimeBroker >> Right Click >> Properties >> Security Tab
Launch and Activation Permissions >> Edit >> Add System and give it full control
I also added the Administrators group just for testing
While changing permissions I was prompted several times to remove bad account references. I did this as the computer knows which accounts have been removed.
Summary
At this point you should have sorted the DCOM errors. Give your computer a reboot.
It can be a bit daunting at first I know it took me several tries til I felt comfortable with it. The main thing is getting the DCOM error App ID & GUID from the Event Viewer errors and finding them in the Registry.
This will not always work if you don't do this from the True Admin account. That's why people get "Access Denied."
the fix quoted here is for a specific DCOM error, and will not work on all DCOM errors. For the other DCOM errors you want to use the CLSID and APPID guides.