Как выключить защитник windows 10 через cmd

Windows Defender — встроенная антивирусная программа в операционной системе Windows, которая защищает устройство от вредоносного программного обеспечения и других угроз. Однако бывают ситуации, когда необходимо временно отключить защиту, например, для установки программного обеспечения, которое может быть заблокировано антивирусом, или для выполнения задач, требующих полного контроля над системой. В этом руководстве расскажем, как отключить антивирус Windows, обеспечив при этом максимальную безопасность вашего устройства.

Важные моменты перед отключением

Перед тем как отключить Windows Defender, необходимо учитывать несколько ключевых аспектов:

Риски безопасности

Временное отключение антивируса увеличивает вероятность заражения системы. Отключайте защиту только на короткий срок и убедитесь, что у вас есть альтернативные средства защиты.

Дополнительная защита

Если требуется отключить встроенный антивирус, нужно установить стороннее решение, например, PRO32 Total Security, которое будет обеспечивать защиту вашей системы на время отключения Windows Defender.

Отключение через параметры системы

Самый простой способ временно отключить Windows Defender — использовать встроенные системные настройки:

1. Доступ к настройкам безопасности:

  • Откройте меню Пуск и выберите «Параметры».
  • Перейдите в раздел «Обновление и безопасность» и выберите «Безопасность Windows».

2. Отключение защиты в реальном времени:

  • В разделе «Антивирус и защита от угроз» выберите «Управление настройками».
  • Отключите опцию «Защита в реальном времени», передвинув переключатель. Это временно деактивирует антивирус, однако система может автоматически включить его через некоторое время.

Полное отключение через редактор локальной групповой политики

Если вы используете Windows Pro или Enterprise, можно полностью отключить Windows Defender через редактор локальной групповой политики:

1. Запуск редактора групповой политики:

  • Нажмите Win + R для открытия окна «Выполнить».
  • Введите команду gpedit.msc и нажмите Enter.

2. Настройка отключения антивируса:

  • Перейдите в раздел Конфигурация компьютера → Административные шаблоны → Компоненты Windows → Антивирусная программа Windows Defender.
  • Найдите параметр «Отключить антивирусную программу Windows Defender» и включите его, чтобы полностью отключить встроенную защиту.

Отключение через редактор реестра

Этот метод требует осторожности, поскольку некорректное изменение реестра может вызвать проблемы в работе системы:

1. Запуск редактора реестра:

Откройте окно «Выполнить» с помощью сочетания клавиш Win + R и введите regedit, затем нажмите Enter.

2. Изменение параметров реестра:

  • Перейдите по пути: HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender.
  • Если параметр DisableAntiSpyware отсутствует, создайте его:
    • Щёлкните правой кнопкой мыши в правой части окна, выберите Создать → Параметр DWORD (32 бита).
    • Присвойте параметру имя DisableAntiSpyware и установите значение 1.

Временное отключение через командную строку

Если необходимо временно остановить работу Windows Defender, можно воспользоваться командной строкой:

1. Запуск командной строки с правами администратора:

В меню Пуск введите cmd, затем щёлкните правой кнопкой мыши на «Командная строка» и выберите «Запуск от имени администратора».

2. Остановка антивирусной службы:

Введите команду sc stop WinDefend и нажмите Enter. Это временно остановит работу Windows Defender.

3. Повторное включение защиты:

Чтобы снова включить антивирус, введите команду sc start WinDefend и нажмите Enter.

Отключение антивируса Windows может быть необходимо в ряде случаев, но всегда следует помнить о рисках, связанных с этим действием. Включайте защиту сразу после выполнения нужных задач. Если у вас возникают сомнения, лучше обратиться к профессионалам. Для обеспечения дополнительной безопасности во время отключения Windows Defender рекомендуется использовать проверенные антивирусные решения, такие как PRO32 Антивирус.

Windows Defender is designed to protect your system, but sometimes you might need to disable it—perhaps for testing, troubleshooting, or running specialized software. While we say this with a touch of sarcasm (because who wouldn’t want to disable a tool that’s guarding your digital castle?), exercise caution when turning off your antivirus. Below is a detailed guide on how to disable Windows Defender via the command line.

Important Considerations ⚠️

  • Security Warning: Disabling Windows Defender can expose your system to threats. Only proceed if you understand the risks.
  • Administrator Privileges: You must run these commands as an administrator.
  • Temporary Measure: Consider this a temporary solution; always re-enable Defender once you complete your tasks.

Methods to Disable Windows Defender via Command Line 🛠️

There are two popular approaches: using PowerShell and modifying registry settings. Let’s explore each.

1. Using PowerShell Commands

PowerShell provides a direct way to control Windows Defender settings. Follow these steps:

  • Step 1: Open PowerShell as an administrator.
  • Step 2: Execute the following command to disable real-time monitoring:

powershell
Set-MpPreference -DisableRealtimeMonitoring $true

  • Step 3: Verify the change by running:

powershell
Get-MpPreference | Select-Object -Property DisableRealtimeMonitoring

This command toggles the real-time protection feature off. Remember, some updates or system changes might re-enable it automatically.

2. Using Registry Editor via Command Line

For those who prefer a more manual approach, you can alter the registry to disable Windows Defender. Here’s how:

  • Step 1: Open Command Prompt as an administrator.
  • Step 2: Create a backup of your registry (recommended).
  • Step 3: Run the following command to add a registry key that disables Defender:

cmd
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender" /v DisableAntiSpyware /t REG_DWORD /d 1 /f

  • Step 4: Restart your computer for the changes to take effect.

Quick Comparison Table 📊

Below is a table comparing the two methods:

Method Ease of Use Reversibility Risk Level
PowerShell ✔️ ✔️ Moderate
Registry Modification ✔️ ✔️ High (if misconfigured)

The PowerShell approach is typically easier and less risky, while the Registry method offers a deeper level of control—at the cost of potential system instability if not done correctly.

Tips for a Smoother Process 🔍

  • 👉 Document Your Changes: Keep a record of any modifications you make so you can easily revert them later.
  • 👉 Test Environment: If possible, perform these changes in a virtual machine or a non-critical system.
  • 👉 Stay Informed: Microsoft updates may override your settings. Always check your configuration after major updates.

Final Thoughts 🎯

Disabling Windows Defender via the command line can be a powerful tool in your troubleshooting arsenal. However, with great power comes great responsibility. Be mindful of the security risks, and always plan to re-enable your defenses when you’re done. In the world of system administration, a little irony never hurts—just make sure your digital fortress remains secure once the testing is over.

Happy configuring, and may your command line adventures be both enlightening and secure!

There are times when we want to turn off Windows Defender on Windows 10 quickly. For example, if we are installing a software which requires that the antivirus should be disabled during installation (yes there are some software which requires this).

Windows Defender is an all in one security software from Microsoft consisting of antivirus and a firewall. Windows Defender comes pre-installed with Windows 10. It gets all its updates from Windows Update.

Although you can turn Windows Defender on or off from Windows Settings, there are other quick ways to turn it on or turn off Windows Defender Windows 10 or even Windows 8/8.1. You should choose the best method according to the version of Windows you are using.

Table of Contents

Why turn off Windows Defender?

A general recommendation in terms of security is that you should always have security enabled for your PC at all times. This could be using Windows Defender, Microsoft’s own security solution built into Windows 10, or using a third-party security tool.

Sometimes you will need to disable antivirus and firewall protection in Windows. For example, when you are playing a game but the antivirus keeps on scanning the files and slows down the system. Another example can be when the antivirus detects a program as a false positive although you know that the program is completely safe to use.

Some people believe that it is safe to turn off Windows Defender and use cracking software. This includes activating Windows using illegal tools like KMSPico or the Microsoft Toolkit. These cracking tools are not safe at all. They may inject malware into the system that may not be detectable by the antivirus after installation. The malware is used for cryptomining and other hacking purposes.

There are two ways to turn off Windows Defender, either temporarily or permanently. We will discuss both ways here.

How to Turn Off Windows Defender Using Windows Settings

If you want to turn Windows Defender on or off using Windows Settings, follow the steps below:

  1. Open Windows Settings (Windows key + i)
  2. Go to Update & Security –> Windows Security
  3. From the right-hand pane, select Manage settings under Virus & threat protection settings.
  4. Toggle the switch to Off under Real-time protection.
Windows Settings security

Windows Settings security

This will turn off real-time protection while a manual scan is available at your disposal.

How To Disable Windows Defender Using Command Prompt

To turn off Windows Defender using Command Prompt, follow these steps:

  1. Open command prompt with administrative privileges

  2. Run the following command to disable Windows Defender:

    sc stop WinDefend
  3. To make sure that Windows Defender is stopped, run this command:

    sc query WinDefend

To enable Windows defender again, run the following command:

sc start WinDefend

Please note that this is a temporary method to stop Windows Defender. The service will return to its original state once the system is restarted.

To disable Windows Defender permanently using the command prompt, run the following command:

sc config WinDefend start= disabled
sc stop WinDefend

To enable it again on startup, run the following commands:

sc config WinDefend start= auto
sc start WinDefend

If you want to check the current state of the Windows Defender service, run the following command:

sc query WinDefend

Check the STATE variable. It should be in RUNNING state if it is enabled.

check if Windows Defender is running

check if Windows Defender is running

How To Permanently Disable Windows Defender Using PowerShell

One advantage of PowerShell is that you can deploy changes to Windows Defender on multiple computers across the network.

If you prefer PowerShell way, follow the steps below:

  1. Run PowerShell with administrative privileges (Windows key + X + A)
  2. To disable real-time monitoring for Windows Defender, run the following command:
    Set-MpPreference -DisableRealtimeMonitoring $true
  3. To enable real-time monitoring, run the following command:
    Set-MpPreference -DisableRealtimeMonitoring $false

The above method will only turn off real-time monitoring of Windows Defender. If you want to completely remove Windows Defender from Windows 10, use the following PowerShell command:

Uninstall-WindowsFeature -Name Windows-Defender

How To Permanently Turn Off Windows Defender Using Group Policy

If you are a network admin and want to disable Windows Defender from your network, it is wise to use Group Policy. Just follow the steps below to turn off Windows Defender using the Group Policy editor:

  1. Open Group Policy Editor (Run –> gpedit.msc)
  2. Go to Computer Configuration –> Administrative Templates –> Windows Components –> Windows Defender Antivirus
    Turn off Windows Defender Antivirus group policy

  3. From the right-hand pane, open Turn off Windows Defender Antivirus and select Enabled
    Turn Off Windows Defender Antivirus enabled

This setting can be accessed through Local Group Policy as well as Domain Group Policy. The local policy will turn off Windows Defender for all local users while the domain policy will disable it for all systems on which the policy is applied.

How To Permanently Disable Windows Defender Using Windows Registry

You can also disable Windows Defender permanently from Windows Registry just by creating or altering a few registry keys.. Follow the steps below:

  1. Go to Run –> regedit. This will open the Windows Registry Editor.
  2. Navigate to the following key:
    HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender
  3. In the right pane, right-click the empty area and create a new DWORD (32-bit) value.
  4. Rename the new item to DisableAntiSpyware
  5. Double-click DisableAntiSpyware and change its value to 1.

Windows Defender will not load after the next computer restart. To enable Windows Defender again, you can either delete the created registry key or simply change its value to 0.

Please note that you can’t completely uninstall the Windows Defender. Even if you manage to delete its service or files, it will most likely be restored on the next major Windows update.

There are a few scenarios where the user wants to disable a specific part of the Windows Defender system. We will discuss the scenarios below.

How to turn off Windows Firewall only

To turn off Windows Firewall only and keep using other Windows Defender functionality, follow the steps below:

  1. Open Windows Settings (Windows key + i)
  2. Click on Update & Security and then Windows Security
  3. In the right-hand pane, click on Open Windows Security
  4. From the left-hand pane, select Firewall & network protection
  5. In the right-hand pane, you will see three protection types. Domain network, Private network, Public network.
  6. Click on each network type and toggle it to disabled.

This will only turn off the firewall. The antivirus and other functionality of Windows Defender will keep on working.

How to turn off Windows Defender real-time antivirus only

If you want to turn off the antivirus real-time functionality only, you can follow the steps below:

  1. Open Windows Settings (Windows key + i)
  2. Click on Update & Security and then Windows Security
  3. From the left-hand pane, click on Virus & threat protection
  4. In the right-hand pane, toggle real-time protection to off.

Verdict

If you have not installed any third-party antivirus, then you should keep Windows Defender running as it will protect you from the most common virus/hacking threats while you are connected to the Internet. There should always be an anti-malware solution running on your computer at all times. These methods should be used to disable the security software temporarily.

I hope this has been informative for you. If there are any other easier ways to enable or disable Windows Defender, please let us know in the comments below!

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Файл для выбора версии windows
  • Aomei partition assistant for windows xp
  • Как сделать жесткий диск в один диск windows 10
  • Очень легкая версия windows 7
  • Hp 2550l windows 10