Home » How-To » How to Fix “Operation did not complete successfully because the file contains a virus or potentially unwanted software”

How to Fix “Operation did not complete successfully because the file contains a virus or potentially unwanted software”

Are you getting an “Operation did not complete successfully” error?

Here’s the second part of the error, “Because the file contains a virus or potentially unwanted software”.

The error message happens when you’re trying to download a file that might contain a virus.

If the file you’re trying to download is safe, it means that you’ve got the error message by mistake.

In this guide, you’ll learn how to fix “Operation did not complete successfully because the file contains a virus or potentially unwanted software” on Windows.

Why did the operation not complete on Windows?

Operation did not complete successfully because the file contains a virus or potentially unwanted software

The operation was not completed successfully because the file that you’re trying to download might contain a virus.

This happens because you’ve enabled the “Real-time protection” setting in your virus and threat protection setting.

This setting is enabled by default by Windows Security to protect your device.

Real-time protection will stop potential viruses or malware from installing or running on your device.

However, if you know that the file that you’re trying to download is safe, you can temporarily disable the setting.

How to fix “Operation did not complete successfully because the file contains a virus or potentially unwanted software”

Here’s how to fix “Operation did not complete successfully” on Windows:

  1. Delete the file/app that you’ve just downloaded.
  2. Search for “Virus & threat protection” using Windows Search and open it.
  3. Scroll down to “Virus and threat protection settings” and select “Manage settings”.
  4. Turn off “Real-time protection”.
  5. Download the file/app again!

Important: If you’re still getting the error message, you need to reinstall the file/app again after you’ve disabled real-time protection to fix the issue.

Further reading

How to Fix “Windows protected your PC” Pop Up

How to Fix “Error downloading the file content” in Outlook

How to Fix Microphone too Quiet in OBS

About the author

Lim How Wei

Lim How Wei is the founder of followchain.org, with 8+ years of experience in Social Media Marketing and 4+ years of experience as an active investor in stocks and cryptocurrencies. He has researched, tested, and written thousands of articles ranging from social media platforms to messaging apps.

Lim has been quoted and referenced by major publications and media companies like WikiHow, Fast Company, HuffPost, Vice, New York Post, The Conversation, and many others. One of his articles about the gig economy was quoted by Joe Rogan who hosts The Joe Rogan Experience (arguably the most popular podcast in the world), in the This Past Weekend podcast by Theo Von.

In his free time, Lim plays multiple games like Genshin Impact, League of Legends, Counter-Strike, Hearthstone, RuneScape, and many others. He creates guides, walkthroughs, solutions, and more on games that he plays to help other players with their progression.