pastebin - collaborative debugging tool
nrubsig.kpaste.net RSS


Disable Windows Defender for Cygwin /usr/bin
Posted by Anonymous on Sat 13th Apr 2024 10:12
raw | new post

  1. #!/bin/ksh93
  2. # disable Windows Defender from always checking Cygwin binaries
  3. for i in /usr/bin/*.exe ; do powershell -Command "Add-MpPreference -ExclusionProcess $(cygpath -w "$i")"; done

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at