Windows Defender command line options

Posted on 2007-10-05
Last Modified: 2013-12-04
Is there a way to run Windows Defender from the command line, or script it to run with an VBS script?


Question by:sdax2
    LVL 3

    Accepted Solution

    found that on google. I didnt test it.

    MpCmdRun Scan -ScanType quick -SignatureUpdate
    LVL 3

    Expert Comment

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

    Author Comment

    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.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    Users of Windows 10 Professional can disable automatic reboots using the policy editor. This tool is not included in the Windows home edition. But don't worry! Follow the instructions below to install (a Win7) policy editor on your Windows 10 Home e…
    Our Group Policy work started with Small Business Server in 2000. Microsoft gave us an excellent OU and GPO model in subsequent SBS editions that utilized WMI filters, OU linking, and VBS scripts. These are some of experiences plus our spending a lo…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now