How to Solve “Operation Did Not Complete” Virus Issue in Windows 10

If you activate files that contain viruses, they will infect your system. This is why most antivirus programs, including Windows Defender, do not allow you to open a file or run a program associated with it if they suspect that the file/program may cause a virus attack.

In this case, you will get an error message – Operation failed because the file contains a virus.

What is the cause of the “Operation failed” virus problem in Windows 10?

  • You downloaded the original file, but Windows Defender detected a virus: If you downloaded something from a genuine website, Windows Defender may have detected a false positive. This is a common problem for all antivirus programs – if the code or behavior matches known malware, Windows Defender may consider the file dangerous.
  • You have downloaded an infected file: As a rule, invalid links and malicious users distribute files that look genuine but contain malware. In this case, Windows Defender displays a warning after protecting your computer.

How to fix the “Operation incomplete” virus error in Windows 10?

Turn off Windows Defender

  1. Locate Windows Defender Shield among many other applications in the Start menu.
  2. Alternatively, press the Win+I key combination to open the settings.
  3. Click on Update and Security.
  4. Click on the Windows Security tab.
  5. Click on Virus and Threat Protection.
  6. Under Virus and Threat Protection settings, tap Manage settings.
  7. On the page that appears, click Real-time Protection to disable Windows Defender.

Disable installed third-party antivirus programs

  1. Click the Windows icon.
  2. Locate and open Task Manager
  3. In the main menu of the page, click the Autorun tab.
  4. Select the antivirus program from the list of running programs.
  5. Right-click it and select Disable.
  6. Reboot the system for the new settings to take effect.

Adding an exception list in antivirus

  1. Open Windows Defender
  2. Find the Virus and Threat Protection option.
  3. Select Exceptions.
  4. Select the Add Exception option and select the folder you want to exclude.
  5. After completing this step, exit the page and restart your system.

Restore File Explorer

  1. Click the Windows icon.
  2. Type Command Prompt in the search box.
  3. Right-click on the search results and select Run as administrator.
  4. Be sure to enter Yes in the User Account Control field.
  5. Enter the following commands in sequence:
    • SFC/SCANFILE=C:\Windows\explorer.exe
    • SFC/SCANFILE=C:\WindowsSysWow64\explorer.exe
  6. Exit both commands and reboot the computer to see the new changes and messages.

Frequently Asked Questions

If you are absolutely sure that the downloaded file is genuine and does not contain a virus, you can bypass the warning message "The operation could not be completed successfully because the file contains a virus". To do this, you must temporarily disable Windows Defender and open the file while it is disabled.

  1. Open the Windows Start menu.
  2. Type Windows Security.
  3. Press the "Enter" key on your keyboard.
  4. Click on "Virus and Threat Protection" in the left action bar.
  5. Scroll to Virus and Threat Protection Settings and click Manage Settings.
  6. Press the Shift key under Real-time Protection to temporarily disable Windows Defender.

If you downloaded something from a genuine site, Windows Defender may have detected a false positive. This is a common problem with all antivirus software - if the code or behavior matches known malware, Windows Defender may classify the file as dangerous. In addition, invalid links and malicious users distribute files that appear to be genuine but contain malware. In this case, Windows Defender issues a warning after protecting your computer.