Skip to main content

Fix: Operation did not complete successfully because the file contains a virus

There are a lot of antivirus tools available online but none of them can be called perfect and there will always be malicious tools that will be able to slip by unnoticed by even the most expensive and most popular antivirus tools.
There also exists another side of the medal and those are the false positives which are constantly reported by your antivirus tools even though the files are 100% legitimate. However, the judgment on whether a file is genuine or not is definitely delicate to say the list and you should always pay close attention when handling these files.

These files should be scanned by several different antivirus scanners before you decide the file is a false positive. The error code which sometimes appears under the message displayed in the title is actually produced by Windows which makes it all the more interesting. Follow the instructions presented below in order to learn just how to handle this error.

Solution 1: Disable Windows Defender Temporarily

Since Windows Defender can really produce some false positives when its settings are set to full protection, it’s normal to expect simple mistakes like this one. However, when it comes to Windows and Windows Defender, there is no efficient way of actually running the file which was reported until you disable Windows Defender completely.
Make sure you turn it on as soon as possible as it’s always dangerous to leave your computer unprotected for a long time.
  1. Right-click on the shield icon on your taskbar and click on Open.
  1. When Windows Defender Security Center opens, click on the shield icon below the home button, open Virus & threat protection settings and turn off Real-time protection and Cloud-based protection.
  2. Navigate to the browser icon (second from the end) and turn off the Check apps and files option.
  3. You can also disable SmartScreen if you think it’s going to bother you during the action you wish to undertake.
Note: Don’t forget to turn on everything you just disabled by repeating the same process and turning the components ON.

Solution 2: Add an Exception for the Folder Where the File Is Located

If you are using several security tools besides Windows Defender, you should know that disabling one of them will cause the other to start acting up. Luckily, there is a simple solution which simply consists of adding an exception for the file you are trying to run. If the file is located on a removable storage device, make sure the device is connected before you open your antivirus screen.
Follow the steps below in order to do so:
  1. Open your antivirus user interface by double-clicking on its icon on the Desktop or by double-clicking on its icon in the bottom right part of your taskbar.
  2. The Exception setting is located in different places according to different antivirus tools. It can often be found simply without much hassle but here are some location on the most popular antivirus tools:
Kaspersky Internet SecurityHome >> Settings >> Additional >> Threats and Exclusions >> Exclusions >> Specify Trusted Applications >> Add.
AVGHome >> Settings >> Components >> Web Shield >> Exceptions.
AvastHome >> Settings >> General >> Exclusions
In each case, make sure you choose the folder location properly. Also, don’t click the file directly because most users claimed that you actually need to select the folder and not the file you want to add to exceptions.

Solution 3: Problems with Windows Explorer

It definitely sounds weird but sometimes even the Windows Explorer process gets flagged as potential malware and it prevents you from using your computer properly while displaying the “Operation did not complete successfully because the file contains a virus“ error. Since explorer.exe is a genuine Windows process, you may not be able to solve the problem by disabling antivirus or by adding explorer.exe to exceptions. Luckily, there is an even easier method:
  1. Search for “Command Prompt”, right-click on it, and select the “Run as administrator” option. Copy and paste the following commands and make sure you click Enter after each one.
sfc /SCANFILE=c:\windows\explorer.exe
sfc /SCANFILE=C:\Windows\SysWow64\explorer.exe
  1. If everything goes as it should, you should receive a message which should along the line:
Windows Resource Protection found corrupt files and successfully repaired them.
  1. Even if this message doesn’t appear, the problem might still be resolved so make sure you restart your computer afterwards and check to see if the issue still appears.

Solution 4: Problem with Windows Backup

This error can also appear when running Windows Backup and the error is displayed when Backup runs into the problematic file. If you have followed the instructions above and scanned your computer several times and if you are 100% sure you are not infected, the false positive may be caused by temporary Internet and cache files.
These files should be deleted on all browsers you are using before you proceed with running the Windows backup again. Follow the instructions below in order to clear browsing data for Internet Explorer and Edge at the same time.
  1. Type “Control Panel” in the search bar located at the taskbar and click on the first result.
  2. Change the View by option to large icons and locate the Internet Options section. Open it.
  1. Stay under the General tab and look under the Browsing history section.
  2. Click on Delete… and choose what you want to delete from your browser.
  3. We recommend you uncheck the first option called “Preserve Favorites website data” and check the next three; “Temporary Internet files and website files”, “Cookies and website data”, and “History”.
  4. Click on Delete and exit Control Panel.
  1. Reboot your computer and check to see if the annoying pop-up still appears.
  2. Open your Edge browser by either clicking its icon at the taskbar or by searching for it in the Start menu.
  3. After the browser opens, click on the three horizontal dots located at the top right part of the browser and select Settings.
  4. Under Clear Browsing Data section, click on Choose What To Clear.
  1. Keep the first four options checked and clear this data.
  2. The problem should gone in no time.

Comments

Popular posts from this blog

How to Fix the ‘Failed to Acquire the VirtualBox COM Object’ Error

Several users are reporting that they are unable to launch VirtualBox. The critical error message that comes up is  “Failed to acquire the VirtualBox COM object. The application will terminate”.  In some cases, the error is also accompanied by a second error message pointing towards the problem. The issue does not seem to be specific to a certain Windows version since it’s confirmed to occur on both Windows 8.1 and Windows 10. Failed to acquire the VirtualBox COM object. The application will now terminate. What is causing the ‘Failed to Acquire the VirtualBox COM Object’ error? We investigated this issue by looking at various user reports and the repair strategies that are commonly deployed successfully in this particular scenario. As it turns out, there are multiple culprits that might end up triggering this issue: VirtualBox is not installed with admin access  – Virtualbox is one of those software products that will require you to install them with a...

How to Fix Startup Repair Loop on Windows 7

Getting a  boot loop  which doesn’t let you go past the  Startup Repair  in Windows 7 is something that a lot of users have experienced, and it is most likely due to corrupt registry entries. It might be your mistake if you have messed around in the registry and changed a key you shouldn’t have, but it can also happen by itself, as Windows isn’t really immune to that kind of problems. No matter whether it is your fault or not, you will not be able to boot up Windows, as it will be stuck rebooting itself and won’t make it past the  Startup Repair  screen no matter what. However, there is a solution that begins at the Startup Repair screen, and uses the command prompt to fix the problem by backing up your files, and refreshing Windows, so follow the steps below to see how you can get out of the boot loop. Backup your old files and refresh your Windows In order to start the system in start-up repair, you will need either the windows installation ...

Fix: System Found Unauthorized Changes on the Firmware, Operating System or UEFI Drivers

Several users are struggling with the  System found unauthorized changes on the firmware error  at every startup or when trying to take their computer out of hibernation mode. Most affected users report that the issue started occurring after they installed some pending Windows updates. The issue is mostly encountered on Windows 7. The system found unauthorized changes on the firmware, operating system or UEFI drivers. Press [OK] to run the next boot device, or enter directly to BIOS Setup if there are no other boot devices installed. What is causing the System found unauthorized changes on the firmware error We investigated this particular issue by looking at various user reports. This error will occur whenever your system is checking the firmware one some computer hardware parts as part of a new security feature. To be precise, the error is occurring because not all Windows versions will support this new security feature. As it turns out, there are sev...