Skip to content

Instantly share code, notes, and snippets.

@renelink
Created October 29, 2023 17:22
Show Gist options
  • Save renelink/70bd7e22ae32484fd2ddf8242faf6865 to your computer and use it in GitHub Desktop.
Save renelink/70bd7e22ae32484fd2ddf8242faf6865 to your computer and use it in GitHub Desktop.
java-developer-exclusions.ps1
# powershell -executionpolicy bypass -File .\java-developer-exclusions.ps1
Add-MpPreference -ExclusionExtension ".java"
Add-MpPreference -ExclusionExtension ".class"
Add-MpPreference -ExclusionExtension ".jar"
Add-MpPreference -ExclusionExtension ".xml"
Add-MpPreference -ExclusionExtension ".properties"
Add-MpPreference -ExclusionExtension ".md"
Add-MpPreference -ExclusionProcess "java.exe"
Add-MpPreference -ExclusionProcess "javaw.exe"
Add-MpPreference -ExclusionProcess "javac.exe"
Add-MpPreference -ExclusionProcess "idea.exe"
@renelink
Copy link
Author

My Windows Defender exclusions as a java developer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment