Run a scan from the command line

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.
 
T

Tom Emmelot

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:
 
G

Guest

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:
 
G

Guest

--
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:
 
G

Guest

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.
 
T

Tom Emmelot

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:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top