Skip to content

Instantly share code, notes, and snippets.

@visuve
Last active March 1, 2022 21:31
Show Gist options
  • Select an option

  • Save visuve/26c24b4d54b8a7f869e68cadf3c5e2ac to your computer and use it in GitHub Desktop.

Select an option

Save visuve/26c24b4d54b8a7f869e68cadf3c5e2ac to your computer and use it in GitHub Desktop.
Add context menu entry to scan files or folders with Windows Defender
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\Defender]
@="Scan File with Windows Defender"
"Icon"="C:\\Program Files\\Windows Defender\\MpDlpCmd.exe,0"
[HKEY_CLASSES_ROOT\*\shell\Defender\command]
@="cmd.exe /k \"\"C:\\Program Files\\Windows Defender\\MpCmdRun.exe\" -Scan -ScanType 3 -File \"%1\"\""
[HKEY_CLASSES_ROOT\Directory\shell\Defender]
@="Scan Directory with Windows Defender"
"Icon"="C:\\Program Files\\Windows Defender\\MpDlpCmd.exe,0"
[HKEY_CLASSES_ROOT\Directory\shell\Defender\command]
@="cmd.exe /k \"\"C:\\Program Files\\Windows Defender\\MpCmdRun.exe\" -Scan -ScanType 3 -File \"%1\"\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment