How does Windows 10 execute Windows Defender on the command line
This article mainly introduces how Windows 10 executes Windows Defender on the command line. It is very detailed and has a certain reference value. Friends who are interested must read it!
Everyone knows that Windows Defender is an anti-virus and anti-malware tool built into Windows 10. Usually, it only silently protects the user environment in the background. Of course, when users need it, they can also update the definition and manually check and kill through its concise GUI graphical interface.
However, did you know that Windows Defender actually supports working on the command line? Someone must have thought that as long as we support the command line, we can use its features to perform custom or scheduled tasks.
MSASCui.exe
MSASCui.exe is an executable file for Windows Defender with GUI, and of course it itself contains a lot of command line shortcut (parameter) switches.
Quick scan after update:
"% ProgramFiles%\ Windows Defender\ MSASCui.exe"-UpdateAndQuickScan
Quick scan:
"% ProgramFiles%\ Windows Defender\ MSASCui.exe"-QuickScan
Full scan:
"% ProgramFiles%\ Windows Defender\ MSASCui.exe"-FullScan
Update the definition:
"% ProgramFiles%\ Windows Defender\ MSASCui.exe"-Update
Hidden mode execution
When performing the above tasks, you can also directly add the-hide parameter so that it does not display the graphical interface.
MpCmdRun.exe
MpCmdRun.exe is the console command of Windows Defender, which includes a wealth of command-line parameter switches, as long as you have a good imagination, you should be able to construct a lot of clever uses.
Quick scan after update:
"% ProgramFiles%\ Windows Defender\ MpCmdRun.exe"-SignatureUpdateAndQuickScan
Quick scan:
"% ProgramFiles%\ Windows Defender\ MpCmdRun.exe"-Scan-ScanType 1
Full scan:
"% ProgramFiles%\ Windows Defender\ MpCmdRun.exe"-Scan-ScanType 2
Scan a file or directory:
"% ProgramFiles%\ Windows Defender\ MpCmdRun.exe"-Scan-ScanType 3-File
Scan the boot sector:
"% ProgramFiles%\ Windows Defender\ MpCmdRun.exe"-Scan-ScanType 3-BootSectorScan
Update the definition:
"% ProgramFiles%\ Windows Defender\ MpCmdRun.exe"-SignatureUpdate
View the complete list of parameters:
"% ProgramFiles%\ Windows Defender\ MpCmdRun.exe"
With such a complete command line switch, I believe you have been able to easily create a variety of Windows Defender automatic update and scan tasks, and it is also very useful for enterprise administrators' batch scripts.
The above is all the contents of the article "how Windows 10 executes Windows Defender on the command line". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!