Windows Defender Shortcuts

Page 1 of 2 12 LastLast

  1. Posts : 970
    Microsoft Windows 10 Professional (x64) Build 19045.2846
       #1

    Windows Defender Shortcuts


    Is there a way to create a custom shortcut to run a C:\ scan?

    Also looking for a direct shortcut to the Windows defender scan logs in the Event Viewer.

    Thanks
    __________________________
    Windows 1803
      My Computer


  2. Posts : 42,963
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #2

    These may help you to construct a suitable command for your shortcut:

    Use the command line to manage Windows Defender Antivirus | Microsoft Docs
    How to use Windows Defender with Command Prompt on Windows 10 | Windows Central


    If you want to scan the Downloads folder, you'll use the command:
    mpcmdrun -scan -scantype 3 -File C:\Users\{yourname}\Downloads

    Detailed help

    You can get detailed information about these commands and other advanced Windows Defender command-line operations with the command:
    mpcmdrun -?
    from
    How to get more from Windows Defender by using its command-line tool - TechRepublic
      My Computers


  3. Posts : 970
    Microsoft Windows 10 Professional (x64) Build 19045.2846
    Thread Starter
       #3

    Thanks, but I was just looking for a simple single click shortcut option to run a scan on the c:\ partition.
      My Computer


  4. Posts : 42,963
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #4

    The shortcut will need to invoke a command with parameters to run Defender.

    Good luck with your quest.
    I guess if you were lucky someone might take the time to construct one for you...
      My Computers


  5. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
       #5

    You can do this with a shortcut by specifying the full path to mpcmdrun. Here is one I whipped up. Download it, unzip it and place on your Desktop. The shortcut is called Scan C with Windows Defender.

    Double click on it and it will start Windows Defender and scan the C: drive.

    Right click on it and select Properties to see what it does.

    WinDef-C.zip


    Not working. The attached file ends up being MpCmdRun.exe instead of a lin called Scan C with Windows Defender as it was when I zipped it. Very weird.
    Last edited by Ztruker; 01 Jan 2019 at 21:00.
      My Computers


  6. Posts : 68,893
    64-bit Windows 11 Pro for Workstations
       #6

    kitpzyxmsir said:
    Is there a way to create a custom shortcut to run a C:\ scan?

    Hello,

    You could create a shortcut using the command below for a quick scan.

    "%ProgramFiles%\Windows Defender\MpCmdRun.exe" -Scan -ScanType 1

    How to Scan with Windows Defender in Windows 10 | Tutorials
      My Computers


  7. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
       #7

    Shawn, he wants it to scan just the C: drive. Will it do that? I haven't tried it yet.

    (running it now to see what happens)

    Edit: I don't see the advantage of having a link to do this rather then opening This PC or File Explorer, right click on C: and select Scan with Windows Defender.

    When it finishes, if you are not watching, the Command Prompt window just closes and you have no idea what happened.
      My Computers


  8. Posts : 68,893
    64-bit Windows 11 Pro for Workstations
       #8

    Hey Rich,

    A "Quick scan" won't scan the whole C: drive, but it does scan the Windows system folders.
      My Computers


  9. Posts : 226
    Many
       #9

    There is also a PowerShell module for this.

    Start-MpScan -ScanPath C:\ -ScanType FullScan
      My Computer


  10. Posts : 970
    Microsoft Windows 10 Professional (x64) Build 19045.2846
    Thread Starter
       #10

    Brink said:
    Hey Rich,

    A "Quick scan" won't scan the whole C: drive, but it does scan the Windows system folders.
    Is a quick scan reliable. That's why I run the C:\ scan, but it takes so long. Is it necessary?
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 16:02.
Find Us




Windows 10 Forums