Bring back Windows Defender scanning in the right-click menu (Windows 8.1)

Windows Defender isn't necessarily the best A/V scanner, but it's free and built-in to Windows. Sometimes it can be difficult to use it in order to scan just a specific folder or file, however. This tip adds a "Defender Scan" option to the Send To submenu of the right-click context menu.

Add a plain text file called "Defender Scan.cmd" to the folder "C:\Users\username\AppData\Roaming\Microsoft\Windows\SendTo"

AppData is normally hidden but simply typing the path into Windows Explorer should work.

The contents of the file should be as follows:

"C:\Program Files\Windows Defender\MpCmdRun.exe" -Scan -ScanType 3 -File %1

Note that this will not work for files the user does not have permission to read. For such files, the MpCmdRun.exe command must be run from an elevated command prompt, if available.