Run a scan from the command line

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How would I run the Windows Defender scheduled scan manually from the command
line? Not just open the app- an actual scan. I've aready tried this:
C:\Program Files\Windows Defender\MSASCui.exe -scan
It doesn't work.
I'd like to add it to a batch file. Any help would be greatly appreciated.
Thanks.
 
Hi Rodolfo,

"C:\Program Files\Windows Defender\MpCmdRun.exe" Scan -ScanType config
-Privileges restricted

is the command line in the Scheduled Task manager.

Regards >*< TOM >*<

Rodolfo schreef:
 
That's it! Thanks Tom, you da man!

Tom Emmelot said:
Hi Rodolfo,

"C:\Program Files\Windows Defender\MpCmdRun.exe" Scan -ScanType config
-Privileges restricted

is the command line in the Scheduled Task manager.

Regards >*< TOM >*<

Rodolfo schreef:
 
--
CJ


Tom Emmelot said:
Hi Rodolfo,

"C:\Program Files\Windows Defender\MpCmdRun.exe" Scan -ScanType config
-Privileges restricted

is the command line in the Scheduled Task manager.

Regards >*< TOM >*<

Rodolfo schreef:
 
I can't seem to call the command in a sequence of other commands.
Here is the WD scan line:

start /w "C:\Program Files\Windows Defender\MpCmdRun.exe Scan -ScanType
config -Privileges restricted"

I want the batch file to wait untill it runs and then go onto thge next
command, but it just opens DOS and sits there. Is the command too long? Any
help would be greatly appreciated.
 
Hello Rodolfo,

i dont no why, but the only way i got it to work is like this;

CD C:\Program Files\Windows Defender\
MpCmdRun.exe Scan -ScanType config -Privileges restricted

Also possible:

MpCmdRun.exe Usage:

Commands:

Scan - Runs System Scan
-ScanType config, 1 (quick) or 2 (full), default 2
-Privileges restricted or full, default full

SignatureUpdate - Runs Signature Update

The start /w and the full path give some trouble, dont no why.

Regards >*< TOM >*<

Rodolfo schreef:
 
Back
Top