How To'sWindows

6 Fixes For “Operation Did Not Complete Successfully” Virus on Windows

I was downloading a file on Windows 10, and suddenly I received a message that said, “operation did not complete successfully because the file contains a virus“. Does the same thing happen to you? If yes, you are at the right place.

I extensively researched fixing this error and found that this error pops up in two ways. First, as I mentioned above. And the second one says, “operation did not complete successfully because the file contains a virus or potentially unwanted software“.

Depending on whether you’re using Windows 10 or Windows 11, you can see any of these messages. But, both messages are indications of the same error. The following fixes are applicable no matter which error message you receive,

The Causes For The “Operation did not complete successfully” Pop-up

There might be two possibilities when you download a file from the web.

  • You might download an unprotected file that is dangerous for your PC. If you are unaware that the website is substantial or not, you should not bypass the message“operation did not complete successfully because of a virus.”
  • Sometimes there is a possibility that you download a genuine file, but the antivirus mismatches the code that is given to it for susceptible files. In this case, the Windows defender gives you a message.

Fixes For The Windows Defender Virus Alert

Before we come up with the fixes for bypassing the message that “operation did not complete successfully virus windows 10.” You should keep in mind that downloading a risky file may harm your PC. If you are not sure whether that file is genuine or not, run a scan or download another authentic file.

1. Temporarily Disable Windows Antivirus System

You can avoid the virus alert message by temporarily disabling the windows defender system. To do this follow the below-given steps:

  1. Press the Windows Icon in the bottom left corner of your screen.
  2. This will show you a Start Menu.
  3. Select the Setting or click the Windows + I shortcut.
  4. Select the Update and Security.
  5. Tap on the Windows Security.
  6. Then Press on the Virus & Threat Protection.
  7. Select the Manage Settings link that will proceed you to a new page.
  8. From here press the Real-Time Protection toggle to turn it off.

Try to open your file if the issue remains the same power of the Cloud-delivered protection. If you are still facing the problem you have to disable windows antivirus software by using the Registry.

  1. Launch the Search Bar by pressing on the magnifying glass next to the windows icon.
  2. Write the Registry Editor and search for it.
  3. Type or Copy Paste HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows
  4. Defender on the search bar of the Registry editor.
  5. Find the DisableAntiSpyware and double-press it.
  6. If you don’t find it, double-press the screen and choose New → DWORD (32-bit) Value.
  7. Name the key DisableAntiSpyware and double press on it.
  8. Set the value to 1 to disable the windows defender system.
  9. Exit the registry editor and restart your device.

2. Switch Off Third-Party Antivirus Program

It might be possible that your Windows shows a virus alert of “operation did not complete successfully virus windows 10.” This happens because sometimes you have antivirus programs installed on your computer. You can check it by temporarily disabling it.

  1. Right-press on the empty screen and select Task Manager. Open it in a wide mode if it appears in a small mode.
  2. Select the Startup tab by the header menu at the top of the windows.
  3. Locate your antivirus application and choose it.
  4. Press the disabled icon on the bottom right corner of the window.
  5. Restart your PC.

3. Put The Downloaded File On the Exclusion List

If you are hesitating to turn off the Windows defender system and third-party antivirus software, the best option is to add the downloaded file or folder to the exclusion list. In this way, your file will not be detected by any Antivirus software.

  1. Launch the file explorer and locate the file by copying the full file path with Ctrl + C in the address bar.
  2. Choose the search bar by selecting the magnifying glass icon close to the windows option on the bottom left of your screen.
  3. Write Windows Security and open it.
  4. Click on Virus & Threat Protection from the menu bar.
  5. After that press the Manage Settings option.
  6. Below the Exclusions, press Add or remove exclusions. You will appear on a new page.
  7. Select the Add on exclusion icon.
  8. Choose a File or Folder depending on your need.
  9. Paste the path you copied from the address bar by pressing Ctrl + V shortcut.
  10. Press the Select Folder icon when done.

4. Rebuild The File Explorer

There might be a possibility that you receive a virus awareness statement because of any problem in your File Explorer. You can repair it by performing these steps:

  1. Launch the search bar by pressing the magnifying glass on the bottom left corner of your screen.
  2. Search for the Command Prompt.
  3. After finding it right click on it and select Run as Administrator.
  4. If provoked by the User Account Control, press Yes to execute the app with permission.
  5. When the Command Prompt window is opened write the following commands and click on Enter.
    After this restart your PC and check if the issue is resolved or not.

5. Check Windows Backup

Sometimes there might be an issue with the cache or corrupted files stored in your windows backup. This might be restricting you to download any file from the web. Attend these points to solve this:

  1. Click Windows + R on the keyboard. This will bring up the Run Utility.
  2. Write Control and click on Enter on the keyboard. This will open the Control Panel Application.
  3. Select Internet Options from the menu list.
  4. Remain on the General bar and press the Delete option.
  5. This will launch a new window.
  6. Unmark the Preserve Favourites website data from the menu.
  7. Mark the following ones
    Cookies and website data
    Download History
    Temporary Internet files and website files
  8. After doing this press the delete option.
  9. Restart your PC and check if you are still receiving message alerts or not.

6. Perform An Antivirus Scan

One last option that is most preferable for your security too. Perform an antivirus scan that will detect any brutal file that you might have downloaded on your PC.

  1. Launch the search bar.
  2. Write Windows Security and press Enter.
  3. Choose the Virus & Threat Protection bar.
  4. Select the Scan Options.
  5. Click on the Full scan option. This will check all the corrupted files on your PC.
  6. This scan will be continued for 1-2 hours.
  7. Press on Scan Now.

If any virus is detected, Windows will automatically rectify it. You can check for scan results afterwards. After this, you will get to know whether the file was saved or not. This will be a worthwhile option for your PC.


I have provided all the methods to avoid windows virus alert messages in this post. You can bypass the notification by disabling the windows defender system and third-party antivirus program. More of this, you can also save your PC by scanning.

Our team of experts tests the techniques given in this post. You can easily count on us in your time of need. I hope I have given you a better option to choose to recoup your PC from corrupted files.

Syeda Maryam Gilani

Maryam Gilani is a technology lover. Her interest in IT, games, and CS inspires her to write tech articles. If not writing, you can find her reading technology-related content and exploring more about the digital world.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button