Are you seeing a pop-up message saying “An error has occurred in the program during initialization. Error code: 0x80070005“? There are many presumable reasons that can generate this error code on your computer. Follow these easy fixes on your computer to fix the issue in no time at all.
Fix-1 Disable Windows Security-
1. Press Windows key+I to open Settings.
2. In the Settings window, click on “Update & Security“.
3. In the Settings window, on the left-hand side, click on “Windows Security“.
4. On the right-hand side, click on “Firewall & network protection“.
Windows Security window will be opened.
5. In the Firewall & network protection window, click on the network type beside which you will notice “(active)”
(Like this computer is connected to a Private network. So ‘Private network’ is shown as ‘active‘. )
6. Now, scroll down until you see Microsoft Defender Firewall.
7. Then, switch Microsoft Defender Firewall to ‘Off‘.
8. Now, click on the ‘Home‘ icon (🏠) on the right-hand side to go back to the Windows Security window.
9. Now, in the Windows Security window, click on “Virus & threat protection“.
10. On the right-hand side, scroll down to Virus & threat protection settings section, click on “Manage settings”
11. In Virus & Threat protection settings, in the “Real-time protection” option, toggle it to “Off“.
Reboot your computer. After rebooting, try copy-pasting the file/folder again.
IMPORTANT:
Windows Defender Firewall and Real-time protection constantly shield your computer from potential threats and dangers. Turning these off will make your device vulnerable to those threats. So, we strictly suggest you turn both the settings “On” immediately after attempting the solution on your computer.
Fix-2 Restart VSC service-
Volume Shadow Copy (VSC) service organizes several processes to create a shadow copy of your important data.
1. Press Windows key+R to open Run Window.
2. In the Run window, type “services.msc” and then hit Enter.
3. In the Services window, scroll down till you see the “Volume Shadow Copy” service.
4. Now, right-click on “Volume Shadow Copy” click on “Start“.
5. Now, right-click on the same service and then click on “Restart” to restart the service.
Close the Services window.
Check if the error message is still appearing or not.
Fix-3 Manage Access permission-
This problem also can occur due to the lack of proper access permission.
NOTE–
You will need to create a restore point on your computer before proceeding to the main solution. If you don’t know how to do it, follow our step-by-step guide on how to create a restore point. In case if anything goes wrong, you can easily restore your system back to normal again.
Step-1 Create SubInACL folder in the C: drive–
1. Press Windows key+E to open the File Explorer window.
2. In the File Explorer window, double click on “Local Disk C:“.
3. Right-click on the space and then click on “New>” and then choose “Folder“.
4. Name the new folder as “SubInACL“.
Close File Explorer window.
Step-2 Download and Install SubInACL package-
1. Visit this link.
2. Click on “Download” to download the SubInACL installer.
3. Now, choose a suitable download location on your computer and click on “Save“.
Close the browser window.
4. Go to the location where you have downloaded the installer.
5. Double click on the “subinacl.msi” to start the installation process.
6. Click on “Next“.
7. Then, click on “Browse“.
8. Now, navigate to the location of the “SubInACL” folder you have created earlier.
9. Next, click on “OK“.
10. Now, click on “Install Now“.
11. Once the installation is done, click on “Finish” to finish the installation process.
Step-3 Create and Run a script-
Now, you have to create and run a simple batch file on your computer.
1. Click on the Search box beside the Windows Icon, type “Notepad“.
2. Now, click on “Notepad” in the elevated search result.
3. Copy these lines from here and paste those in the blank Notepad page.
@echo off Set OSBIT=32 IF exist "%ProgramFiles(x86)%" set OSBIT=64 set RUNNINGDIR=%ProgramFiles% IF %OSBIT% == 64 set RUNNINGDIR=%ProgramFiles(x86)% C:\subinacl\subinacl.exe /subkeyreg "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing" /grant="nt service\trustedinstaller"=f @Echo Gotovo. @pause
4. After that, click on “File” from the menu-bar and then click on “Save as“.
5. Now, set the “File name:” as “Script1.bat” and click on “Save as type:” and set it as “All files“.
6. Next, click on “Save” to save the batch file.
Close the Notepad window.
7. Go to the location where you just saved the batch file.
8. Now, right-click on “Script1.bat“, and then, click on “Run as administrator“.
Wait till the process is complete.
Reboot your computer.
Check if this helps.
Step-4 Create and Run another script-
You have to run another script on your computer.
1. Open Notepad on your computer.
2. Copy and paste these lines in the blank Notepad page.
@echo off C:\subinacl\subinacl.exe /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f C:\subinacl\subinacl.exe /subkeyreg HKEY_CURRENT_USER /grant=administrators=f C:\subinacl\subinacl.exe /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f C:\subinacl\subinacl.exe /subdirectories %SystemDrive% /grant=administrators=f C:\subinacl\subinacl.exe /subkeyreg HKEY_LOCAL_MACHINE /grant=system=f C:\subinacl\subinacl.exe /subkeyreg HKEY_CURRENT_USER /grant=system=f C:\subinacl\subinacl.exe /subkeyreg HKEY_CLASSES_ROOT /grant=system=f C:\subinacl\subinacl.exe /subdirectories %SystemDrive% /grant=system=f @Echo Gotovo. @pause
3. Click on “File” and then, click on “Save as“.
4. Then, set the “File name:” as “Script2.bat” and for “Save as type:“, set it as “All files“.
5. Now, click on “Save” to save the batch file.
Close the Notepad window.
6. Go to the location where you just saved the batch file.
7. Now, right-click on “Script2.bat“, and then, click on “Run as administrator“.
Once the batch file has finished executing the commands, reboot your computer.
After rebooting your computer you won’t see the error message again.
Fix-4 Change read-only attribute of System Volume Information-
Changing the read-only status of System Volume Information may solve this issue.
1. Press Windows key+E to open the File Explorer window.
2. In the File Explorer window, double click on “Local Disk C:“.
3. Now you need to click on “View” on the menu bar.
4. Now, click on “Options“.
5. When the Folder Options window appears, click on the “View” tab.
6. Then, check the option “Show hidden files, folders, and drives“.
7. Now, scroll down and uncheck the option “Hide protected operating system files (Recommended)“.
8. If there is a confirmation message, click on “Yes“.
9. Next, click on “Apply” and then click on “OK“.
10. Now, you will see the ‘System Volume Information‘ folder in C: drive.
11. Right-click on the “System Volume Information” folder and then click on “Properties“.
11. In Properties window, make sure to leave a ‘Box‘ checkmark in the “Read-only” option.
12. Finally, click on “Apply” and then click on “OK“.
Close the File Explorer window.
Never turn off firewall. That will expose you to all the viruses on the internet. This is not a viable fix.