Skip to content

Instantly share code, notes, and snippets.

@SteveMcArthur
Created April 9, 2014 06:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SteveMcArthur/09d7b3f80116414ae482 to your computer and use it in GitHub Desktop.
Save SteveMcArthur/09d7b3f80116414ae482 to your computer and use it in GitHub Desktop.
Regedit - add right click context menu
::in regedit navigate to following
HKEY_CLASSES_ROOT\Folder\shell
:: Right-click the shell key in the left pane, point to New,
::and create a new Key. Name it WindowsDefender.
::With the WindowsDefender key selected in the left pane,
::right-click in the right pane and create a new String value.
::Name it Icon, then double-click it and enter the following value:
%ProgramFiles%\\Windows Defender\\EppManifest.dll
::Right-click in the right pane again and create another
::new String value. Name it MUIVerb, then double-click it and enter the following value:
Scan with Windows Defender
::Right-click the WindowsDefender key in the left pane,
::point to new, and create a new key. Name it Command.
::Double-click the (Default) value in the right pane
::with the Command key selected and give it the following value:
"C:\Program Files\Windows Defender\MpCmdRun.exe" -scan -scantype 3 -SignatureUpdate -file %1
::Create the following batch file and put it in your SendTo folder.
::Will scan both folders or single files and wont close after running
@ECHO OFF
Echo %1
"C:\Program Files\Windows Defender\MpCmdRun.exe" -Scan -ScanType 3 -File %1
PAUSE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment