Windows
0x80070005 Access denied
What it means
0x80070005 is the Windows error code for access denied (ERROR_ACCESS_DENIED). A program, or you, tried to do something that the current permissions do not allow, or that another program is holding.
Where you usually see it
Windows Update, installing or removing software, copying a file, and programs writing to a folder they do not own. The number is the same in all of those cases. The cause is not.
What to try first
Note which program showed the code, and what you were doing. If a file is involved, close it in other programs and try again. If an antivirus prompt is waiting in the background, deal with that first. If the code appeared during Windows Update, restart once and use the official Windows Update troubleshooter before you go near registry edits.
When to stop
Do not take ownership of System32 or of other system folders as a first step. That advice is common and often destructive. This site will not walk you through it.