If you download a file that contains a virus or has potentially unwanted software then your presently activated antivirus program won’t allow you to open the file.
Usually, Windows 10 comes along with an inbuilt Defender. Its sole purpose is to stop the execution of such malicious files. In this situation, you might encounter an error message ‘Operation did not complete successfully because the file contains a virus’.
Often, such this message keeps appearing even if you open a known program. Basically, it is a false alarm as antivirus programs are designed to detect every unverified object as a threat.
Now, this error message keeps appearing then it can stop you from continuing your daily work. So, if you want to get rid of this issue, then you can follow the instructions presented through this guide. So, let’s begin.
There are several ways to fix this problem. You can perform all the ways explained below:
If Windows Defender is stopping you from accessing certain files and keeps on repeating the message, then you should disable it temporarily.
[Note: Make sure that you have turned On all the functions that you just disabled later. As it is dangerous to leave the system unprotected even]
Now, you can check if the message reappears or not. Else, you can move on to further solutions stated below.
Virus databases are constantly getting filled with new threats and thus if you are still using an outdated security program then it may result in several problems.
Henceforth, you can resolve the ‘Operation did not complete successfully because the file contains a virus’ error message by updating the Windows Defender or other security software you are using to protect your computer.
After updating the Windows Defender, you can check if the issue is resolved. Otherwise, you can use the Command Prompt to eliminate any further risk.
You can also face this error due to the explorer.exe or Windows Explorer process. If the explorer.exe file gets damaged, then you can solve it by using the Command Prompt. Here are the steps that you need to follow:
Now, you can check if the issue still continues. Else, you can perform the solutions described below.
The ‘Operation did not complete successfully because the file contains a virus’ error message can also arise while running any faulty Windows backup process. So, start by disabling these files. Here’s how to do this:
Open the Control Panel by going to the Start menu. Now, go to the ‘View by’ option and click on the ‘Large icons’ option.
Navigate to the ‘Internet Options’ category. Now, go to the General tab and then go to the ‘Browser History’ section. Tap on the Delete button and select the options that you wish to remove from the browser.
Afterward, untick the box that prompts ‘Preserve Favorites website data’. Then, check the ‘History’, ‘Cookies and website data’, and ‘Temporary Internet files and website files’ box.
Next, tap on the Delete button and then close the Control Panel. Afterward, restart the computer and check whether the error still occurs or not.
If all the above methods failed to eradicate this error message, then you can edit the registry entries of the system to get rid of this issue.
Before that, you have to create a back up of the registry file. Go to the ‘File’ and click on the Export option. Afterward, choose the ‘All option’ as the ‘Export range’.
Next, type your desired name and choose the output folder. Lastly, tap on the Save button to complete this process.
Now, to edit the registry entries you should go by following the steps given below:
[Note: If you are unable to locate that, then right-click on the empty space in the right pane and click on the New option. Then, choose the ‘DWORD (32-bit value)’ option from the list. Afterward, enter the ‘DisableAntispyware’ as a new DWORD and click twice on it.]
At last, set the Value data to 1. Tap on the OK button to apply the changes. Now, you should check whether the error has been resolved.
These are the probable ways through which you can easily get rid of the ‘Operation did not complete successfully because the file contains a virus’ error message.
We hope if you apply the above hacks in their corresponding order, then it will definitely help you to put an end to this problem. But still, if you have any doubts or queries regarding this topic, then you can share that in the comment box.