Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A simple shell wrapper for Windows Defender (tested with msys2/mintty)
#!/bin/sh
# A simple shell wrapper for Windows Defender
defender_path="/c/Program Files/Windows Defender/MpCmdRun.exe"
if [ $1 == "--help" ]
then
echo "Usage:"
echo " ./defender_scan /full/path/to/file_or_directory"
echo "Note:"
echo "- Don't end directory with /"
echo "- Looks like symlinks cant be resolved"
else
"$defender_path" -Scan -ScanType 3 -File $1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.