Link to home
Start Free TrialLog in
Avatar of sdax2
sdax2

asked on

Windows Defender command line options

Is there a way to run Windows Defender from the command line, or script it to run with an VBS script?

Thanks

ASKER CERTIFIED SOLUTION
Avatar of KevinSHI
KevinSHI

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of KevinSHI
KevinSHI

also found that

Q: How do I start a scan from a command line prompt?

A: Command line arguments for main executable: *.exe -scan -schedule -withui -withresultsui (not fully verified; scan appears to work).

http://wiki.castlecops.com/Security_Product_FAQ:_Microsoft_Windows_AntiSpyware
Avatar of sdax2

ASKER

Thanks, I altered it a bit and use it this way.

"C:\Program Files\Windows Defender\MSASCui.exe"
"C:\Program Files\Windows Defender\MpCmdRun.exe" Scan -ScanType 1 -SignatureUpdate

It launches the GUI so that you can see the progress first.