Как открыть безопасность windows 11 через командную строку

Windows Security, ранее известный как Microsoft Defender, является приложением для тех, кто хочет узнать больше о безопасности в Windows 10 и Windows 11. Это приложение является частью операционной системы Microsoft, и именно здесь вы можете узнать, что делает ваш антивирус, что говорит ваш брандмауэр и включены ли и работают ли другие функции безопасности. Однако, прежде чем вы сможете получить какую-либо информацию, вы должны знать, как получить доступ к Windows Security. Вот почему в этой статье я покажу вам несколько способов открыть Windows Security в Windows 10 и Windows 11:

По умолчанию Windows Security автоматически запускается Windows и работает в фоновом режиме, защищая ваш компьютер или устройство. Мало кто знает, что вы можете найти его значок в системном трее (в правом нижнем углу панели задач) в Windows 11 и Windows 10.

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

Открытие Windows Security из системного трея в Windows 11

В Windows 10 процесс идентичен, хотя все выглядит немного иначе. Главное отличие в том, что значок Windows Security представляет собой белый щит вместо синего.

Открытие Windows Security из системного трея в Windows 10

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

2. Откройте Безопасность Windows из командной строки (CMD, PowerShell, Терминал)

Некоторые люди, работающие с Windows Security, должны найти способ открыть его из командной строки, например, Command Prompt, PowerShell или Windows Terminal. Откройте любое из этих приложений на компьютере Windows, введите эту команду и нажмите Enter:

start windowsdefender:

Вот как я запускаю его в Windows Terminal из Windows 11:

Открытие Windows Security из Windows Terminal

На снимке экрана ниже я запустил CMD и выполнил ту же команду в Windows 10:

Открытие безопасности Windows из CMD

3. Как получить доступ к безопасности Windows из меню «Пуск»

Простой способ доступа к безопасности Windows — из меню «Пуск». В Windows 10 нажмите или коснитесь «Пуск», прокрутите список приложений вниз, пока не найдете те, которые начинаются с буквы W, а затем выберите ярлык «Безопасность Windows».

Ярлык «Безопасность Windows» в меню «Пуск» Windows 10

В Windows 11 все немного по-другому: нажмите или коснитесь Пуск, затем Все приложения. Затем в списке приложений прокрутите вниз, найдите ярлык Безопасность Windows и коснитесь его.

Ярлык «Безопасность Windows» в меню «Пуск» Windows 11

4. Как создать ярлык «Безопасность Windows» на рабочем столе

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

Создание ярлыка «Безопасность Windows» на рабочем столе Windows 10

В Windows 11 так же просто создать ярлык Windows Security на рабочем столе с помощью меню «Пуск». Найдите ярлык Windows Security в списке «Все приложения», щелкните или нажмите и удерживайте его, а затем переместите мышь (или палец) за пределы меню «Пуск» в любое место на рабочем столе. Когда вы увидите текст Link рядом с ярлыком, отпустите мышь или поднимите палец, и ярлык будет создан.

Создание ярлыка «Безопасность Windows» на рабочем столе Windows 11

Вы также можете создать ярлык безопасности Windows с помощью мастера создания ярлыка. Щелкните правой кнопкой мыши (или нажмите и удерживайте) пустое место на рабочем столе и выберите Создать > Ярлык. Затем скопируйте и вставьте или введите следующее в качестве целевого местоположения:

windowsdefender:

Вы также можете использовать эту цель:

%windir%\explorer.exe windowsdefender:

Нажмите кнопку Далее, назовите ярлык Безопасность Windows и нажмите Готово.

Создание ярлыка безопасности Windows

Имейте в виду, что первая указанная мной цель создает ярлык с использованием стандартного значка безопасности Windows, а вторая использует значок проводника.

5. Как открыть Безопасность Windows с помощью сочетания клавиш

Если вы создали ярлык Windows Security на рабочем столе, перетащив его из меню «Пуск», как показано в четвертом методе этого руководства, вы можете отредактировать свойства ярлыка, чтобы открывать это приложение с помощью сочетания клавиш. После создания ярлыка на рабочем столе щелкните его правой кнопкой мыши (или нажмите и удерживайте) и выберите «Свойства».

Доступ к свойствам ярлыка «Безопасность Windows»

Затем щелкните или коснитесь внутри текстового поля «Быстрая клавиша» и нажмите комбинацию клавиш, которую вы хотите использовать для открытия этого приложения. Например, вы можете нажать CTRL+ALT+W, как я сделал на своем снимке экрана. Когда вы закончите настройку сочетания клавиш, нажмите OK.

Настройка сочетания клавиш для безопасности Windows

Этот метод работает одинаково в Windows 10 и Windows 11.

6. Как открыть Безопасность Windows с помощью Выполнить

Старый добрый способ открытия приложений в Windows — через диалоговое окно «Выполнить». Нажмите Windows+R на клавиатуре и в поле «Открыть» введите:

windowsdefender:

Не забудьте нажать Enter на клавиатуре или щелкнуть/коснуться OK, чтобы выполнить команду и открыть Безопасность Windows.

Открытие окна безопасности из Run

7. Как найти Безопасность Windows с помощью поиска

Люди, которые задаются вопросом, где найти Windows Security на своем компьютере Windows, всегда могут воспользоваться поиском. Это быстрый и надежный способ открытия приложений.

Если вы используете Windows 10, щелкните или коснитесь поля поиска на панели задач, введите слово безопасность и выберите результат поиска «Безопасность Windows».

Доступ к безопасности Windows через поиск в Windows 10

Если вы используете Windows 11, поиск Windows Security работает точно так же. Однако помните, что функция поиска не всегда может отображать Windows Security как первый результат поиска в списке. Она также может отображать папки с таким именем или приложения, как на снимке экрана ниже.

Доступ к безопасности Windows через поиск в Windows 11

8. Как запустить службу безопасности Windows из проводника

Мало кто знает, что File Explorer предлагает еще один удобный способ запуска Windows Security. Откройте File Explorer и введите или скопируйте и вставьте в адресную строку следующую команду:

windowsdefender:

Затем нажмите Enter на клавиатуре, чтобы выполнить команду.🙂

Открытие Windows Security из проводника в Windows 10

Хотя скриншот выше сделан в Windows 10, необходимые шаги выполняются в Windows 11 так же, хотя Проводник выглядит иначе.

Открытие Windows Security из проводника в Windows 11

9. Закрепите «Безопасность Windows» на панели задач или в меню «Пуск»

Найдите ярлык Windows Security в меню «Пуск». Как показано в способе 3, в Windows 10 этот ярлык можно найти в нижней части списка приложений. Затем щелкните правой кнопкой мыши или нажмите и удерживайте Windows Security, и появится контекстное меню. Первый параметр в меню — Pin to Start, который закрепляет ярлык Windows Security в меню «Пуск». Если вы выберете More, откроется расширение, позволяющее вам Pin to taskbar.

Закрепление окна «Безопасность Windows» в меню «Пуск» или на панели задач в Windows 10

Действия в Windows 11 аналогичны. Однако сначала вам нужно нажать или коснуться Пуск, а затем Все приложения, чтобы увидеть список приложений, установленных на вашем компьютере. Затем щелкните правой кнопкой мыши (или нажмите и удерживайте) ярлык Безопасность Windows и закрепите его в нужном месте.

Закрепление окна «Безопасность Windows» в меню «Пуск» или на панели задач в Windows 11

10. Как открыть Безопасность Windows с помощью Параметров

Если вы уже используете приложение «Параметры» и вам нужно получить доступ к безопасности Windows, вы можете сделать это очень быстро:

Откройте Настройки и перейдите в категорию Обновление и безопасность. В левой части окна выберите Безопасность Windows ; затем справа нажмите или коснитесь Открыть Безопасность Windows.

Откройте Безопасность Windows из настроек Windows 10.

Если вы используете Windows 11, откройте приложение «Параметры» (Windows+I) и выберите «Конфиденциальность и безопасность» слева. В правой части окна нажмите или коснитесь «Безопасность Windows», а затем «Открыть безопасность Windows».

Откройте Безопасность Windows из Параметров Windows 11.

11. Запустите службу безопасности Windows из диспетчера задач.

Если вы используете диспетчер задач для просмотра запущенных приложений и процессов и вам необходимо открыть «Безопасность Windows», вы можете сделать это прямо из этого приложения, вот так:

В Windows 10 откройте диспетчер задач (быстрый способ — одновременно нажать клавиши Control+Shift+Escape). Если вы видите компактный вид диспетчера задач, нажмите или коснитесь «Подробнее». Затем нажмите или коснитесь «Файл» > «Запустить новую задачу».

В диспетчере задач выберите Файл data-lazy-src=

В окне «Создать новую задачу» введите или скопируйте и вставьте в адресную строку следующую команду:

windowsdefender:

Не забудьте нажать Enter или щелкнуть или коснуться OK.

Запустите Windows Security из диспетчера задач

Этот процесс больше не работает в Windows 11, поскольку диспетчер задач был полностью переработан и больше не предоставляет доступ к окну «Создать новую задачу», как в Windows 10.

Какой способ доступа к безопасности Windows вы предпочитаете?

Это длинное руководство, цель которого — предоставить вам как можно более полную информацию. Большинству людей нужно знать один или два метода открытия Windows Security, в то время как другим, возможно, придется поэкспериментировать с большинством из описанных мной методов, а затем выбрать тот, который соответствует их потребностям. Независимо от этого, дайте мне знать, какой из них лучше всего подходит вам и почему. Как вы получаете доступ к Windows Security на компьютере с Windows 10 или Windows 11?

Просмотров: 216

Microsoft Defender Antivirus commands

Microsoft Defender Antivirus commands
(Image credit: Future)

Microsoft Defender Antivirus is the default anti-malware solution that protects your Windows 11 installation and files from unwanted viruses, ransomware, spyware, and many other types of malware and malicious attacks.

Usually, you would use the Windows Security app to manage the antivirus, such as scanning, updates, and quarantined items. However, it’s also possible to control the Microsoft Defender Antivirus with commands from Command Prompt. For example, when you have to use a script to automate specific tasks. You are in charge of managing multiple computers, and you need a quicker way to run specific tasks. Or you want to schedule an update and scan at a particular time.

This guide will walk you through the steps to manage the Microsoft Defender Antivirus on Windows 11 from Command Prompt.

How to update antivirus definition on Microsoft Defender

To download and install the latest definitions for the Microsoft Defender Antivirus on Windows 11, use these steps:

  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. Type the following command to open the antivirus tool location and press Entercd C:\ProgramData\Microsoft\Windows Defender\Platform\4.18*
  4. Type the following command to check and update Microsoft Defender Antivirus and press EnterMpCmdRun -SignatureUpdate

Defender definition update command

(Image credit: Future)

Once you complete the steps, the antivirus will automatically check and download any available updates.

Rollback definitions updates

To uninstall recently installed definition updates, use these steps:

All the latest news, reviews, and guides for Windows and Xbox diehards.

  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. Type the following command to open the antivirus tool location and press Entercd C:\ProgramData\Microsoft\Windows Defender\Platform\4.18*
  4. Type the following command to remove recent definitions and press EnterMpCmdRun -RemoveDefinitions -All 

The «-All» option restores the previous definitions from the backup or original default set of signatures.

  1. Type the following command to roll back the engine version and press EnterMpCmdRun -RemoveDefinitions -Engine 

Defender remove definition command

(Image credit: Future)

The «-Engine» option rolls back to the previous version of the antivirus engine.

  1. Type the following command to remove dynamic signature updates and press EnterMpCmdRun -RemoveDefinitions -DynamicSignatures

The -DynamicSignatures option uninstalls only the dynamic signatures.

After you complete the steps, the recent definition updates will be uninstalled from the device.

How to do quick antivirus scan on Microsoft Defender

To run a quick antivirus scan from Command Prompt on Windows 11, use these steps:

  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. Type the following command to open the antivirus tool location and press Entercd C:\ProgramData\Microsoft\Windows Defender\Platform\4.18*
  4. Type the following command to perform a quick antivirus scan and press Enter: MpCmdRun -Scan -ScanType 1

Defender quick scan command

(Image credit: Future)
  • Quick tip: You can also replace «1» with the «0» option to start a default scan.

Once you complete the steps, the Microsoft Defender Antivirus will perform a quick scan of the locations where malware is more likely to hide.

How to do full antivirus scan on Microsoft Defender

To run a full antivirus scan on Windows 11, use these steps:

  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. Type the following command to open the antivirus tool location and press Entercd C:\ProgramData\Microsoft\Windows Defender\Platform\4.18*
  4. Type the following command to perform a full antivirus scan and press EnterMpCmdRun -Scan -ScanType 2

Defender full scan command

(Image credit: Future)

After you complete the steps, the antivirus will scan all the locations for malware. If you have a lot o files, this option could take a long time.

How to do custom antivirus scan on Microsoft Defender

To run an antivirus scan only on specific locations from Command Prompt, use these steps:

  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. Type the following command to open the antivirus tool location and press Entercd C:\ProgramData\Microsoft\Windows Defender\Platform\4.18*
  4. Type the following command to perform a custom antivirus scan and press EnterMpCmdRun -Scan -ScanType 3 -File PATH\TO\FOLDER-FILES 

Defender custom scan command

(Image credit: Future)

In the command, update the path to the folder to scan. For example, this command scans the «Documents» folder: MpCmdRun -Scan -ScanType 3 -File C:\Users\username\Documents

  1. (Optional) Type the following command to perform a custom scan with timeout time and press EnterMpCmdRun -Scan -ScanType 3 -File PATH\TO\FOLDER-FILES -Timeout 1 

In the command, remember to update the path with the folder to scan. For example, this command scans the «Documents» folder and sets the timeout to one day: MpCmdRun -Scan -ScanType 3 -File C:\Users\username\Documents -Timeout 1 

  • Quick note: You can change the timeout number to specify another number of days. The option is also available for quick and full scan commands.

Once you complete the steps, Microsoft Defender Antivirus will only scan the specified location.

How to do boot sector malware scan on Microsoft Defender

As part of the Windows 11 installation, the boot sector includes essential instructions to process the startup sequence. If a specially crafted virus access the boot sector can cause problems that are difficult to fix. However, the Microsoft Defender Antivirus can also remove malware from the boot sector with a simple command.

To run a virus scan in the boot sector of Windows 11, use these steps:

  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. Type the following command to open the antivirus tool location and press Entercd C:\ProgramData\Microsoft\Windows Defender\Platform\4.18*
  4. Type the following command to perform a custom antivirus scan and press EnterMpCmdRun -Scan -ScanType -BootSectorScan

Defender boot sector scan command

(Image credit: Future)

After you complete the steps, the default antivirus will look for any malicious code inside the boot sector.

How to restore quarantined item on Microsoft Defender

Microsoft Defender Antivirus may sometimes detect files as malicious when they are known and harmless. When this happens, you can use a command to review the quarantined files and another command to restore those files that are not a threat.

To check and restore quarantined items from Microsoft Defender Antivirus, use these steps: 

  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. Type the following command to open the antivirus tool location and press Entercd C:\ProgramData\Microsoft\Windows Defender\Platform\4.18*
  4. Type the following command to view quarantined items and press EnterMpCmdRun -Restore -ListAll

Defender restore command

(Image credit: Future)
  1. Type the following command to restore the quarantined items and press EnterMpCmdRun -Restore -All
  2. Type the following command to restore a specific quarantined item and press EnterMpCmdRun -Restore -Name ITEM-NAME

In the command, replace the «ITEM-NAME» with the name of the item to restore.

  1. Type the following command to restore a quarantined item to a specific path and press Enter: MpCmdRun -Restore -Name ITEM-NAME -FilePath PATH\TO\RESTORED

In the command, specify the path to restore the item. For example, this command restores a specific item to the «Documents» folder: MpCmdRun -Restore -Name app.exe -FilePath C:\Users\username\Documents

Once you complete the steps, the file will restore automatically to its original location. 

This guide outlines some essential commands to manage the Microsoft Defender Antivirus with Command Prompt. However, the command-line tool offers many other options, which you can view using the «MpCmdRun» command.

More resources

For more helpful articles, coverage, and answers to common questions about Windows 10 and Windows 11, visit the following resources:

  • Windows 11 on Windows Central — All you need to know
  • Windows 10 on Windows Central — All you need to know

Windows 11 Logo Se

Cutting-edge operating system

A refreshed design in Windows 11 enables you to do what you want effortlessly and safely, with biometric logins for encrypted authentication and advanced antivirus defenses.

Mauro Huculak has been a Windows How-To Expert contributor for WindowsCentral.com for nearly a decade and has over 15 years of experience writing comprehensive guides. He also has an IT background and has achieved different professional certifications from Microsoft, Cisco, VMware, and CompTIA. He has been recognized as a Microsoft MVP for many years.

Вы можете запустить полную проверку антивирусом Microsoft Defender тремя способами: с помощью службы Безопасность Windows, PowerShell или командной строки.

В Windows 11 антивирус Microsoft Defender по умолчанию работает в фоновом режиме, что позволяет ему быстро определять и блокировать практически любые вредоносные программы, таких как вирусы, программы-вымогатели, шпионское ПО, руткиты и др. Также служба «Безопасность Windows» в реальном времени защищает ваше устройство от возможных угроз. Тем не менее, иногда вам все же может потребоваться выполнить полную проверку на вирусы вручную, чтобы убедиться, что ваше устройство с Windows 11 в безопасности.

Иногда, причиной для полной проверки Windows 11 антивирусом, может послужить медленная работа, большая сетевая активность, подозрение что было установлено вредоносное ПО. Встроенный антивирус с помощью приложения «Безопасность Windows» позволяет выполнять полное сканирование четырьмя различными типами сканирования, включая быстрое, настраиваемое, полное и автономное.

В этом руководстве рассмотрим, как Windows 11 запустить полное сканирование на вирусы с помощью встроенного приложения или с помощью Терминала используя командную строку или Power Shell.

Как запустить полное сканирование антивирусом Microsoft Defender в Windows 11 с помощью службы «Безопасность Windows»

Шаг 1: Чтобы запустить полную проверку на вирусы в Windows 11, выполните следующие действия:

Шаг 2: Откройте Пуск и перейдите в список «Все приложения».

Откройте Пуск и перейдите в список «Все приложения» Найдите пункт «Безопасность Windows» и откройте приложение.

Шаг 3: Найдите пункт «Безопасность Windows» и откройте приложение.

Или, откройте приложение «Параметры» перейдите в раздел «Конфиденциальность и безопасность» → «Безопасность Windows» и нажмите кнопку «Открыть службу безопасность Windows».

перейдите в раздел «Конфиденциальность и безопасность» → «Безопасность Windows» и нажмите кнопку «Открыть службу безопасность Windows».

Шаг 4: В открывшемся приложении кликните плитку «Защита от вирусов и угроз».

В открывшемся приложении кликните плитку «Защита от вирусов и угроз».

Шаг 5: В разделе «Текущие угрозы» найдите и откройте ссылку «Параметры сканирования».

В разделе «Текущие угрозы» найдите и откройте ссылку «Параметры сканирования».

Здесь вы найдете все доступные варианты сканирования вашего устройства:

  • Быстрая проверка
  • Полное сканирование
  • Настраиваемое сканирование
  • Проверка автономным модулем Microsoft Defender

Шаг 6: Выберите параметр «Полное сканирование», чтобы проверить операционную систему на наличие вирусов и других вредоносных программ.

Выберите параметр «Полное сканирование», чтобы проверить операционную систему на наличие вирусов и других вредоносных программ.

Шаг 7: Теперь нажмите кнопку «Выполнить сканирование сейчас».

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

Как запустить полное сканирование Windows 11 используя Терминал – PowerShell или Командную строку

PowerShell

Шаг 1: Откройте любым удобным вам способом Терминал Windows от имени администратора. По умолчанию в терминале используется профиль «PowerShell».

Шаг 2: Чтобы запустить полную проверку на вирусы с помощью PowerShell введите следующую команду, и нажмите Enter:

start-mpscan -scantype fullscan

Команда полной проверки Microsoft Defender PowerShell

После того как вы нажмете клавишу Enter, антивирус выполнит полное сканирование вашего устройства с Windows 11, и удалит все вредоносные программы или обнаруженные угрозы.

Команда полной проверки Microsoft Defender PowerShell

Командная строка

Если в терминале по умолчанию вы используете профиль с Командной строкой,

Шаг 1: Введите следующие команды по очереди и нажмите Enter, чтобы перейти в папку с последней версией антивируса Microsoft Defender:

cd C:\ProgramData\Microsoft\Windows Defender\Platform\4*

Шаг 2: Введите или скопируйте и вставьте, следующую команду, нажмите Enter, чтобы выполнить полную проверку на вирусы:

mpcmdrun -scan -scantype 2

Команда полной проверки Microsoft Defender CMD

Вы увидите сообщение «Scan starting…», Microsoft Defender проверит на наличие, обнаружит и удалит угрозы и вредоносные программы на вашем устройстве. После завершения сканирования вы увидите сообщение что сканирование завершено.

  • Home
  • Partition Manager
  • Open/Run/Use Windows Defender from Command Prompt (New Guide)

By Amy | Follow |
Last Updated

How to use Windows Defender from Command Prompt to execute various tasks? Well, this post of MiniTool would tell you how to do that in detail.

What Can Windows Defender Do

Windows Defender is also referred to as Windows Security, which is an embedded utility in Windows systems. It usually runs silently in the background and offers you real-time protection. What does it do? It scans, detects, and removes viruses, spyware, and malware.

As shown in the picture below, Windows Defender can provide you with virus & threat protection, account protection, Firewall & network protection, app & browser control, and device (performance & health) protection.

features of Windows Security

If you are locked out of its graphics user interface or don’t want to launch it, you can directly use Windows Defender from Command Prompt.  This post shows you how to use Windows Defender from Command Prompt to execute different operations.

Before starting any operations, run Command Prompt as administrator. Here are the detailed steps for doing that.

Step 1: Type cmd in the search box.

Step 2: Click Run as administrator in the right panel. Alternatively, you can also right-click on Command Prompt and click Run as administrator.

run Command Prompt as administrator

Is Windows Defender Enough? More Solutions to Protect PC

Use Command Lines to Perform a Quick Scan

To find viruses, malware, and other threats in some common places, you can run a quick scan. As its name implies, the quick scan process will complete in a few minutes. If you want to use Windows Defender from Command Prompt to perform a quick scan, type the command below after running Command Prompt as administrator and hit Enter.

Tip: According to your configuration, you can replace 1 with 0 in the command to begin a default scan.

“%ProgramFiles%Windows DefenderMpCmdRun.exe” -Scan -ScanType 1

perform a quick scan

Use Command Lines to Perform a Full Scan

If you would like to conduct an in-depth scan on your PC, you need to perform a full scan. Compared with quick the quick scan, a full scan needs more time. To execute a full scan via command lines, type the following command in the opened prompt window and press Enter.

“%ProgramFiles%Windows DefenderMpCmdRun.exe” -Scan -ScanType 2

perform a full scan

How to Remove Mechanical, Membrane, and MacBook Keyboard Keys

Use Command Lines to Perform a Custom Scan

To scan specific files or folders for viruses and other threats, you should perform a custom scan. This sort of scan is also available for external storage devices like USB flash drives and external hard drives. The following command shows you how to use Microsoft Defender Antivirus from Command Prompt to conduct a custom scan.

Tip: You should replace D:FolderPath with the actual folder or file path that you would like to scan.

“%ProgramFiles%Windows DefenderMpCmdRun.exe” -Scan -ScanType 3 -File “D:FolderPath”

Use Command Lines to Scan for Infected Boot Sectors

Boot sectors in the computer store all the important information related to your PC’s boot-up. However, some viruses and threats may attack the boot sector. Fortunately, you run Windows Defender from command line to scan and remove threats with boot sectors.

“%ProgramFiles%Windows DefenderMpCmdRun.exe” -Scan -ScanType -BootSectorScan

scan boot sectors

WWE 2K22 Image Upload: Use the Image Uploader or Face Scan

Run Command Lines to Update Windows Defender Antivirus

You can also use Windows Defender from Command Prompt to update Microsoft Defender Antivirus. For that, you simply need to type the command below and press Enter.

“%ProgramFiles%Windows DefenderMpCmdRun.exe” -SignatureUpdate

Run Commands Lines to Restore Quarantined Files

Files would be moved to Quarantine if Microsoft Defender Antivirus thinks it’s suspicious. If you need these files, you can restore them via the command lines of Windows Defender.

“%ProgramFiles%Windows DefenderMpCmdRun.exe” -Restore -ListAll

Find the file that you want to restore from the list, and then type the command below and press Enter. You should replace FileName with the exact file name you want to restore.

“%ProgramFiles%Windows DefenderMpCmdRun.exe” -Restore -Name “FileName”

How to run Windows Defender from command line? How to use Microsoft Defender Antivirus from Command Prompt? This post has shown you the answers. Read it now!

About The Author

Position: Columnist

Having writing articles about computer tech for a long time, I am rather experienced especially on the aspect of computer optimization, PC enhancement, as well as tech terms explanation. The habit of looking through tech forums makes me a great computer issues collector. And then, many articles related to these issues are released, which benefit plenty of users. Professional, effective, and innovative are always the pursuit of an editing worker.

  • To perform a full virus scan with the Microsoft Defender Antivirus, open Windows Security > Virus & threat protection > Scan options, choose “Full,” and click “Scan now.” 
  • You can also use Command Prompt and PowerShell commands to run a full virus scan on your computer.

On Windows 11, Microsoft Defender Antivirus is always running in the background to detect and remove virtually any kind of malware, such as viruses, ransomware, spyware, rootkits, and others. The security feature can also proactively protect the device against hackers and other threats. However, sometimes, you may still have to perform a full virus scan manually to ensure that nothing suspicious is infecting Windows 11.

When Windows 11 is responding slowly and sluggish, or you suspect that malware has infected the computer, the antivirus includes three different scans (quick, custom, and full) that you can use with the Windows Security app, Command Prompt, and PowerShell.

In this guide, I will teach you how to perform a complete virus scan using Windows 11’s built-in anti-malware solution.

  • Run a full virus scan on Windows 11
  • Run a full virus scan from Command Prompt
  • Run a full virus scan from PowerShell

To perform a full virus scan on Windows 11, use these steps:

  1. Open Start on Windows 11.

  2. Search for Windows Security and click the top result to open the app.

  3. Click on Virus & threat protection.

  4. Click on Scan options under the “Current threats” section.

    Microsoft Defender Antivirus scan options

  5. Select the Full scan option to check the entire system for viruses and any other type of malware.

    Microsoft Defender Antivirus full scan

  6. Click the Scan now button.

Once you complete the steps, Microsoft Defender Antivirus will scan the computer for viruses and other types of malware. If anything is detected, the antivirus automatically removes (or quarantines) the threats.

Run a full virus scan from Command Prompt

To run a Microsoft Defender Antivirus scan with commands, use these steps:

  1. Open Start.

  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.

  3. Type the following command to locate the latest version of Microsoft Defender Antivirus installation and press Enter:

    cd C:\ProgramData\Microsoft\Windows Defender\Platform\4*
  4. Type the following command to run a full virus scan and press Enter:

    mpcmdrun -scan -scantype 2

    Microsoft Defender full scan command

After you complete the steps, Microsoft Defender will scan, detect, and remove any malware on the computer. You will notice the “Start scanning” messages as you execute the command. Once the scan is complete, the “Scan finished” message will return on the screen.

Run a full virus scan from PowerShell

To start a full virus scan with PowerShell, use these steps:

  1. Open Start.

  2. Search for PowerShell, right-click the top result, and select the Run as administrator option.

  3. Type the following command to start a full malware scan and press Enter:

    start-mpscan -scantype fullscan

    Microsoft Defender PowerShell full scan command

Once you complete the steps, the antivirus will perform a full scan on Windows 11 to remove any malware.

Although you cannot run a full virus scan with the Microsoft Defender Antivirus if you use a third-party security solution, you can still enable and use the periodic scanning feature.

Update June 27, 2024: This guide has been updated to ensure accuracy and reflect changes to the process.

Why You Can Trust Pureinfotech

The author combines expert insights with user-centric guidance, rigorously researching and testing to ensure you receive trustworthy, easy-to-follow tech guides. Review the publishing process.

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

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Как убрать пароль для входа в windows 10 pro
  • Easy service optimizer windows 10 инструкция
  • Программа для работы с жесткими дисками windows 7 на русском языке
  • Контроллеры запоминающих устройств windows 7
  • Vampire the masquerade redemption на windows 10