Created
September 5, 2018 18:56
-
-
Save lap00zza/8c9ee31431c464d46efc59047df4f13c to your computer and use it in GitHub Desktop.
Revisions
-
lap00zza created this gist
Sep 5, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ #!/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