Операция была не успешно завершена так как файл содержит вирус как исправить виндовс 11

Ошибка Операция не была успешно завершена, так как файл содержит вирус или потенциально нежелательную программу возникает, когда вы скачиваете программы или

Операция не была успешно завершена, так как файл содержит вирус

Ошибка Операция не была успешно завершена, так как файл содержит вирус или потенциально нежелательную программу возникает, когда вы скачиваете программы или игры с интернета с недостоверных источников, особенно с торрентов, где может содержаться вирус. Это касается и легитимных программ, которые скачиваются с других сайтов, а не официальных.

Операция не была успешна завершена, так как файл содержит вирус или потенциально нежелательную программу

Встроенный Защитник Windows 11/10 или сторонний антивирус блокирует процесс установки программы, игры или копирования файлов, тем самым не дает заразиться вашему компьютеру вирусом или не желательной программой к которой у Microsoft нет доверия.

В данной инструкции разберем, что делать и как исправить ошибку в Windows 11/10, когда операция не была завершена успешно, так как в файле содержится вирус или нежелательное ПО.

1. Отключить Антивирус

  • Откройте Безопасность Windows
  • Перейдите в Защита от вирусов и угроз
  • Нажмите на Управление настройками
  • Отключите Защиту в реальном времени и Облачную защиту

Если вы используете сторонний антивирус, то в настройках отключите его или удалите полностью.

отключить безопасность Windows

2. Исключение антивируса

Если файл заблокирован антивирусом, то он не будет и в дальнейшем выполняться и выдавать все время ошибку неудачной операции с содержанием в файле вируса. По этой причине, нужно восстановить файл из заблокированных и добавить его в исключение антивируса.

  • Антивирус должен быть отключен, как в способе 1
  • Откройте Безопасность Windows или сторонний антивирус
  • Перейдите Защита от вирусов и угроз
  • Справа нажмите по Журнал защиты
  • Посмотрите имеется ли название файла, если да, то восстановите данный файл

журнал защиты карантин антивируса

  • Далее перейдите Защита от вирусов и угроз
  • Справа нажмите по Управление настройками
  • Прокрутите в самый низ и нажмите на Добавление и удаление исключений
  • Добавьте файл, папку или процесс в исключения

Добавление и удаление исключений безопасность windows

3. Восстановить проводник

Если ошибка возникает с вирусным файлом при открытии в проводнике или имеются проблемы с самим проводником, то нужно восстановить exporer.exe. Для этого, запустите командную строку от имени администратора и введите команды ниже:

  • sfc /SCANFILE=c:windowsexplorer.exe
  • sfc /SCANFILE=C:WindowsSysWow64explorer.exe

SFC восстановить отдельно файл

4. Очистка диска от ненужных файлов

Старые временные файлы могут содержать в себе вирус или со временем заразиться. В данном случае ошибка может возникать при резервном копировании самой системы. В этом случае, нужно очистить диск от ненужных файлов.

  • Нажмите Win+R и введите cleanmgr
  • Выберите диск C
  • Выделите все галочками и нажмите снизу Очистить системные файлы
  • В новом окне обратно выделите всё галочками и нажмите OK

Очистить системные файлы диска



Смотрите еще:

  • csrss.exe: Что это за процесс и является ли он вирусом в Windows?
  • На флешке не видны файлы и папки Windows 10
  • Восстановление Windows 10 с флешки
  • Не удается получить доступ к службе установщика Windows
  • Ошибка 0x800700e1 резервного копирования Windows 10

[ Telegram | Поддержать ]

Операция не была успешно завершена, так как файл содержит вирус или потенциально нежелательную программу

При работе с какими-либо файлами пользователь может столкнуться с сообщением «Операция не была успешно завершена, так как файл содержит вирус или потенциально нежелательную программу», после чего запуск указанного файла оказывается заблокирован. Причиной блокировки является системный антивирус (обычно это «Защитник Windows»), ограничивший пользовательский доступ к подозрительному файлу. Ниже разберём суть данной дисфункции и методы её решения.

  • Причины сбоя, при котором операция не завершена успешно
  • Как исправить дисфункцию «Файл содержит вирус или нежелательную программу»
  • Заключение

Ошибка операция не завершена

Причины сбоя, при котором операция не завершена успешно

Корпорация Майкрософт уделяет повышенное внимание борьбе с вредоносными вирусными программами. Вследствие чего современная Виндовс 10 обзавелась встроенным антивирусом, известным под названием «Защитник Виндовс».

По умолчанию Защитник Виндовс активирован, и постоянно проверяет пользовательский софт на наличие потенциально опасных программ. При нахождении такой программы доступ к ней блокируется, а сама вредоносная программа может быть помещена в карантин. В таком случае пользователь получает уже упомянутое сообщение, а запуск указанного файла становится невозможен.

Под подобную блокировку может попасть как вирусный файл, так и вполне безопасный софт, используемый на протяжении многих лет. В последнем случае это доставляет ряд неудобств, так как мы не можем воспользоваться проверенным софтом, необходимым нам для различных задач.

Картинка Windows Defender

Как исправить дисфункцию «Файл содержит вирус или нежелательную программу»

Наиболее простым и очевидным решением в данной ситуации является отключение защитника Виндовс. Но спешить с подобным отключением я бы не советовал, особенно в ситуации, когда на вашем ПК отсутствует постоянно работающий антивирус. В этом случае вы рискуете сделать вашу систему уязвимой для вирусных программ, что приведёт к её потенциальному выходу из строя.

Потому рекомендую выполнить следующее:

Проверьте запускаемый файл на вируса

Первым делом для исправления «Операция не была успешно завершена, так как файл содержит вирус» рекомендую проверить запускаемый файл на вирусы с целью убедиться, что Защитник Виндовс «ругается» на файл зря. Для этого можно использовать как альтернативные антивирусные программы уровня «ДокторВеб Кюрейт», так и загрузить файл на специализированный проверочный ресурс уровня virustotal.com для проверки.

Антивирус Virus Total

Добавьте проблемный файл в исключения антивируса

Если файл оказался чист, стоит добавить его в исключения «Защитника Виндовс» или установленного на вашем ПК антивируса. В случае Защитника рекомендуется нажать на «Пуск», выбрать там «Параметры», далее «Обновление и безопасность», потом «Защитник Виндовс», и затем «Открыть Центр безопасности защитника Виндовс».

Далее выберите слева «Параметры защиты от вирусов..», и внизу «Добавление или удаление исключений».

Настройки Защитника Windows

Добавьте проблемный файл в исключения

Аналогичную опцию исключений можно найти и в настройках других антивирусов.

Временно отключите ваш антивирус

Довольно эффективным способом решения проблемы «Операция не была успешно завершена» является временная деактивация антивируса. В случае Защитника Виндовс это делается следующим образом:

  1. В панели задач нажмите на кнопку поиска (с лупой), в строке запроса пишем «защита», кликаем вверху на найденную опцию «Защита от вирусов и угроз»;
  2. В открывшемся окне находим «Параметры защиты от вирусов и других угроз» и также кликаем на неё.
  3. В очередном открывшемся окне находим опцию «Защита в режиме реального времени» и деактивируем её.

Какое-то время Защитник будет деактивирован, но позже может опять включится самостоятельно (под действием очередного обновления системы). Чтобы он не включался, мы можем отключить его с помощью системного реестра.

Выполните следующее:

  • Нажмите на Win+R, введите там regedit и нажмите на ввод;
  • Перейдите по пути

пт1

  • Наведите курсор на пустую панель справа, щёлкните правой клавишей мышки, и выберите «Создать» — «Параметр DWORD 32 бита», дайте ему имя «DisableAntiSpyware» и нажмите ввод;

Создание параметра реестра

  • Дважды кликните на данном параметре, и дайте ему значение «1», после чего нажмите на «Ок». Защитник будет отключён.Настройка параметра

Обновите проблемный софт

Если антивирусное ПО продолжает сигнализировать о неблагонадёжности вашего софта, попробуйте скачать и установить его самую свежую версию. В некоторых случаях это позволяет избавиться от ошибки «Операция не была успешно завершена» на вашем ПК.

Восстановите работоспособность Эксплорера

В ряде случаев проблемы с файлом explorer.exe могут вызывать рассматриваемую в статье дисфункцию. Запустите командную строку от админа, и в ней последовательно наберите, не забывая нажимать на ввод после каждой команды:

sfc /SCANFILE=c:windowsexplorer.exe

sfc /SCANFILE=C:WindowsSysWow64explorer.exe

Выполнение данных команд может устранить ошибку «файл содержит вирус» на вашем компьютере.

Заключение

Появление сообщения «Операция не была успешно завершена, так как файл содержит вирус или потенциально нежелательную программу» сигнализирует о нахождении антивирусом (обычно это «Защитник Виндовс») потенциально небезопасного файла. Оптимальным решением в данном случае является занесение проблемного файла в исключения антивируса при условии, что пользователь уверен в чистоте данного файла. Отключать антивирус полностью не рекомендуется – это может стать причиной проникновения на пользовательских ПК потенциально опасных программ.

Can’t open a file because Windows 10 detects a virus in the file location? Learn here how to solve the “Operation did not complete successfully” error with 7 easy methods.

Let’s get started!

Operation did not complete successfully because the file contains a virus or potentially unwanted software.
If you’ve been on the internet for a while now, you probably downloaded something from a shady website. Maybe you wanted to get an application for free to try it before committing to a purchase, or just clicked on a misleading link. Whether or not the download is legitimate, Windows 10 may flag it as an infected file.

This error shows up when Windows 10’s built-in antivirus application, Windows Defender, detects a file as dangerous. The file may contain a false positive, or actual malware. In this article, we’ll explore methods to remove malware from a downloaded file, or bypass the warning if it falsely detects a safe file.

What Causes the “Operation Did Not Complete Successfully” Error Message?

Depending on your situation, the error message could come up for a few different reasons.

  1. You downloaded a genuine file, but Windows Defender detects a virus. If you downloaded something from a genuine website, it’s possible that Windows Defender detected a false positive. This is a general issue with all antivirus software — if code or behavior matches a known malware, Windows Defender may flag the file as dangerous.
  2. You downloaded an infected file. Typically, misleading links and malicious users spread files that appear genuine, but contain malware. If this happens, Windows Defender gives you the warning after protecting your computer.

The methods below will guide you to open a file and bypass the  “Operation did not complete successfully because the file contains a virus” message.

How to Fix Operation Did Not Complete Successfully Because the File Contains a Virus

Before proceeding, keep in mind that your computer may be in danger. If the file does contain malware, it may be too dangerous to open the file. If you’re not certain that the file you downloaded is genuine, run an antivirus scan and find a new, legitimate download.

Method 1. Temporarily Disable Windows Defender

If you believe that the file you downloaded is genuine, you can bypass the “Operation did not complete successfully because the file contains a virus” warning. To do this, you’ll have to temporarily disable Windows Defender, and open the file while it’s turned off.

Option 1. Disable Windows Defender in Settings

The fastest way of disabling the built-in antivirus is going to the Settings menu.

  1. Click on the Windows icon in the bottom left of your screen to bring up the Start menu.
  2. Choose Settings, or alternatively use the Windows + I shortcut.
    windows start menu
  3. Click on the Update & Security tile. This is where you can find most of your security settings.
    update ad security tile
  4. Here, switch to the Windows Security tab, and then click on Virus & threat protection.
    virus and threat protection
  5. First, click on the Manage settings link under the Virus & threat protection settings header. You’ll be redirected to a new page. Here, click on the Real-time protection toggle to turn off Windows Defender.

Try opening the file again. If you still get an error, perform the same steps and turn off Cloud-delivered protection as well. If you’re still unable to bypass the warning, you may have to disable Windows Defender using the Registry.

Option 2. Disable Windows Defender in the Registry

Some users may not be successful in disabling Windows Defender antivirus software the traditional way. If you can’t perform the method above, try and turn off the application using the Registry Editor.

  1. Open the search bar in your taskbar by clicking on the magnifying glass icon. You can also bring it up with the Windows + S keyboard shortcut.
  2. Type Registry Editor in the search box and click on the first matching search result.
    registry editor
  3. Navigate to the following key, or copy-paste it in the address bar of the Registry Editor: HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindows Defender
  4. Locate a registry entry named DisableAntiSpyware, then double click on it.
    disable antispywaare registry
  5. If you don’t see this key, right-click on any empty space and choose NewDWORD (32-bit) Value. Name the key DisableAntiSpyware, and then double-click on it to open its properties.
    registry editor: disable antispyware
  6. Set the Value data to 1 in order to disable Windows Defender and Antimalware Service Executable (MsMpEng.exe) in Windows 10.
    registry editor, disable antispyware
  7. Exit the Registry Editor and restart your computer. You may notice improvements with your device’s performance.

Once again, let us remind you that it’s risky to operate your device without having an antivirus application installed. You may become vulnerable to malware, hackers, and other types of cyberattacks. We highly recommend using Malwarebytes if you need a free and lightweight solution. We also offer Malwarebytes Premium for the best market price.

Method 2. Turn Off Third-Party Antivirus Program

Antivirus applications are known to cause issues on computers by blocking apps and services from running properly. You can test if the antivirus program you’re using at the moment is causing the error by temporarily disabling it.

Note: This method is not recommended as it is unsafe to use your computer without protection. Only proceed if you’re aware of the possible risks and have a backup of your system to revert any damage that may happen.

  1. Right-click on an empty space in your taskbar and choose Task Manager. If the Task Manager launches in compact mode, make sure to expand details by clicking on the “Mode details” button.
    task manager
  2. Switch to the Start-up tab using the header menu located at the top of the window. Find your antivirus application from the list and select it by clicking on it once.
    task manager
  3. Click on the Disable button now visible in the bottom-right of the window. This will disable the application from launching when you start your device.
  4. Restart your computer.

Method 3. Add the File or Folder to the Exclusions List

If you want to bypass the warning without having to turn off Windows Defender or your third-party antivirus, you can. Simply add the file itself, or the entire folder containing it to the exclusions list. By doing so, Defender won’t look for any suspicious files in that specific directory.

  1. Open the File Explorer and navigate to the file’s location. Click on the address bar and copy the full file path to the file with the Ctrl + C keyboard combination.
  2. Open the search bar in your taskbar by clicking on the magnifying glass icon. You can also bring it up with the Windows + S keyboard shortcut.
  3. Type in Windows Security and launch it from the search results.
    windows security
  4. Switch to the Virus & Threat Protection tab using the home screen or the menu in the left-side pane. Here, click on the Manage settings link under Virus & threat protection settings.
    virus and threat protection
  5. Under Exclusions, click the Add or remove exclusions link. You’ll be redirected to a new page.
    add and remove exclusions
  6. Click the Add an exclusion button. From the drop-down menu, select File or Folder, depending on what you want to open.
    add an exclusion
  7. Paste the path you copied from the address bar by pressing the Ctrl + V keys. Click the Select Folder button when you’re done.
    add an exclusion

After adding the file as an exclusion, you’ll be able to open it. We recommend running an antivirus scan afterward to ensure no real malware was in the file.

Method 4. Repair the File Explorer

It’s possible that the “Operation did not complete successfully because the file contains a virus” error message shows up because of a File Explorer problem. In this case, follow the steps below to repair the File Explorer.

  1. Open the search bar in your taskbar by clicking on the magnifying glass icon. You can also bring it up with the Windows + S keyboard shortcut.
  2. Type Command Prompt in the search box. When you see it in the results, right-click on it and choose Run as Administrator. If you need help, check out our How to make a local user an administrator in Windows 10 guide.
    add an exclusion
  3. When prompted by the User Account Control (UAC), click Yes to allow the app to launch with administrative permissions.
  4. Once the Command Prompt window is open, type in the following commands and press Enter after each line to execute them: 
    • sfc /SCANFILE=c:windowsexplorer.exe 
    • sfc /SCANFILE=C:WindowsSysWow64explorer.exe
      sfc/ scannow command prompt
  5. After both commands have been executed, restart your computer and see if you’re able to open the file.

Method 5. Fix Windows Backup

In some cases, the error message shows up because of temporary Internet files and cache being stored in your backups. You can easily fix this by performing the next steps.

  1. Press the Windows + R keys on your keyboard. This is going to bring up the Run utility.
  2. Type in “control” without the quotation marks and press the Enter key on your keyboard. This will launch the Control Panel application.
    run dialog box, control
  3. Change the view mode to Large icons, and then click on the Internet Options button.
    control panel internet options
  4. Stay on the General tab. Click on the Delete… button under the Browsing history heading. A new window will open.
    internet options, general tab
  5. Uncheck the Preserve Favorites website data option.
    preserve favorite website data
  6. Next, check the following options, and then click on the Delete button: 
    • Temporary Internet files and website files 
    • Cookies and website data 
    • History 
    • Download History
  7. Restart your computer and see if you’re able to open the file without a warning message. If not, you can try resetting your browser and clearing browser data, cookies, and browsing history.

 Method 6. Run the Disk Cleanup Utility

Windows 10 often creates temporary files and folders. If they accumulate, it can affect your computer and may cause misleading errors. Delete junk files using the Disk Cleanup utility to save space and fix computer problems.

  1. Open the search bar in your taskbar by clicking on the magnifying glass icon. You can also bring it up with the Windows + S keyboard shortcut.
  2. Type in Disk Cleanup and click on the first search result.
    disk clean up
  3. Select the Windows 10 system drive, and then click the OK button. Usually, the system is installed on disk C:.
    disk clean up C
  4. In the new window, you’ll see all space taken by temporary files. Make sure that Temporary Internet Files and Temporary Files are selected. You may also delete other junk files, such as Thumbnails or DirectX Shader Cache. When you’re done selecting what you want to remove, click OK.
    delete temporary files
  5. Click on the Delete Files button in the dialog box that pops up. The removal process will start and free up space on your device.
    delete temporary files

Method 7. Run an Antivirus Scan

We recommend running a security scan to ensure that you don’t have a malicious file. It can also detect if your system is not currently infected by malware. We’ll be using the built-in Windows Defender to perform a system scan, however, a more focused third-party solution may work better.

  1. Open the search bar with the Windows + S keyboard shortcut. Type Windows Security and launch it from the search results.
  2. Switch to the Virus & Threat Protection tab using the home screen or the menu in the left-side pane. Click on the Scan Options link.
    virus and threat protection
  3. Select the Full scan option. This is going to check every single file on all of your drives to ensure no threats can hide. Take note that this scan may last over 1-2 hours, depending on how many files you have on your system.
    scan computer
  4. Click on the Scan now button to begin the scan. If a threat is detected, Windows 10 will automatically quarantine or remove it entirely. You can review the scan results afterwards.

After completing these steps, you may be able to successfully open the problematic file. If the file has been removed by Windows Defender, it’s likely that the file was unsafe and misleading to begin with. In this case, finding a different download is your best bet.

Final Thoughts

That wraps up the guide to opening a file even if Windows 10 detects a virus in the file directory. We hope this helps.

In the future, be careful with what you download from the internet. Unofficial websites often hide malware and potentially unwanted programs (PUPs) in their downloads. Avoid these websites to lower the possibility of this error from happening again.

Our Help Center offers hundreds of guides to assist you if you’re in need of further help. Return to us for more informative articles, or get in touch with our experts for immediate assistance.

One More Thing

Would you like to receive promotions, deals, and discounts to get our products for the best price? Don’t forget to subscribe to our newsletter by entering your email address below! Be the first to receive the latest news in your inbox.

You May Also Like

» How To Fix System Service Exception Error In Windows 10
» Fixed: DirectX Encountered an Unrecoverable Error
» Slow Internet on Windows 10? Here’s How To Solve It

Can’t open a file because Windows 10 detects a virus in the file location? Learn here how to solve the “Operation did not complete successfully” error with 7 easy methods.

Let’s get started!

Operation did not complete successfully because the file contains a virus or potentially unwanted software.
If you’ve been on the internet for a while now, you probably downloaded something from a shady website. Maybe you wanted to get an application for free to try it before committing to a purchase, or just clicked on a misleading link. Whether or not the download is legitimate, Windows 10 may flag it as an infected file.

This error shows up when Windows 10’s built-in antivirus application, Windows Defender, detects a file as dangerous. The file may contain a false positive, or actual malware. In this article, we’ll explore methods to remove malware from a downloaded file, or bypass the warning if it falsely detects a safe file.

What Causes the “Operation Did Not Complete Successfully” Error Message?

Depending on your situation, the error message could come up for a few different reasons.

  1. You downloaded a genuine file, but Windows Defender detects a virus. If you downloaded something from a genuine website, it’s possible that Windows Defender detected a false positive. This is a general issue with all antivirus software — if code or behavior matches a known malware, Windows Defender may flag the file as dangerous.
  2. You downloaded an infected file. Typically, misleading links and malicious users spread files that appear genuine, but contain malware. If this happens, Windows Defender gives you the warning after protecting your computer.

The methods below will guide you to open a file and bypass the  “Operation did not complete successfully because the file contains a virus” message.

How to Fix Operation Did Not Complete Successfully Because the File Contains a Virus

Before proceeding, keep in mind that your computer may be in danger. If the file does contain malware, it may be too dangerous to open the file. If you’re not certain that the file you downloaded is genuine, run an antivirus scan and find a new, legitimate download.

Method 1. Temporarily Disable Windows Defender

If you believe that the file you downloaded is genuine, you can bypass the “Operation did not complete successfully because the file contains a virus” warning. To do this, you’ll have to temporarily disable Windows Defender, and open the file while it’s turned off.

Option 1. Disable Windows Defender in Settings

The fastest way of disabling the built-in antivirus is going to the Settings menu.

  1. Click on the Windows icon in the bottom left of your screen to bring up the Start menu.
  2. Choose Settings, or alternatively use the Windows + I shortcut.
    windows start menu
  3. Click on the Update & Security tile. This is where you can find most of your security settings.
    update ad security tile
  4. Here, switch to the Windows Security tab, and then click on Virus & threat protection.
    virus and threat protection
  5. First, click on the Manage settings link under the Virus & threat protection settings header. You’ll be redirected to a new page. Here, click on the Real-time protection toggle to turn off Windows Defender.

Try opening the file again. If you still get an error, perform the same steps and turn off Cloud-delivered protection as well. If you’re still unable to bypass the warning, you may have to disable Windows Defender using the Registry.

Option 2. Disable Windows Defender in the Registry

Some users may not be successful in disabling Windows Defender antivirus software the traditional way. If you can’t perform the method above, try and turn off the application using the Registry Editor.

  1. Open the search bar in your taskbar by clicking on the magnifying glass icon. You can also bring it up with the Windows + S keyboard shortcut.
  2. Type Registry Editor in the search box and click on the first matching search result.
    registry editor
  3. Navigate to the following key, or copy-paste it in the address bar of the Registry Editor: HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindows Defender
  4. Locate a registry entry named DisableAntiSpyware, then double click on it.
    disable antispywaare registry
  5. If you don’t see this key, right-click on any empty space and choose NewDWORD (32-bit) Value. Name the key DisableAntiSpyware, and then double-click on it to open its properties.
    registry editor: disable antispyware
  6. Set the Value data to 1 in order to disable Windows Defender and Antimalware Service Executable (MsMpEng.exe) in Windows 10.
    registry editor, disable antispyware
  7. Exit the Registry Editor and restart your computer. You may notice improvements with your device’s performance.

Once again, let us remind you that it’s risky to operate your device without having an antivirus application installed. You may become vulnerable to malware, hackers, and other types of cyberattacks. We highly recommend using Malwarebytes if you need a free and lightweight solution. We also offer Malwarebytes Premium for the best market price.

Method 2. Turn Off Third-Party Antivirus Program

Antivirus applications are known to cause issues on computers by blocking apps and services from running properly. You can test if the antivirus program you’re using at the moment is causing the error by temporarily disabling it.

Note: This method is not recommended as it is unsafe to use your computer without protection. Only proceed if you’re aware of the possible risks and have a backup of your system to revert any damage that may happen.

  1. Right-click on an empty space in your taskbar and choose Task Manager. If the Task Manager launches in compact mode, make sure to expand details by clicking on the “Mode details” button.
    task manager
  2. Switch to the Start-up tab using the header menu located at the top of the window. Find your antivirus application from the list and select it by clicking on it once.
    task manager
  3. Click on the Disable button now visible in the bottom-right of the window. This will disable the application from launching when you start your device.
  4. Restart your computer.

Method 3. Add the File or Folder to the Exclusions List

If you want to bypass the warning without having to turn off Windows Defender or your third-party antivirus, you can. Simply add the file itself, or the entire folder containing it to the exclusions list. By doing so, Defender won’t look for any suspicious files in that specific directory.

  1. Open the File Explorer and navigate to the file’s location. Click on the address bar and copy the full file path to the file with the Ctrl + C keyboard combination.
  2. Open the search bar in your taskbar by clicking on the magnifying glass icon. You can also bring it up with the Windows + S keyboard shortcut.
  3. Type in Windows Security and launch it from the search results.
    windows security
  4. Switch to the Virus & Threat Protection tab using the home screen or the menu in the left-side pane. Here, click on the Manage settings link under Virus & threat protection settings.
    virus and threat protection
  5. Under Exclusions, click the Add or remove exclusions link. You’ll be redirected to a new page.
    add and remove exclusions
  6. Click the Add an exclusion button. From the drop-down menu, select File or Folder, depending on what you want to open.
    add an exclusion
  7. Paste the path you copied from the address bar by pressing the Ctrl + V keys. Click the Select Folder button when you’re done.
    add an exclusion

After adding the file as an exclusion, you’ll be able to open it. We recommend running an antivirus scan afterward to ensure no real malware was in the file.

Method 4. Repair the File Explorer

It’s possible that the “Operation did not complete successfully because the file contains a virus” error message shows up because of a File Explorer problem. In this case, follow the steps below to repair the File Explorer.

  1. Open the search bar in your taskbar by clicking on the magnifying glass icon. You can also bring it up with the Windows + S keyboard shortcut.
  2. Type Command Prompt in the search box. When you see it in the results, right-click on it and choose Run as Administrator. If you need help, check out our How to make a local user an administrator in Windows 10 guide.
    add an exclusion
  3. When prompted by the User Account Control (UAC), click Yes to allow the app to launch with administrative permissions.
  4. Once the Command Prompt window is open, type in the following commands and press Enter after each line to execute them: 
    • sfc /SCANFILE=c:windowsexplorer.exe 
    • sfc /SCANFILE=C:WindowsSysWow64explorer.exe
      sfc/ scannow command prompt
  5. After both commands have been executed, restart your computer and see if you’re able to open the file.

Method 5. Fix Windows Backup

In some cases, the error message shows up because of temporary Internet files and cache being stored in your backups. You can easily fix this by performing the next steps.

  1. Press the Windows + R keys on your keyboard. This is going to bring up the Run utility.
  2. Type in “control” without the quotation marks and press the Enter key on your keyboard. This will launch the Control Panel application.
    run dialog box, control
  3. Change the view mode to Large icons, and then click on the Internet Options button.
    control panel internet options
  4. Stay on the General tab. Click on the Delete… button under the Browsing history heading. A new window will open.
    internet options, general tab
  5. Uncheck the Preserve Favorites website data option.
    preserve favorite website data
  6. Next, check the following options, and then click on the Delete button: 
    • Temporary Internet files and website files 
    • Cookies and website data 
    • History 
    • Download History
  7. Restart your computer and see if you’re able to open the file without a warning message. If not, you can try resetting your browser and clearing browser data, cookies, and browsing history.

 Method 6. Run the Disk Cleanup Utility

Windows 10 often creates temporary files and folders. If they accumulate, it can affect your computer and may cause misleading errors. Delete junk files using the Disk Cleanup utility to save space and fix computer problems.

  1. Open the search bar in your taskbar by clicking on the magnifying glass icon. You can also bring it up with the Windows + S keyboard shortcut.
  2. Type in Disk Cleanup and click on the first search result.
    disk clean up
  3. Select the Windows 10 system drive, and then click the OK button. Usually, the system is installed on disk C:.
    disk clean up C
  4. In the new window, you’ll see all space taken by temporary files. Make sure that Temporary Internet Files and Temporary Files are selected. You may also delete other junk files, such as Thumbnails or DirectX Shader Cache. When you’re done selecting what you want to remove, click OK.
    delete temporary files
  5. Click on the Delete Files button in the dialog box that pops up. The removal process will start and free up space on your device.
    delete temporary files

Method 7. Run an Antivirus Scan

We recommend running a security scan to ensure that you don’t have a malicious file. It can also detect if your system is not currently infected by malware. We’ll be using the built-in Windows Defender to perform a system scan, however, a more focused third-party solution may work better.

  1. Open the search bar with the Windows + S keyboard shortcut. Type Windows Security and launch it from the search results.
  2. Switch to the Virus & Threat Protection tab using the home screen or the menu in the left-side pane. Click on the Scan Options link.
    virus and threat protection
  3. Select the Full scan option. This is going to check every single file on all of your drives to ensure no threats can hide. Take note that this scan may last over 1-2 hours, depending on how many files you have on your system.
    scan computer
  4. Click on the Scan now button to begin the scan. If a threat is detected, Windows 10 will automatically quarantine or remove it entirely. You can review the scan results afterwards.

After completing these steps, you may be able to successfully open the problematic file. If the file has been removed by Windows Defender, it’s likely that the file was unsafe and misleading to begin with. In this case, finding a different download is your best bet.

Final Thoughts

That wraps up the guide to opening a file even if Windows 10 detects a virus in the file directory. We hope this helps.

In the future, be careful with what you download from the internet. Unofficial websites often hide malware and potentially unwanted programs (PUPs) in their downloads. Avoid these websites to lower the possibility of this error from happening again.

Our Help Center offers hundreds of guides to assist you if you’re in need of further help. Return to us for more informative articles, or get in touch with our experts for immediate assistance.

One More Thing

Would you like to receive promotions, deals, and discounts to get our products for the best price? Don’t forget to subscribe to our newsletter by entering your email address below! Be the first to receive the latest news in your inbox.

You May Also Like

» How To Fix System Service Exception Error In Windows 10
» Fixed: DirectX Encountered an Unrecoverable Error
» Slow Internet on Windows 10? Here’s How To Solve It

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Операция была не успешно завершена так как файл содержит вирус как исправить windows 11
  • Операцию не удалось завершить поскольку на томе имеются ошибки выполните программу chkdsk
  • Организационные ошибки это
  • Операционные ошибки эксперта
  • Опухшее лицо после пьянки как исправить

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии