Fix: Operation Did Not Complete Successfully Because of a Virus [2022]


We often get asked ‘How to fix operation did not complete successfully because of a virus or potentially unwanted program?’

Most people know the frustration of a computer that has been infected with a virus. The machine runs slowly, programs don’t work correctly, and it can be difficult to get rid of the infection.

What many people may not realize is that their own bodies can suffer from a virus in much the same way. Just like a computer, when our bodies are infected, they can run slowly, have difficulty functioning properly, and be hard to get rid of.

In this article, we’ll discuss what it means to have a virus in your body and how it can impact your health. We’ll also provide some tips on how to get rid of a virus naturally

What to do if you receive the “Operation did not complete successfully because of a virus” message in Windows 10 or Windows 11

If you see the “Operation did not complete successfully because of a virus” message, it means that your computer has been infected with a virus. This can be a serious problem, as viruses can damage your files and even steal personal information. However, there are some steps you can take to remove the virus and protect your computer in the future.

  • First, run a full scan of your computer using an antivirus program. This will remove the virus and any infected files.
  • Next, change any passwords that may have been compromised by the virus.
  • Finally, make sure to keep your antivirus software up to date, as new viruses are constantly being created. By following these steps, you can protect your computer from further infection.

How to determine if your computer is infected with a virus?

There are several telltale signs that your computer may be infected with a virus. If you notice any of the following, it’s time to run a virus scan:

  • Your computer is running slower than usual.
  • You’re seeing more pop-up ads than usual.
  • You’re getting redirected to strange websites when you click on links.
  • You’re seeing new toolbar items or icons that you don’t recognize.
  • Strange files or programs have appeared on your computer without your knowledge.

If you suspect that your computer is infected, the first step is to run a virus scan. This will help to confirm whether or not there is a problem and can also remove any malicious software that may be present. There are many great anti-virus programs available for free online, so there’s no excuse not to run a scan if you think your computer may be at risk.

What to do if you received the message “Operation did not complete successfully because of a virus” message but you wish to run it anyway.

Disable Windows Defender / 3rd-party antivirus program

1.Press the Windows logo key + type in “Windows Security”


2. Click the Virus & threat protection icon.


3.Click Manage settings under Virus & threat protection settings.

4.Turn off Real-time protection or Limited Periodic Scanning, or both. If you choose to turn off both, your device will no longer be protected from malware and other threats.


We don’t recommend this unless you have another virus protection program installed on your device or you’re confident that your device isn’t at risk for malware and viruses.

Add an exclusion in Windows Defender/3rd-party Antivirus Program

You can use the Exclusions feature in Windows Defender to exclude certain files, folders, file types, and process from scanning. This can be useful if you trust a file or application and don’t want it to be scanned by Windows Defender. You can also use exclusions if you think that a benign file is being incorrectly flagged as malware.


To add an exclusion in Windows Defender, open the app and go to the Settings tab. Under the “Exclusions” heading, click “Add an exclusion.” You will then be able to choose the type of exclusion you want to add. Once you have added an exclusion, Windows Defender will no longer scan the specified file, folder, or process.

Repair the File Explorer

SCANFILE is a command-line tool that can be used to repair the File Explorer in Windows 10. To use SCANFILE, open the Command Prompt and type the following command: SCANFILE /R. This will scan the File Explorer for corruptions and attempt to repair them. In some cases, SCANFILE may not be able to repair the File Explorer completely. In this case, you can try using the SFC tool. To use SFC, open the Command Prompt and type the following command: SFC /SCANNOW. This will scan all of the files on your hard drive and attempt to repair any that are corrupted. If SFC is unable to repair the File Explorer, you can try using a third-party utility.

Run Disk Cleanup Tool

The Disk Cleanup tool helps you free up space on your hard disk by searching for files that you can safely delete. It can also compress files to help save space. You can access the Disk Cleanup tool by clicking Start, pointing to All Programs, pointing to Accessories, point to System Tools, and then clicking Disk Cleanup. When you start the Disk Cleanup tool, it analyzes your hard disk to determine which files are taking up the most space.


The Disk Cleanup tool shows you a description of the types of files that it can safely delete, and all you have to do is select the ones you want to delete. The more files you delete, the more disk space you’ll free up. Keep in mind that some of the files that the Disk Cleanup tool identifies for deletion are temporary files that Windows creates automatically when you use certain features, such as the Offline Files feature.

These temporary files are safe to delete. However, if you’re unsure about a file, don’t delete it. Although it’s highly unlikely that anything bad will happen if you delete a temporary file, there’s always a chance that you might delete a file that you need. So if you’re not sure about a file, don’t delete it!

If you can’t fix it on your own, get in touch with a computer expert.

I am a computer engineer holding a bachelor's degree in Computer Science, complemented by a Master's in Business Administration from University of Strathclyde, Scotland. I currently work as a Senior IT Consultant in Melbourne, Australia. With over 15 years of...