Use Windows Defender with Command Prompt on Windows 10
Windows Defender is a free antivirus software that Microsoft has created to combat malware on computers. This security software is integrated on Windows 10 and Windows 8.1. Windows Defender will find and remove viruses, spyware (spyware), rootkits and bootkits and some other malicious code on your computer.
In the following article, Network Administrator will guide you how to use Windows Defender with Command Prompt on Windows 10.
1. Manipulate Windows Defender with Command Prompt
The following commands use MSASCui.exe to allow you to update or run different scan modes of Windows Defender.
First press Windows + I key combination to open Power User Menu, then click Command Prompt (Admin).
To activate the next update, enter the following command into the Command Prompt window and press Enter:
"% ProgramFiles% Windows DefenderMSASCui.exe" -UpdateAndQuickScan
To download and install updates (update) of Windows Defender, enter the command below and press Enter:
"% ProgramFiles% Windows DefenderMSASCui.exe" -Update
To use Windows Defender to scan the system quickly, enter the command below and press Enter:
"% ProgramFiles% Windows DefenderMSASCui.exe" --QuickScan
To scan the entire system , enter the following command into the Command Prompt window and press Enter:
"% ProgramFiles% Windows DefenderMSASCui.exe" -FullScan
Also you can -hide at the end of each command to prevent Windows Defender from opening.
For example: "C: Program FilesWindows DefenderMSASCui.exe" -UpdateAndQuickScan -hide.
2. Use Windows Defender to run in the background with Command Prompt
Windows Defender also integrates the utility MpCmdRun.exe, you can use to automatically run or run Windows Defender " silently " without having to launch the Desktop Client.
First press Windows + I key combination to open Power User Menu, then click Command Prompt (Admin).
To activate the update, enter the following command into the Command Prompt window and press Enter:
"% ProgramFiles% Windows DefenderMpCmdRun.exe" -SignatureUpdate
To use Windows Defender to scan the system quickly, enter the command below and press Enter:
"% ProgramFiles% Windows DefenderMpCmdRun.exe" -Scan -ScanType 1
To scan the entire system, enter the following command into the Command Prompt window and press Enter:
"% ProgramFiles% Windows DefenderMpCmdRun.exe" -Scan -ScanType 3
To customize scanning a file or a folder instead of scanning the entire system, enter the following command and press Enter:
"% ProgramFiles% Windows DefenderMpCmdRun.exe" -Scan -ScanType 3 -File PATH-TO-FILE-OR-FOLDER
Suppose to scan all files and directories in the Public folder, use the following command:
"% ProgramFiles% Windows DefenderMpCmdRun.exe" -Scan -ScanType 3 -File C: UsersPublic
In addition, you can scan and remove malicious code that attacks the boot sector using the command:
"% ProgramFiles% Windows DefenderMpCmdRun.exe" -Scan -ScanType -BootSectorScan
Refer to some of the following articles:
- Here's how to completely disable Windows Defender on Windows 10, 7 and Windows Vista
- Windows Defender is disabled or inactive, this is a fix
- The cause of the error cannot open Windows Defender on Widows 7/8/10 and how to fix it
Good luck!
You should read it
- How to fix errors cannot open Windows Defender on Windows 7/8/10
- Add the 'Scan with Windows Defender' command to the right-click menu in Windows 8
- Turn off Windows Defender on Windows 7 and Windows Vista
- How to add exceptions in Windows Defender on Windows 10
- What is Windows Defender? What are the advantages? How to enable and disable Windows Defender
- How to Turn Off Windows Defender in Windows 10
- How to kill viruses with Windows Defender Offline on Windows 10 Creators
- Shadow Defender - Download Shadow Defender here
May be interested
- How to Create a Custom Windows Command Promptthe windows command prompt (located at c:windowssystem32cmd.exe) is a useful tool to perform various administrative tasks. the prompt is a string of characters (special and non special) that are displayed whenever the command prompt is...
- How to Open Folders in CMDdo you need to access something from the command prompt or the windows command prompt? although it looks classic, this program is really easy to use if you know some basic commands. today's tipsmake will show you how to use the 'cd' command to open a folder in windows command prompt. besides, you will also know more great tips to instantly open command prompt in any folder on windows file explorer.
- How to Execute a Program in Command Promptthis article shows you how to open a program on a windows computer using the command prompt application. although you can only open programs that are installed in folders created by windows (such as desktop), you are still allowed to add the program's folder to the command prompt list to open the program with the command prompt.
- How to Open Command Prompt on Windowstoday's tipsmake will show you how to open the command prompt program on windows. there are many ways to do it, from as simple as searching the start menu to using the run command. however, you should remember, some computers (such as school computers) cannot run command prompt due to restrictions.
- How to fix the error of Command Prompt opening automatically on Windowsit can be extremely annoying when the command prompt constantly interrupts what you're doing on your windows computer by randomly appearing.
- How to change the folder in Command Prompt on Windows 10one of the first things you need to learn when you become more familiar with the command prompt on windows 10 is how to change the folders in the file system of the operating system. the following article will guide you to implement them.
- How to open Command Prompt during Windows installationopening command prompt while you install windows will help you use commands in cmd such as checking drive health, converting standard mbr - gpt and many other benefits,
- How to Add and Delete User Accounts with Command Prompt on Windowscommand prompt is basically a version of the 'terminal' application (apple) on windows, a program that allows us to enter system adjustment commands. while most commands users enter into command prompt simply execute the action itself (such as opening a folder), you can also use command prompt to quickly create (or delete) accounts. right on your computer!
- How to Change Directory in Command Promptthis article shows you how to change folders in the command prompt program on a windows computer. to change commands in command prompt, you must use an administrator account.
- How to use Xcopy command in Command Promptknowing how to use xcopy command in command prompt, you will easily use commands in cmd professionally. in particular, the xcopy command is extremely useful for those who copy and copy data on the computer.