Hi,
If windows system files are deleted accidently, you can try to run sfc /scannow to repair any corrupted or damaged Windows files. If they are found to be missing, it will replace the files.
If it still doesn't work, the recommend way is Reset This PC. Make sure your important data is safely backed up.
For your reference:
How to restore accidentally deleted system files in Windows 10
Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
Best Regards,
Candy
--------------------------------------------------------------
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.