Lỗi operation did not complete successfully because the file contains a virus
Can’t open a file because Windows 10 detects a virus in the file location? Learn here how to solve the “Operation did not complete successfully” error with 7 easy methods. Show
Let's get started!
This error shows up when Windows 10’s built-in antivirus application, Windows Defender, detects a file as dangerous. The file may contain a false positive, or actual malware. In this article, we’ll explore methods to remove malware from a downloaded file, or bypass the warning if it falsely detects a safe file. What Causes the “Operation Did Not Complete Successfully” Error Message?Depending on your situation, the error message could come up for a few different reasons.
The methods below will guide you to open a file and bypass the “Operation did not complete successfully because the file contains a virus” message. How to Fix Operation Did Not Complete Successfully Because the File Contains a VirusBefore proceeding, keep in mind that your computer may be in danger. If the file does contain malware, it may be too dangerous to open the file. If you’re not certain that the file you downloaded is genuine, run an antivirus scan and find a new, legitimate download. Method 1. Temporarily Disable Windows DefenderIf you believe that the file you downloaded is genuine, you can bypass the “Operation did not complete successfully because the file contains a virus” warning. To do this, you’ll have to temporarily disable Windows Defender, and open the file while it’s turned off. Option 1. Disable Windows Defender in SettingsThe fastest way of disabling the built-in antivirus is going to the Settings menu.
Try opening the file again. If you still get an error, perform the same steps and turn off Cloud-delivered protection as well. If you’re still unable to bypass the warning, you may have to disable Windows Defender using the Registry. Option 2. Disable Windows Defender in the RegistrySome users may not be successful in disabling Windows Defender antivirus software the traditional way. If you can’t perform the method above, try and turn off the application using the Registry Editor.
Once again, let us remind you that it's risky to operate your device without having an antivirus application installed. You may become vulnerable to malware, hackers, and other types of cyberattacks. We highly recommend using Malwarebytes if you need a free and lightweight solution. We also offer Malwarebytes Premium for the best market price. Method 2. Turn Off Third-Party Antivirus ProgramAntivirus applications are known to cause issues on computers by blocking apps and services from running properly. You can test if the antivirus program you’re using at the moment is causing the error by temporarily disabling it. Note: This method is not recommended as it is unsafe to use your computer without protection. Only proceed if you’re aware of the possible risks and have a backup of your system to revert any damage that may happen.
Method 3. Add the File or Folder to the Exclusions ListIf you want to bypass the warning without having to turn off Windows Defender or your third-party antivirus, you can. Simply add the file itself, or the entire folder containing it to the exclusions list. By doing so, Defender won’t look for any suspicious files in that specific directory.
After adding the file as an exclusion, you’ll be able to open it. We recommend running an antivirus scan afterward to ensure no real malware was in the file. Method 4. Repair the File ExplorerIt’s possible that the “Operation did not complete successfully because the file contains a virus” error message shows up because of a File Explorer problem. In this case, follow the steps below to repair the File Explorer.
Method 5. Fix Windows BackupIn some cases, the error message shows up because of temporary Internet files and cache being stored in your backups. You can easily fix this by performing the next steps.
Method 6. Run the Disk Cleanup UtilityWindows 10 often creates temporary files and folders. If they accumulate, it can affect your computer and may cause misleading errors. Delete junk files using the Disk Cleanup utility to save space and fix computer problems.
Method 7. Run an Antivirus ScanWe recommend running a security scan to ensure that you don’t have a malicious file. It can also detect if your system is not currently infected by malware. We’ll be using the built-in Windows Defender to perform a system scan, however, a more focused third-party solution may work better.
After completing these steps, you may be able to successfully open the problematic file. If the file has been removed by Windows Defender, it’s likely that the file was unsafe and misleading to begin with. In this case, finding a different download is your best bet. Final ThoughtsThat wraps up the guide to opening a file even if Windows 10 detects a virus in the file directory. We hope this helps. In the future, be careful with what you download from the internet. Unofficial websites often hide malware and potentially unwanted programs (PUPs) in their downloads. Avoid these websites to lower the possibility of this error from happening again. Our Help Center offers hundreds of guides to assist you if you’re in need of further help. Return to us for more informative articles, or get in touch with our experts for immediate assistance. One More ThingWould you like to receive promotions, deals, and discounts to get our products for the best price? Don’t forget to subscribe to our newsletter by entering your email address below! Be the first to receive the latest news in your inbox. You May Also Like» How To Fix System Service Exception Error In Windows 10 |