Fix: Operation Did Not Complete Successfully [Virus, PUP]

Check simple solutions that work for all users

Reading time icon 5 min. read


Readers help support Windows Report. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help Windows Report sustain the editorial team Read more

Key notes

  • The Operation did not complete successfully error can affect a wide range of files and prevent them from opening.
  • This usually happens when a similar file has been found to act as a malware on other PCs.
  • To fix things, you can add an exclusion, run the SFC scan, or disable Windows Defender, amongst other solutions.
fix operation did not complete successfully in Windows

An average home computer stores many files, sometimes in millions. Some are a part of Windows, while others are manually added. And when trying to run the latter, users often come across the Operation did not complete successfully error.

The complete error message reads Operation did not complete successfully because the file contains a virus or potentially unwanted software.

While the error does put you in a fix, there’s a high chance that the concerned file is completely safe and has been incorrectly identified as a virus or PUS by the built-in Windows Defender. So, let’s find out all about the problem and the solutions that work.

BEST ANTIVIRUS WE RECOMMEND

Why does Windows say Operation did not complete successfully?

Here are a few reasons you might be getting the error:

  • File behavior matches a known malware: You often get the error when a file similar to the one you are trying to run is malware.
  • File downloaded from an unreliable source: If the file has been downloaded from an unreliable source, it could rightly be flagged, and you should not run it without verifying the same.
  • Issues with Windows Defender: Often, the problem arises due to corrupt system files, which leads to issues with Windows Defender and, thus, the error.

How do I fix the Operation did not complete successfully error?

Before we head to the slightly complex solutions, try these:

  • Your primary approach, when faced with the error, should be to verify if the file is indeed safe. A quick way would be to scan it using a reliable third-party antivirus or check the Internet.
  • If there are any Windows updates available, install them. Maybe Microsoft Defender has a bug and needs a patch.
  • If the error appears only when running files of a particular program, update it.
  • Disable all third-party antivirus installed on the PC and, for a while, just rely on Windows Defender. If you don’t get the Operation did not complete successfully error anymore, your antivirus was responsible for it.

If these don’t work, head to the fixes listed next.

1. Add an exclusion

  1. Press Windows + S to open Search, type Windows Security in the text field, and then click on the relevant search result.windows security
  2. Click on Virus & threat protection.virus & threat protection to fix operation did not complete successfully
  3. Now, click on Manage settings under Virus & threat protection settings.manage settings
  4. Scroll down and click on Add or remove exclusions under Exclusions.add or remove exclusions
  5. Click Yes in the UAC prompt that appears.
  6. Click on the Add an exclusion button, and choose File from the menu.add an exclusion to fix operation did not complete successfully
  7. Browse to locate the file, select it, and click on Open.file

That’s it! After the file has been added as an exclusion, you shouldn’t see the Operation did not complete successfully error message again for it.

2. Disable Windows Defender

  1. Press Windows + R to open Run, type regedit in the text field, and hit Enter.registry
  2. Click Yes in the UAC prompt.
  3. Paste the following path in the address bar and hit Enter:HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defenderpath
  4. Right-click on the empty portion, hover the cursor over new, select DWORD (32-bit) Value, and name it DisableAntiSpyware.DWORD 32-bit
  5. Now, double-click on the newly created entry.disableantispyware to fix operation did not complete successfully
  6. Enter 1 under Value data and click on OK.value data
  7. Once done, restart the computer for the changes to come into effect.

If you are facing the Operation did not complete successfully error with several files, manually adding exclusions would be time-consuming. Instead, an easier option is to temporarily disable Windows Defender. Just make sure not to download any files in the meanwhile.

3. Run the SFC scan

  1. Press Windows + R to open Run, type cmd, and hit Ctrl + Shift + Enter.command prompt
  2. Click Yes in the prompt.
  3. Now, paste the following commands individually and hit Enter after each:sfc /SCANFILE=C:windowsexplorer.exe sfc /SCANFILE=C:WindowsSysWow64explorer.exesfc scan to fix operation did not complete successfully

If this scanning method doesn’t seem to solve the issue, you should consider an advanced antivirus like ESET HOME Security Essential.

It has an advanced machine learning AI feature that continuously scans for signatures and blocks them the moment they look suspicious, besides providing security over the network.

Get ESET HOME Security Essential

4. Use Disk Cleanup

  1. Press Windows + S to open Search, type Disk Cleanup, and click on Run as administrator.disk cleanup
  2. Select C: from the Drives dropdown menu, and click on OK to proceed.c
  3. Now, tick the checkboxes for all the temporary files here, and click OK.temporary files
  4. Finally, click Delete Files in the confirmation prompt and wait for the process to complete.delete files to fix operation did not complete successfully

In many cases, the Operation did not complete successfully error appeared due to problematic temporary files on the PC, so clear them to fix things. And make sure to delete the Temporary Windows installation files.

5. Perform an in-place upgrade

  1. Go to Microsoft’s official website, select Windows 11 (multi-edition ISO for x64 devices) under Download Windows 11 Disk Image (ISO) for x64 devices, and click Download.download
  2. Choose English from the dropdown menu, and click Confirm.english
  3. Click on the link presented here.download to fix operation did not complete successfully
  4. After the ISO file is downloaded, double-click on it, and choose Open.open
  5. Now, run the setup.exe file.setup.exe
  6. Click Yes in the UAC prompt.
  7. On the Install Windows 11 page, click Next to proceed.next
  8. Click Accept to agree to the notices and license terms.accept
  9. Verify that the setup reads Keep personal files and apps, and click on Install.in-place upgrade to fix operation did not complete successfully

That’s it! An in-place upgrade should help you fix the Operation did not complete successfully error for good. But how do you ensure that it doesn’t appear again?

Also, before you leave, find out how to make Windows 11 faster and get the best performance. And if you happen to encounter the Windows error code 0x800700E1: Virus Detected, our guide will help you too.

If you have any queries or want to share a solution not listed here, drop a comment below.

User forum

1 messages