ERROR CODE 0x00000005

Error code 0x00000005 can arise in several situations.  Generally it is seen with a corrupt system. This is one of the more generic errors used by the kernel32 level components.

SYSTEM FILE CHECKER

Open an elevated command prompt and run:

sfc /scannow

This tool will take several minutes to complete, it will make sure all of the Windows components are OK and not damaged.

CHKDSK

Open an elevated command prompt and run:

chkdsk /r

This will take many hours as wll check that storage for any unrecoverable errors. Very high capacity disks may take longer to check completely. Its best to run this overnight so that the media check will be done.

DISM

Another tool that sometimes can help is the Deployment Imaging and Servicing Management (DISM) which will need an elevated command prompt to use. The run these command to attempt to fix Windows updates etc.

STEP 1

DISM /Online /Cleanup-Image /ScanHealth

STEP 2

DISM /online /Cleanup-Image /StartComponentCleanup

STEP 3

DISM /Online /Cleanup-Image /RestoreHealth

Once these steps are done, reboot the machine. Then, run Windows update after the machine has been rebooted.

NB: DISM may appear to be stuck at 20.0% but the program will eventually finish.