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 Format/Indent XML Files in Notepad++

Notepad++ is a free text and source code editor that is mostly used by programmers. It is an advanced alternate version of the default notepad which supports 50 programming, scripting and markup languages. It allows a user to edit codes within multiple tabs in a single window. However, it lacks the formatting for XML files or XML code. Users will find it difficult to edit or read the XML code without the correct format for code. How to Format/Indent XML Files on Notepad++ What is XML File? XML (stands for eXtensible Markup Language) which is a language designed to store and transport data. XML files are just plain text files that can’t do anything on their own. Custom tags are used in XML files to define objects and the data within each object. It defines a set of rules for encoding documents in such a format that both humans and machines could read. XML is similar to HTML but the difference is that HTML defines how data looks, while XML defines what data is. XML Code samp...

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 ‘An Error Has Occurred in the Script On This Page’

Script errors are still a common occurrence among Internet surfers. And it’s not just restricted to web browsers as you might think. The  ‘An error has occurred in the script of this page’  is mostly reported with Internet Explorer, but there are a lot of programs that use IE scripts, so the issue is reported in conjunction with a lot of different application. As it turns out, the issue is not exclusive to a certain Windows version since it’s confirmed to occur on all the most recent versions including Windows 7, Windows 8.1 and Windows 10. An error has occurred in the script on this page. What is causing the  ‘An error has occurred in the script of this page’  issue? We investigated this particular issue by looking at various user reports and the repair strategies that are most commonly used to resolve this problem. Based on our investigations, there are several different culprits that might be responsible for this issue: Java is missing from the Wind...