How to Eliminate “Operation did not Complete Successfully” Error Message in Windows 10

Most antivirus programs, including Windows Defender, can sometimes activate when you activate a file that you suspect is malicious or contains a virus. You will get an error message: “The operation failed because the file contains a virus.”

What is the reason for the “Operation failed” message?

  • 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.
  • You have downloaded the original file, but Windows Defender has detected a virus: If you have 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.

How can I troubleshoot the “Operation failed” message?

Perform a full scan

  1. Go to the Start icon and type Windows Security.
  2. Under Virus and Threat Protection, click on Scan Options.
  3. Enable the Full Scan option and click the Scan Now button.

Disable Windows Defender

  1. Go to the Start icon and click Settings.
  2. Select the Update and security option.
  3. In the left pane, click Windows Security.
  4. Select Virus and Threat Protection.
  5. In the Virus and Threat Protection settings section, click Manage settings.
  6. Uncheck Real-time protection.
  7. Click Yes to confirm.
  8. Scroll down and uncheck Cloud Protection.
  9. Press Yes again to confirm.

Updating Windows

  1. Go to the Start icon and click Settings.
  2. Select Update and security.
  3. Select the Windows Update option.
  4. Click Check for updates.
  5. If updates are available, download and install them.

Disable third-party antivirus applications

  1. Use Ctrl + Shift + Esc to open the Task Manager.
  2. Switch to the Start tab.
  3. Find your antivirus application in the list of options.
  4. Select the application and click the Disable button.
  5. Finally, restart your computer.

Perform a system restore

  1. Go to the Start icon and type Control Panel.
  2. Find and select the Restore option.
  3. Click Open System Restore, and then click Next.
  4. Select the Show other restore points check box.
  5. Select the last restore point and then click Next -> Done.
  6. In the pop-up window, click Yes to confirm.