Advertisement
aveyo

Add-Remove Defender Exclusions contextmenu.reg

Apr 21st, 2018
2,590
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
REG 4.12 KB | None | 0 0
  1. Windows Registry Editor Version 5.00
  2.  
  3. ; AveYo: rename to .reg or delete .txt extension then run to import
  4.  
  5. [-HKEY_CURRENT_USER\Software\Classes\*\shell\DefenderExclusions]
  6.  
  7. [HKEY_CURRENT_USER\Software\Classes\*\shell\DefenderExclusions]
  8. "MUIVerb"="Defender Exclusions"
  9. "Icon"="C:\\Program Files\\Windows Defender\\EppManifest.dll,7"
  10. "SubCommands"=""
  11.  
  12. [HKEY_CURRENT_USER\Software\Classes\*\shell\DefenderExclusions\shell\000Add]
  13. "MUIVerb"="Add exclusion"
  14. "Icon"="C:\\Program Files\\Windows Defender\\EppManifest.dll,8"
  15. "CommandFlags"=dword:00000010
  16.  
  17. [HKEY_CURRENT_USER\Software\Classes\*\shell\DefenderExclusions\shell\000Add\command]
  18. @="powershell -c \"mode 30,3;echo '';echo ' Add Defender Exclusion...'; Start-Process powershell -ArgumentList '-c \\\"Add-MpPreference -ExclusionPath ''%1''\\\"' -verb RunAs -window Hidden\""
  19.  
  20. [HKEY_CURRENT_USER\Software\Classes\*\shell\DefenderExclusions\shell\001Rem]
  21. "MUIVerb"="Remove exclusion"
  22. "Icon"="C:\\Program Files\\Windows Defender\\EppManifest.dll,4"
  23. "CommandFlags"=dword:00000010
  24.  
  25. [HKEY_CURRENT_USER\Software\Classes\*\shell\DefenderExclusions\shell\001Rem\command]
  26. @="powershell -c \"mode 30,3;echo '';echo ' Rem Defender Exclusion...'; Start-Process powershell -ArgumentList '-c \\\"Remove-MpPreference -ExclusionPath ''%1''\\\"' -verb RunAs -window Hidden\""
  27.  
  28. [-HKEY_CURRENT_USER\Software\Classes\Directory\shell\DefenderExclusions]
  29.  
  30. [HKEY_CURRENT_USER\Software\Classes\Directory\shell\DefenderExclusions]
  31. "MUIVerb"="Defender Exclusions"
  32. "Icon"="C:\\Program Files\\Windows Defender\\EppManifest.dll,7"
  33. "SubCommands"=""
  34. "AppliesTo"="NOT (System.ItemPathDisplay:=\"C:\\Users\" OR System.ItemPathDisplay:=\"C:\\ProgramData\" OR System.ItemPathDisplay:=\"C:\\Program Files\" OR System.ItemPathDisplay:=\"C:\\Program Files (x86)\" OR System.ItemPathDisplay:=\"C:\\Windows\" OR System.ItemPathDisplay:=\"C:\\Windows\System32\")"
  35.  
  36.  
  37. [HKEY_CURRENT_USER\Software\Classes\Directory\shell\DefenderExclusions\shell\000Add]
  38. "MUIVerb"="Add exclusion"
  39. "Icon"="C:\\Program Files\\Windows Defender\\EppManifest.dll,8"
  40. "CommandFlags"=dword:00000010
  41.  
  42. [HKEY_CURRENT_USER\Software\Classes\Directory\shell\DefenderExclusions\shell\000Add\command]
  43. @="powershell -c \"mode 30,3;echo '';echo ' Add Defender Exclusion...'; Start-Process powershell -ArgumentList '-c \\\"Add-MpPreference -ExclusionPath ''%1''\\\"' -verb RunAs -window Hidden\""
  44.  
  45. [HKEY_CURRENT_USER\Software\Classes\Directory\shell\DefenderExclusions\shell\001Rem]
  46. "MUIVerb"="Remove exclusion"
  47. "Icon"="C:\\Program Files\\Windows Defender\\EppManifest.dll,4"
  48. "CommandFlags"=dword:00000010
  49.  
  50. [HKEY_CURRENT_USER\Software\Classes\Directory\shell\DefenderExclusions\shell\001Rem\command]
  51. @="powershell -c \"mode 30,3;echo '';echo ' Rem Defender Exclusion...'; Start-Process powershell -ArgumentList '-c \\\"Remove-MpPreference -ExclusionPath ''%1''\\\"' -verb RunAs -window Hidden\""
  52.  
  53. [-HKEY_CURRENT_USER\Software\Classes\Drive\shell\DefenderExclusions]
  54.  
  55. [HKEY_CURRENT_USER\Software\Classes\Drive\shell\DefenderExclusions]
  56. "MUIVerb"="Defender Exclusions"
  57. "Icon"="C:\\Program Files\\Windows Defender\\EppManifest.dll,7"
  58. "SubCommands"=""
  59. "AppliesTo"="NOT (System.ItemPathDisplay:=\"C:\\\")"
  60.  
  61. [HKEY_CURRENT_USER\Software\Classes\Drive\shell\DefenderExclusions\shell\000Add]
  62. "MUIVerb"="Add exclusion"
  63. "Icon"="C:\\Program Files\\Windows Defender\\EppManifest.dll,8"
  64. "CommandFlags"=dword:00000010
  65.  
  66. [HKEY_CURRENT_USER\Software\Classes\Drive\shell\DefenderExclusions\shell\000Add\command]
  67. @="powershell -c \"mode 30,3;echo '';echo ' Add Defender Exclusion...'; Start-Process powershell -ArgumentList '-c \\\"Add-MpPreference -ExclusionPath ''%1''\\\"' -verb RunAs -window Hidden\""
  68.  
  69. [HKEY_CURRENT_USER\Software\Classes\Drive\shell\DefenderExclusions\shell\001Rem]
  70. "MUIVerb"="Remove exclusion"
  71. "Icon"="C:\\Program Files\\Windows Defender\\EppManifest.dll,4"
  72. "CommandFlags"=dword:00000010
  73.  
  74. [HKEY_CURRENT_USER\Software\Classes\Drive\shell\DefenderExclusions\shell\001Rem\command]
  75. @="powershell -c \"mode 30,3;echo '';echo ' Rem Defender Exclusion...'; Start-Process powershell -ArgumentList '-c \\\"Remove-MpPreference -ExclusionPath ''%1''\\\"' -verb RunAs -window Hidden\""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement