Windows Defender Shortcuts.

  1. Paul Black's Avatar
    Posts : 13,056
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #1

    Windows Defender Shortcuts.


    Good afternoon,

    I decided to post a new thread for this rather than in one of the Tutorials first.

    I have pretty much all the programs etc that I use in a Toolbar. I decided to setup a folder for Windows Defender. I wanted to first open the Scan Options Page using a Shortcut, but I was unable to find the FULL Path to it . . .

    Windows Defender Shortcuts.-ws1.png

    Windows Security => Virus & Threats Protection => Scan Options . . .

    Windows Defender Shortcuts.-ws2.png

    I was basically after the link from the Context Menu which takes you directly to the Scan Options Page above . . .

    Windows Defender Shortcuts.-ws3.png

    This is the ONLY Shortcut I have NOT been able to find. I have ALL the others I want already . . .

    • [01] Defender - Link to Scan Options:
    • [02] Defender - Is Defender [ Process ] Running:
    • [03] Defender - Parameters [ Properties ]:
    • [04] Defender - Quick Scan:
    • [05] Defender - Full Scan:
    • [06] Defender - Custom Scan [ Folder ]:
    • [07] Defender - Boot Sector Scan:
    • [08] Defender - Offline Scan:
    • [09] Defender - Clear the Downloaded Definitions Updates Cache:
    • [10] Defender - Update the Signatures:
    • [11] Defender - Update the Signatures and Run a Quick Scan:
    • [12] Defender - List ALL the Quarantined Files:

    Thanks in advance.
    Last edited by Paul Black; 01 May 2021 at 11:33.
      My Computer

  2. FreeBooter's Avatar
    Posts : 4,054
    Windows 10 Pro 64-bit
       #2

    I hope this is what you looking for.

    Code:
    :: Add or Remove Microsoft Defender Antivirus context menu in Windows 10 
    
    
    @Echo Off
    
    Cls & Color 0E
    
    
    :::
    :::		      ▐ ▄ ▄▄▄ .▄▄▄  ▄▄▄▄▪    ▪
    :::		      •█▌▐█▀▄.▀▀▄ ███▪ ██   .  
    :::		   ▪   ▐█▐▐▌▐▀▀▪▄▐▀▀▄ ▐█ ▐█▌   ▪ 
    :::		     ▪██▐█▌▐█▄▄▌▐█•█▌██. ██ .   .
    :::		   ▪   ▀▀ █▪ ▀▀▀ .▀  ▀▀▀▀▀▀•  ▪   
    :::		   ▄▄▄  ▄▄▄ . ▌ ▐  .   ▄▄▌ ▐▄▄▄▄▌
    :::		   ▀▄ █▀▄.▀▪██▌▪     ██•  •██  
    :::		   ▐▀▀▄ ▐▀▀▪▄▐█▐█• ▄█▀▄ ██▪   ▐█.▪
    :::		   ▐█•█▌▐█▄▄▌ ███ ▐█▌.▐▌▐█▌▐▌ ▐█▌
    :::	   	   .▀  ▀ ▀▀▀ . ▀   ▀█▄▀▪.▀▀▀  ▀▀▀ 
    :::        (ccc)2020 by {Limn0} @ NerdRevolt
    :::
    :::    /// ::: /// ::: /// ::: /// ::: /// ::: 
    
    
    
    (Net session >nul 2>&1)||(PowerShell start """%~0""" -verb RunAs & Exit /B)
    
    
    
    :_CHOICE
    
    Cls & Mode CON  LINES=11 COLS=80 & Color 0E & Title Created By FreeBooter
    Echo.
    Echo.
    Echo.
    Echo        1 - Add Microsoft Defender Antivirus to Desktop Context Menu  
    Echo.       
    Echo        2 - Remove Microsoft Defender Antivirus from Desktop Context Menu
    Echo.
    
    
    Set /p input=:^> 
    
    If Not %input%==1 (Goto :_Ex) Else (Goto :_Add) 
    
    :_Ex
    If Not %input%==2  (Goto :_CHOICE) Else (Goto :_Remove)
    
    
    
    :_Add
    
    Reg.exe delete "HKCR\DesktopBackground\Shell\WindowsDefender" /f
    Reg.exe add "HKCR\DesktopBackground\Shell\WindowsDefender" /v "Icon" /t REG_SZ /d "%%ProgramFiles%%\Windows Defender\EppManifest.dll,-101" /f
    Reg.exe add "HKCR\DesktopBackground\Shell\WindowsDefender" /v "MUIVerb" /t REG_SZ /d "Microsoft Defender Antivirus" /f
    Reg.exe add "HKCR\DesktopBackground\Shell\WindowsDefender" /v "Position" /t REG_SZ /d "Bottom" /f
    Reg.exe add "HKCR\DesktopBackground\Shell\WindowsDefender" /v "SubCommands" /t REG_SZ /d "" /f
    Reg.exe add "HKCR\DesktopBackground\Shell\WindowsDefender\shell\001flyout" /v "Icon" /t REG_SZ /d "%%ProgramFiles%%\Windows Defender\EppManifest.dll,-101" /f
    Reg.exe add "HKCR\DesktopBackground\Shell\WindowsDefender\shell\001flyout" /v "MUIVerb" /t REG_SZ /d "Windows Security" /f
    Reg.exe add "HKCR\DesktopBackground\Shell\WindowsDefender\shell\001flyout\command" /ve /t REG_SZ /d "explorer windowsdefender:" /f
    Reg.exe add "HKCR\DesktopBackground\Shell\WindowsDefender\shell\002flyout" /v "Icon" /t REG_SZ /d "%%ProgramFiles%%\Windows Defender\EppManifest.dll,-101" /f
    Reg.exe add "HKCR\DesktopBackground\Shell\WindowsDefender\shell\002flyout" /v "MUIVerb" /t REG_SZ /d "Windows Security in Settings" /f
    Reg.exe add "HKCR\DesktopBackground\Shell\WindowsDefender\shell\002flyout\command" /ve /t REG_SZ /d "explorer ms-settings:windowsdefender" /f
    Reg.exe add "HKCR\DesktopBackground\Shell\WindowsDefender\shell\003flyout" /v "CommandFlags" /t REG_DWORD /d "32" /f
    Reg.exe add "HKCR\DesktopBackground\Shell\WindowsDefender\shell\003flyout" /v "Icon" /t REG_SZ /d "%%ProgramFiles%%\Windows Defender\EppManifest.dll,-101" /f
    Reg.exe add "HKCR\DesktopBackground\Shell\WindowsDefender\shell\003flyout" /v "MUIVerb" /t REG_SZ /d "Update" /f
    Reg.exe add "HKCR\DesktopBackground\Shell\WindowsDefender\shell\003flyout\command" /ve /t REG_SZ /d "\"C:\Program Files\Windows Defender\MpCmdRun.exe\" -SignatureUpdate" /f
    Reg.exe add "HKCR\DesktopBackground\Shell\WindowsDefender\shell\004flyout" /v "Icon" /t REG_SZ /d "%%ProgramFiles%%\Windows Defender\EppManifest.dll,-101" /f
    Reg.exe add "HKCR\DesktopBackground\Shell\WindowsDefender\shell\004flyout" /v "MUIVerb" /t REG_SZ /d "Quick Scan" /f
    Reg.exe add "HKCR\DesktopBackground\Shell\WindowsDefender\shell\004flyout\command" /ve /t REG_SZ /d "\"C:\Program Files\Windows Defender\MpCmdRun.exe\" -Scan -ScanType 1" /f
    Reg.exe add "HKCR\DesktopBackground\Shell\WindowsDefender\shell\005flyout" /v "Icon" /t REG_SZ /d "%%ProgramFiles%%\Windows Defender\EppManifest.dll,-101" /f
    Reg.exe add "HKCR\DesktopBackground\Shell\WindowsDefender\shell\005flyout" /v "MUIVerb" /t REG_SZ /d "Full Scan" /f
    Reg.exe add "HKCR\DesktopBackground\Shell\WindowsDefender\shell\005flyout\command" /ve /t REG_SZ /d "\"C:\Program Files\Windows Defender\MpCmdRun.exe\" -Scan -ScanType 2" /f
    Reg.exe add "HKCR\DesktopBackground\Shell\WindowsDefender\shell\006flyout" /v "CommandFlags" /t REG_DWORD /d "32" /f
    Reg.exe add "HKCR\DesktopBackground\Shell\WindowsDefender\shell\006flyout" /v "HasLUAShield" /t REG_SZ /d "" /f
    Reg.exe add "HKCR\DesktopBackground\Shell\WindowsDefender\shell\006flyout" /v "Icon" /t REG_SZ /d "%%ProgramFiles%%\Windows Defender\EppManifest.dll,-101" /f
    Reg.exe add "HKCR\DesktopBackground\Shell\WindowsDefender\shell\006flyout" /v "MUIVerb" /t REG_SZ /d "Offline Scan" /f
    Reg.exe add "HKCR\DesktopBackground\Shell\WindowsDefender\shell\006flyout\command" /ve /t REG_SZ /d "PowerShell.exe Start-Process PowerShell -Verb RunAs Start-MpWDOScan" /f
    
    
    Cls & Mode CON  LINES=11 COLS=80 & Color 0E & Title Created By FreeBooter
    Echo.
    Echo.
    Echo.
    Echo.
    Echo          Adding Microsoft Defender Antivirus to Desktop Context Menu   
    Echo.
    Echo.
    Echo. 
    Ping -n 4 localhost >Nul
    Exit
    
    
    
    :_Remove
    
    
    Reg.exe delete "HKCR\DesktopBackground\Shell\WindowsDefender" /f
    
    Cls & Mode CON  LINES=11 COLS=80 & Color 0E & Title Created By FreeBooter
    Echo.
    Echo.
    Echo.
    Echo.
    Echo          Removing Microsoft Defender Antivirus from Desktop Context Menu
    Echo.
    Echo.
    Echo. 
    Ping -n 4 localhost >Nul
      My Computer

  3. Paul Black's Avatar
    Posts : 13,056
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
    Thread Starter
       #3

    Thanks @FreeBooter,

    Unfortunately it does NOT contain the Direct Scan Options Link which is the ONLY one I am after.

    Thanks anyway.
      My Computer

  4. das10's Avatar
    Posts : 2,857
    Win 10 pro 21H1
       #4

    In case you don't find a direct command, here is a Powershell script ( which you shold be able to convert to a batch command ) which basically runs through the GUI's to get at the spot. Not as elegant as a proper command but nevertheless a fun way to get there:

    Code:
    start-process ms-settings:
    Start-Sleep -MilliSeconds 100
    Add-Type -AssemblyName System.Windows.Forms
    Start-Sleep -Milliseconds 200
    [System.Windows.Forms.SendKeys]::SendWait("Windows Security Settings")
    Start-Sleep -MilliSeconds 500
    [System.Windows.Forms.SendKeys]::SendWait("{ENTER}")
    Start-Sleep -MilliSeconds 500
    [System.Windows.Forms.SendKeys]::SendWait("{ENTER}")
    Start-Sleep -MilliSeconds 500
    [System.Windows.Forms.SendKeys]::SendWait("{ENTER}")
    Start-Sleep -MilliSeconds 500
    [System.Windows.Forms.SendKeys]::SendWait("{ENTER}")
    Start-Sleep -MilliSeconds 500
    [System.Windows.Forms.SendKeys]::SendWait("{TAB}")
    Start-Sleep -MilliSeconds 500
    [System.Windows.Forms.SendKeys]::SendWait("{ENTER}")
    Paul: just found it is slightly easier to get the defender GUI using the below command, and then sending keys.

    explorer.exe windowsdefender:
      My Computer

  5. Paul Black's Avatar
    Posts : 13,056
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
    Thread Starter
       #5

    Hello @das10,

    das10 said:
    In case you don't find a direct command, here is a Powershell script ( which you should be able to convert to a batch command ) which basically runs through the GUI's to get at the spot. Not as elegant as a proper command but nevertheless a fun way to get there:

    Paul: just found it is slightly easier to get the defender GUI using the below command, and then sending keys.

    explorer.exe windowsdefender:

    Thank you for taking the time to put that together for me.

    Unfortunately, neither method gets to me to the Direct Scan Options Link I am after. I must admit, that I spent a long time investigating this and MANY options and methods were tried. Solving this is NOT critical because I have already setup the options listed in Post #1, which do already INCLUDE ALL the options [ Plus More ] on the Direct Scan Options Link.

    Thanks again.

      My Computer

  6. Paul Black's Avatar
    Posts : 13,056
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
    Thread Starter
       #6

    Good afternoon,

    I am still looking for a solution to get to this via a SINGLE link . . .

    > Windows Security => Virus & Threats Protection => Scan Options

    This is the ONLY one that I am unable to find [ 01 - Defender - Scan Options ] . . .

    Windows Defender Shortcuts.-defender-toolbar.png

    The above are in a Folder that I have on the Root Directory which links to my Toolbar on the Taskbar. I have a custom Icon for them that I have NOT added yet.

    This is the Page that I want the Direct Link to . . .

    Windows Defender Shortcuts.-ws2.png

    Perhaps @Brink might have an idea?

    Thanks in advance.
    Last edited by Paul Black; 3 Weeks Ago at 09:26.
      My Computer

  7. Paul Black's Avatar
    Posts : 13,056
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
    Thread Starter
       #7

    UPDATE:

    I have spent MANY hours looking for a solution to this over the weeks, and I have NOT come up with an answer, let alone a viable alternative. With that in mind, I decided to change it to open at the Windows Security Main Page. I will NOT be using that much as I have ALL the other options setup and available anyway.

    For anybody interested > C:\Windows\explorer.exe ms-settings:windowsdefender

    I have marked this thread as Solved.
      My Computer

  8. Brink's Avatar
    Posts : 57,926
    64-bit Windows 10 Pro for Workstations build 21390
       #8

    Hello Paul,

    I found the shortcut below that will directly open to the Virus & threat protection page in Windows Security if it may help. You can click/tap on the Scan options link on the page from there.

    explorer windowsdefender://threat

    How to Create a Windows Security Shortcut in Windows 10

    How to Add or Remove Windows Security context menu in Windows 10
      My Computers

  9. Paul Black's Avatar
    Posts : 13,056
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
    Thread Starter
       #9

    Hello @Brink ,

    Brink said:
    Hello Paul,

    I found the shortcut below that will directly open to the Virus & threat protection page in Windows Security if it may help. You can click/tap on the Scan options link on the page from there.

    explorer windowsdefender://threat

    How to Create a Windows Security Shortcut in Windows 10

    How to Add or Remove Windows Security context menu in Windows 10

    Thank you, I appreciate the time that you took to investigate this for me.
    I have added that as an extra option in my Toolbar.

      My Computer

  10. Brink's Avatar
    Posts : 57,926
    64-bit Windows 10 Pro for Workstations build 21390
       #10

      My Computers


 

  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 14:21.
Find Us




Windows 10 Forums