Go to Windows Security > Virus & Threat Protection > Manage prefs and turn off “Real-Time Protection.”

Unfortunately, the error will keep popping up until you apply a fix and resolve it.

We’ll show you what to do.

A Windows operation did not complete virus error.

Mahesh Makvana / How-To Geek

What Is the Operation Did Not Complete Error?

Your file may be infected with a virus, triggering your antivirus to block your access.

If yours is anemail attachment, ask the sender to re-send you the file using another email account.

Choose “Virus & Threat Protection."

However, you should be extremely careful with files sent via email becauseemail addresses can be spoofed.

You should only do this if you know what you’re doing and trust the file 100%.

In the app, select “Virus & Threat Protection.”

Select “Manage Settings."

In the “Virus & Threat Protection configs” section, click “Manage configs.”

Turn off the “Real-Time Protection” toggle to disable your antivirus protection.

When you’re ready to real-time protection, turn on the toggle again.

Disable “Real-Time Protection."

In the “User Account Control” prompt that opens, select “Yes.”

You should then enable real-time protection again as soon as possible.

Related:How To Uninstall, Disable, and Remove Windows Defender

Solution 3.

Choose “Add or Remove Exclusions."

Then, in the “Virus & Threat Protection tweaks” section, select “Manage tweaks.”

To add your file to the whitelist, you’ll have to first disable your antivirus protection.

Do that by toggling off the “Real-Time Protection” option.

Select Add an Exclusion > File.

Then, in the “User Account Control” prompt, select “Yes.”

After doing that, scroll down the page to the “Exclusions” section.

Here, click “Add or Remove Exclusions.”

Select the file to exclude.

In the “User Account Control” prompt, select “Yes.”

Then, click Add an Exclusion > File.

In the “Open” window, navigate to the folder where your file is located.

Click “Run as Administrator."

Double-nudge the file to add it to your antivirus' whitelist.

Solution 4.

Do that byopening an elevated Command Prompt window.

Fix File Explorer.

In Command Prompt, throw in the following command and press Enter.

This command checks if File Explorer’s executable file is corrupt.

it’s possible for you to then launch your file, and it will open without any issues.

And that’s how you get around the Windows error that prevents you from opening your files.

We hope the guide helps you out.